/*
 * The Wedding Link UI layer
 * Version 1.6.0
 * Presentation only: generated account pages and GeoDirectory templates.
 */
:root {
    /* The Wedding Link: Ivory & Olive. Four core colours plus neutral white. */
    --twl-ink: #0d120f;
    --twl-ink-soft: #2f3d33;
    --twl-body: #566158;
    --twl-ivory: #f4f5ef;
    --twl-sage: #0d120f;
    --twl-sage-dark: #1b2a1f;
    --twl-sage-soft: #e8f0da;
    --twl-clay: #a7cb5a;
    --twl-secondary: #a7cb5a;
    --twl-secondary-soft: #edf3e5;
    --twl-sand: #d7ddd2;
    --twl-sand-light: #ecefe8;
    --twl-white: #fff;
    --twl-success: #397a58;
    --twl-warning: #9a651f;
    --twl-error: #a44747;
    --twl-info: #486777;
    --twl-radius-sm: 8px;
    --twl-radius: 14px;
    --twl-radius-lg: 22px;
    --twl-shadow-sm: 0 1px 2px rgba(13, 18, 15, .035), 0 8px 24px rgba(13, 18, 15, .05);
    --twl-shadow: 0 18px 48px rgba(13, 18, 15, .08);
    --twl-content: 1240px;
    --twl-font-body: var(--e-global-typography-text-font-family, "Manrope", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    --twl-font-display: var(--e-global-typography-primary-font-family, "Cormorant Garamond", Georgia, serif);
}

/* Shared page reset */
body.twl-generated-page,
body.twl-directory-page {
    background: var(--twl-ivory);
    color: var(--twl-ink);
    font-family: var(--twl-font-body);
}

body.twl-generated-page .site-main,
body.twl-directory-page .site-main {
    max-width: none;
    padding: 0;
}

body.twl-generated-page .page-header,
body.twl-generated-page .entry-title,
body.twl-directory-page .page-header > .entry-title,
body.twl-directory-page .site-main > .page-header {
    display: none;
}

body.twl-generated-page .site-main > article,
body.twl-generated-page .site-main > article > .entry-content,
body.twl-directory-page .site-main > article,
body.twl-directory-page .site-main > article > .entry-content {
    margin: 0;
    max-width: none;
    padding: 0;
    width: 100%;
}

body.twl-generated-page .entry-content > :first-child,
body.twl-directory-page .entry-content > :first-child { margin-top: 0; }
body.twl-generated-page .entry-content > :last-child,
body.twl-directory-page .entry-content > :last-child { margin-bottom: 0; }

.twl-generated-page *,
.twl-directory-page * { box-sizing: border-box; }

.twl-generated-page h1,
.twl-generated-page h2,
.twl-generated-page h3,
.twl-directory-page h1,
.twl-directory-page h2,
.twl-directory-page h3 {
    color: var(--twl-ink);
}

.twl-generated-page h1,
.twl-directory-page h1 {
    font-family: var(--twl-font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: .98;
}

.twl-generated-page a,
.twl-directory-page a {
    text-underline-offset: 3px;
}

/* Application shell */
.twl-app-shell {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    background: #ecefe8;
}

.twl-app-sidebar {
    align-self: stretch;
    background: var(--twl-ink);
    color: rgba(255,255,255,.72);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 30px 20px 24px;
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    overflow-y: auto;
    z-index: 5;
}

.twl-app-brand,
.twl-auth-brand {
    align-items: center;
    color: #fff !important;
    display: flex;
    gap: 12px;
    text-decoration: none !important;
}

.twl-app-brand { margin: 0 8px 36px; }
.twl-app-brand-mark,
.twl-auth-brand > span {
    align-items: center;
    background: var(--twl-sage);
    border-radius: 11px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 42px;
    font-family: var(--twl-font-display);
    font-size: 18px;
    font-weight: 700;
    height: 42px;
    justify-content: center;
    letter-spacing: -.04em;
}

.twl-app-brand strong { display: block; font-size: 14px; line-height: 1.25; }
.twl-app-brand small { color: rgba(255,255,255,.55); display: block; font-size: 11px; margin-top: 3px; }

.twl-app-nav,
.twl-app-mobile-links {
    display: grid;
    gap: 6px;
}

.twl-app-nav-link {
    align-items: center;
    border-radius: 10px;
    color: rgba(255,255,255,.72) !important;
    display: flex;
    font-size: 14px;
    font-weight: 600;
    gap: 11px;
    min-height: 45px;
    padding: 9px 12px;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.twl-app-nav-link:hover {
    background: rgba(255,255,255,.075);
    color: #fff !important;
    transform: translateX(2px);
}

.twl-app-nav-link.is-active {
    background: var(--twl-sage);
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.twl-app-nav-icon {
    align-items: center;
    display: inline-flex;
    font-size: 17px;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.twl-app-sidebar-footer {
    border-top: 1px solid rgba(255,255,255,.1);
    display: grid;
    gap: 9px;
    margin-top: auto;
    padding: 22px 10px 4px;
}

.twl-app-sidebar-footer a {
    color: rgba(255,255,255,.58) !important;
    font-size: 12px;
    text-decoration: none !important;
}
.twl-app-sidebar-footer a:hover { color: #fff !important; }

.twl-app-main { min-width: 0; }

.twl-app-topbar {
    align-items: center;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid var(--twl-sand);
    display: flex;
    justify-content: flex-end;
    min-height: 72px;
    padding: 12px clamp(20px, 4vw, 54px);
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    backdrop-filter: blur(14px);
    z-index: 4;
}

.twl-app-user {
    align-items: center;
    display: flex;
    gap: 10px;
}
.twl-app-user span:last-child { display: grid; gap: 1px; }
.twl-app-user small { color: var(--twl-body); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.twl-app-user strong { color: var(--twl-ink); font-size: 13px; }
.twl-app-avatar {
    align-items: center;
    background: var(--twl-sage-soft);
    border: 1px solid #d7ddd2;
    border-radius: 50%;
    color: var(--twl-sage-dark);
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.twl-app-mobile-nav { display: none; }

.twl-app-content {
    margin: 0 auto;
    max-width: 1440px;
    padding: clamp(28px, 4vw, 58px);
    width: 100%;
}

.twl-app-content .twl-dashboard,
.twl-app-content .twl-auth-card,
.twl-app-content .twl-notice,
.twl-app-content .twl-enquiry-form-card {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

/* Page headings and cards */
.twl-dashboard-header {
    align-items: flex-end;
    border-bottom: 1px solid var(--twl-sand);
    margin-bottom: 28px;
    padding-bottom: 25px;
}

.twl-dashboard-header h2 {
    font-family: var(--twl-font-display);
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1;
    margin: 0 0 9px;
}

.twl-dashboard-header p:not(.twl-eyebrow) {
    color: var(--twl-body);
    margin: 0;
    max-width: 700px;
}

.twl-eyebrow {
    color: var(--twl-sage-dark);
    font-size: 11px;
    letter-spacing: .14em;
    margin-bottom: 9px;
}

.twl-card {
    border: 1px solid var(--twl-sand);
    border-radius: var(--twl-radius);
    box-shadow: var(--twl-shadow-sm);
    padding: clamp(19px, 2.4vw, 29px);
}

.twl-card h2,
.twl-card h3,
.twl-card h4 { margin-top: 0; }
.twl-card > p:last-child { margin-bottom: 0; }

.twl-dashboard-cards { gap: 18px; }
.twl-action-card {
    border-top: 3px solid transparent;
    min-height: 168px;
    padding: 24px;
}
.twl-action-card:hover {
    border-top-color: var(--twl-secondary);
    box-shadow: var(--twl-shadow);
    transform: translateY(-3px);
}
.twl-action-card strong { font-size: 17px; }
.twl-action-card > span:last-child { color: var(--twl-body); font-size: 13px; line-height: 1.55; }
.twl-action-icon {
    background: var(--twl-sage-soft);
    border-radius: 10px;
    color: var(--twl-sage-dark);
    height: 42px;
    width: 42px;
}

.twl-stat-card {
    border-left: 3px solid var(--twl-sage);
    min-height: 110px;
}
.twl-stat-card strong { color: var(--twl-ink); font-size: clamp(24px, 3vw, 34px); }

.twl-status {
    border: 1px solid rgba(0,0,0,.05);
    font-size: 11px;
    letter-spacing: .02em;
    padding: 5px 9px;
}

.twl-progress { background: #dfe5da; height: 7px; }
.twl-progress span { background: linear-gradient(90deg, var(--twl-sage), var(--twl-secondary)); }

/* Buttons */
.twl-button,
.twl-generated-page button:not(.twl-danger-link):not(.twl-app-mobile-nav summary),
.twl-directory-page .geodir_button,
.twl-directory-page .gd-submit,
.twl-directory-page input[type="submit"] {
    align-items: center;
    background: var(--twl-sage);
    border: 1px solid var(--twl-sage);
    border-radius: var(--twl-radius-sm);
    box-shadow: none;
    color: #fff !important;
    display: inline-flex;
    font-family: var(--twl-font-body);
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    min-height: 46px;
    padding: 11px 19px;
    text-decoration: none !important;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.twl-button:hover,
.twl-generated-page button:not(.twl-danger-link):hover,
.twl-directory-page .geodir_button:hover,
.twl-directory-page input[type="submit"]:hover {
    background: var(--twl-sage-dark);
    border-color: var(--twl-sage-dark);
    box-shadow: 0 8px 20px rgba(13,18,15,.2);
    transform: translateY(-1px);
}

.twl-button-secondary {
    background: #fff;
    border-color: #d2ccc2;
    color: var(--twl-ink) !important;
}
.twl-button-secondary:hover { background: var(--twl-sand-light); border-color: #c1b8ad; color: var(--twl-ink) !important; }
.twl-danger-link { color: var(--twl-error) !important; font-size: 13px; }
.twl-text-link { color: var(--twl-sage-dark) !important; font-weight: 700; }

/* Forms */
.twl-form label,
.twl-generated-page label,
.twl-directory-form-card label,
.twl-directory-page .geodir_form_row label {
    color: var(--twl-ink-soft);
    font-size: 13px;
    font-weight: 700;
}

.twl-form input:not([type="checkbox"]):not([type="radio"]),
.twl-form select,
.twl-form textarea,
.twl-generated-page input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.twl-generated-page select,
.twl-generated-page textarea,
.twl-directory-page input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.twl-directory-page select,
.twl-directory-page textarea {
    background: #fff;
    border: 1px solid #d8d2c8;
    border-radius: var(--twl-radius-sm);
    box-shadow: 0 1px 1px rgba(32,42,45,.02);
    color: var(--twl-ink);
    font-family: var(--twl-font-body);
    font-size: 15px;
    min-height: 48px;
    outline: none;
    padding: 11px 13px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.twl-form textarea,
.twl-generated-page textarea,
.twl-directory-page textarea { min-height: 120px; resize: vertical; }

.twl-form input:focus,
.twl-form select:focus,
.twl-form textarea:focus,
.twl-generated-page input:focus,
.twl-generated-page select:focus,
.twl-generated-page textarea:focus,
.twl-directory-page input:focus,
.twl-directory-page select:focus,
.twl-directory-page textarea:focus {
    border-color: var(--twl-sage);
    box-shadow: 0 0 0 3px rgba(167,203,90,.15);
}

.twl-checkbox-label input[type="checkbox"],
.twl-generated-page input[type="checkbox"],
.twl-generated-page input[type="radio"] {
    accent-color: var(--twl-sage);
}

.twl-form small,
.twl-directory-page .geodir_message_note,
.twl-directory-page .description { color: var(--twl-body); font-size: 12px; }

/* Tables */
.twl-table-card { padding: 0; overflow: hidden; }
.twl-table-scroll { border-radius: inherit; }
.twl-table { background: #fff; }
.twl-table th {
    background: var(--twl-sand-light);
    color: var(--twl-ink-soft);
    font-size: 10px;
    padding: 14px 16px;
}
.twl-table td { color: var(--twl-body); padding: 15px 16px; }
.twl-table tbody tr { transition: background .15s ease; }
.twl-table tbody tr:hover { background: #f4f5ef; }

/* Profile and planning rows */
.twl-profile-row { padding: 20px 0; }
.twl-profile-thumb { border-radius: 10px; width: 92px; height: 92px; flex-basis: 92px; }
.twl-profile-actions .geodir-author-actions,
.twl-profile-actions .gd-author-actions { display: flex; gap: 8px; }
.twl-planner-card { border-left: 4px solid var(--twl-sage); }
.twl-planner-image { border-radius: 12px; overflow: hidden; }
.twl-payment-summary span { background: var(--twl-sand-light); }

.twl-task-card,
.twl-budget-item { box-shadow: none; }
.twl-task-edit,
.twl-budget-form { background: #f4f5ef; border-radius: 10px; padding: 16px; }
.twl-task-edit > summary,
.twl-budget-item details > summary { cursor: pointer; }

/* Notices and empty states */
.twl-notice {
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: none;
}
.twl-notice-success { background: #edf7f1; border-color: #cce7d7; color: #296244; }
.twl-notice-error { background: #fff1f1; border-color: #f0cdcd; color: #8c3434; }
.twl-notice-info { background: #eef6fa; border-color: #cfe2ea; color: #315e72; }
.twl-empty { padding: 48px 28px; }
.twl-empty::before {
    content: "♡";
    align-items: center;
    background: var(--twl-sage-soft);
    border-radius: 50%;
    color: var(--twl-sage-dark);
    display: inline-flex;
    font-size: 26px;
    height: 62px;
    justify-content: center;
    margin-bottom: 16px;
    width: 62px;
}


/* My Wedding public gateway */
body.twl-my-wedding-page:not(.twl-user-couple) {
    background: var(--twl-ivory);
}

.twl-couple-gateway {
    margin: 0 auto;
    max-width: 1480px;
    overflow: hidden;
    padding: clamp(24px, 4vw, 62px) clamp(16px, 4vw, 46px) 90px;
}

.twl-gateway-hero {
    align-items: center;
    background:
        radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--twl-clay) 34%, transparent), transparent 34%),
        radial-gradient(circle at 12% 94%, color-mix(in srgb, var(--twl-secondary) 22%, transparent), transparent 35%),
        linear-gradient(135deg, #fff 0%, #edf3e5 54%, #e8f0da 100%);
    border: 1px solid var(--twl-sand);
    border-radius: 30px;
    display: grid;
    gap: clamp(35px, 6vw, 82px);
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    min-height: 650px;
    overflow: hidden;
    padding: clamp(38px, 6vw, 88px);
    position: relative;
}

.twl-gateway-hero::after {
    border: 1px solid rgba(13,18,15,.14);
    border-radius: 50%;
    content: "";
    height: 460px;
    position: absolute;
    right: -230px;
    top: -230px;
    width: 460px;
}

.twl-gateway-copy { position: relative; z-index: 2; }
.twl-gateway-kicker {
    color: var(--twl-sage-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    margin: 0 0 20px;
    text-transform: uppercase;
}
.twl-gateway-copy h1 {
    font-size: clamp(3.4rem, 7vw, 6.8rem);
    line-height: .88;
    margin: 0 0 28px;
    max-width: 720px;
}
.twl-gateway-lead {
    color: var(--twl-body);
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.72;
    margin: 0;
    max-width: 650px;
}
.twl-gateway-trust {
    border-top: 1px solid rgba(13,18,15,.12);
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0,1fr));
    margin-top: 42px;
    padding-top: 25px;
}
.twl-gateway-trust span { color: var(--twl-body); display: grid; font-size: 11px; gap: 3px; }
.twl-gateway-trust strong { color: var(--twl-ink); font-size: 16px; }

.twl-gateway-preview { perspective: 1400px; position: relative; z-index: 2; }
.twl-preview-window {
    background: #fff;
    border: 1px solid rgba(13,18,15,.12);
    border-radius: 22px;
    box-shadow: 0 35px 80px rgba(13,18,15,.18);
    overflow: hidden;
    transform: rotateY(-4deg) rotateX(1.5deg);
}
.twl-preview-topbar {
    align-items: center;
    background: var(--twl-ink);
    color: rgba(255,255,255,.7);
    display: flex;
    gap: 6px;
    min-height: 48px;
    padding: 0 17px;
}
.twl-preview-topbar > span { background: rgba(255,255,255,.26); border-radius: 50%; height: 7px; width: 7px; }
.twl-preview-topbar b { font-size: 11px; letter-spacing: .08em; margin-left: auto; text-transform: uppercase; }
.twl-preview-content { background: #f4f5ef; padding: clamp(20px, 3vw, 34px); }
.twl-preview-welcome { align-items: center; display: flex; justify-content: space-between; margin-bottom: 20px; }
.twl-preview-welcome div { display: grid; gap: 3px; }
.twl-preview-welcome small,
.twl-preview-card > small,
.twl-preview-stats small { color: var(--twl-body); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.twl-preview-welcome strong { color: var(--twl-ink); font-family: var(--twl-font-display); font-size: 27px; }
.twl-preview-welcome > span { background: var(--twl-sage-soft); border-radius: 99px; color: var(--twl-sage-dark); font-size: 10px; font-weight: 800; padding: 7px 10px; }
.twl-preview-stats { display: grid; gap: 10px; grid-template-columns: repeat(3,1fr); margin-bottom: 12px; }
.twl-preview-stats div,
.twl-preview-card { background: #fff; border: 1px solid var(--twl-sand); border-radius: 12px; padding: 15px; }
.twl-preview-stats div { display: grid; gap: 6px; }
.twl-preview-stats strong { color: var(--twl-ink); font-size: 18px; }
.twl-preview-grid { display: grid; gap: 12px; grid-template-columns: 1.25fr .75fr; }
.twl-preview-card > small { display: block; margin-bottom: 12px; }
.twl-preview-suppliers p { align-items: center; border-top: 1px solid var(--twl-sand); display: grid; gap: 8px; grid-template-columns: 28px 1fr auto; margin: 0; padding: 11px 0; }
.twl-preview-suppliers i { background: linear-gradient(135deg,var(--twl-sage),var(--twl-secondary)); border-radius: 8px; height: 28px; width: 28px; }
.twl-preview-suppliers span { color: var(--twl-body); display: grid; font-size: 9px; gap: 1px; }
.twl-preview-suppliers b { color: var(--twl-ink); font-size: 11px; }
.twl-preview-suppliers em { background: var(--twl-secondary-soft); border-radius: 99px; color: #566158; font-size: 8px; font-style: normal; font-weight: 800; padding: 5px 7px; }
.twl-preview-timeline p { align-items: center; border-left: 2px solid var(--twl-sage-soft); display: grid; gap: 9px; grid-template-columns: 42px 1fr; margin: 0 0 11px; padding-left: 9px; }
.twl-preview-timeline b { color: var(--twl-sage-dark); font-size: 9px; }
.twl-preview-timeline span { color: var(--twl-ink-soft); font-size: 10px; }

.twl-gateway-auth {
    align-items: start;
    display: grid;
    gap: clamp(35px, 7vw, 110px);
    grid-template-columns: minmax(260px,.78fr) minmax(440px,1.22fr);
    margin: 0 auto;
    max-width: 1180px;
    padding: clamp(72px, 10vw, 135px) 0 80px;
}
.twl-gateway-auth-copy { padding-top: 34px; }
.twl-gateway-auth-copy h2 { font-family: var(--twl-font-display); font-size: clamp(2.7rem,5vw,4.6rem); line-height: .95; margin: 0 0 18px; }
.twl-gateway-auth-copy > p:last-child { color: var(--twl-body); font-size: 17px; line-height: 1.7; }
.twl-gateway-auth-card {
    background: #fff;
    border: 1px solid var(--twl-sand);
    border-radius: 22px;
    box-shadow: var(--twl-shadow);
    padding: clamp(23px,4vw,42px);
}
.twl-auth-tabs { background: var(--twl-sand-light); border-radius: 10px; display: grid; gap: 5px; grid-template-columns: 1fr 1fr; margin-bottom: 28px; padding: 5px; }
.twl-auth-tabs a { border-radius: 7px; color: var(--twl-body) !important; font-size: 13px; font-weight: 800; padding: 11px; text-align: center; text-decoration: none !important; }
.twl-auth-tabs a.is-active { background: #fff; box-shadow: 0 2px 9px rgba(13,18,15,.08); color: var(--twl-ink) !important; }
.twl-gateway-form { gap: 17px; }
.twl-gateway-form label { font-size: 13px; }
.twl-gateway-form label > small { color: var(--twl-body); display: block; font-size: 11px; font-weight: 400; margin-top: 5px; }
.twl-button-wide { justify-content: center; margin-top: 5px; width: 100%; }
.twl-button-wide span { margin-left: auto; }
.twl-login-options { align-items: center; display: flex; font-size: 12px; justify-content: space-between; }
.twl-login-options a { color: var(--twl-sage-dark) !important; font-weight: 700; }
.twl-check-label { align-items: center; display: flex !important; flex-direction: row !important; font-weight: 500 !important; gap: 7px !important; }
.twl-check-label input { height: auto !important; width: auto !important; }
.twl-form-terms { color: var(--twl-body); font-size: 10px; line-height: 1.55; margin: 0; text-align: center; }
.twl-supplier-switch { border-top: 1px solid var(--twl-sand); color: var(--twl-body); font-size: 12px; margin: 26px 0 0; padding-top: 20px; text-align: center; }
.twl-supplier-switch a { color: var(--twl-sage-dark) !important; font-weight: 800; }

.twl-gateway-tools {
    border-top: 1px solid var(--twl-sand);
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3,1fr);
    margin: 0 auto;
    max-width: 1240px;
}
.twl-gateway-tools > div { border-bottom: 1px solid var(--twl-sand); padding: 36px 30px; }
.twl-gateway-tools > div:not(:nth-child(3n+1)) { border-left: 1px solid var(--twl-sand); }
.twl-gateway-tools span { align-items: center; background: var(--twl-sage-soft); border-radius: 11px; color: var(--twl-sage-dark); display: inline-flex; font-size: 19px; height: 42px; justify-content: center; margin-bottom: 17px; width: 42px; }
.twl-gateway-tools h3 { font-family: var(--twl-font-display); font-size: 26px; margin: 0 0 9px; }
.twl-gateway-tools p { color: var(--twl-body); font-size: 13px; line-height: 1.65; margin: 0; }
.twl-gateway-account-message { margin: clamp(50px,10vw,120px) auto; max-width: 720px; }

/* Auth pages */
.twl-auth-shell {
    display: grid;
    grid-template-columns: minmax(340px, .9fr) minmax(460px, 1.1fr);
    min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}

.twl-auth-intro {
    background:
        radial-gradient(circle at 80% 12%, rgba(167,203,90,.22), transparent 35%),
        linear-gradient(145deg, #0d120f 0%, #1b2a1f 100%);
    color: rgba(255,255,255,.78);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(36px, 6vw, 82px);
}
.twl-auth-intro .twl-eyebrow { color: #d7ddd2; }
.twl-auth-intro h1 { color: #fff; max-width: 650px; }
.twl-auth-lead { font-size: 18px; line-height: 1.75; max-width: 620px; }
.twl-auth-intro ul { display: grid; gap: 12px; list-style: none; margin: 28px 0 0; padding: 0; }
.twl-auth-intro li { align-items: center; display: flex; gap: 11px; }
.twl-auth-intro li::before { content: "✓"; align-items: center; background: rgba(167,203,90,.22); border-radius: 50%; color: #ffffff; display: inline-flex; height: 26px; justify-content: center; width: 26px; }
.twl-auth-small { color: rgba(255,255,255,.4); font-size: 12px; }
.twl-auth-panel { align-items: center; background: var(--twl-ivory); display: flex; justify-content: center; padding: clamp(30px, 6vw, 90px); }
.twl-auth-panel .twl-auth-card { background: #fff; border: 1px solid var(--twl-sand); border-radius: var(--twl-radius-lg); box-shadow: var(--twl-shadow); margin: 0; max-width: 600px; padding: clamp(25px, 4vw, 42px); width: 100%; }
.twl-auth-panel .twl-auth-card h2 { font-family: var(--twl-font-display); font-size: 38px; }

.twl-standalone-shell,
.twl-public-tool-shell { margin: 0 auto; max-width: var(--twl-content); padding: clamp(35px, 6vw, 80px) 22px; }

/* Directory shell */
.twl-directory-shell {
    margin: 0 auto;
    max-width: var(--twl-content);
    padding: clamp(30px, 5vw, 64px) 22px 90px;
}

.twl-directory-hero {
    background:
        radial-gradient(circle at 85% 12%, rgba(167,203,90,.2), transparent 30%),
        linear-gradient(130deg, #ecefe8 0%, #f4f5ef 100%);
    border: 1px solid var(--twl-sand);
    border-radius: var(--twl-radius-lg);
    margin-bottom: 28px;
    overflow: hidden;
    padding: clamp(32px, 6vw, 72px);
    position: relative;
}
.twl-directory-hero h1 { margin: 0 0 16px; max-width: 800px; }
.twl-directory-hero > p,
.twl-directory-intro { color: var(--twl-body); font-size: 17px; line-height: 1.7; max-width: 780px; }
.twl-directory-intro p:last-child { margin-bottom: 0; }

.twl-directory-content {
    background: transparent;
    min-width: 0;
}

.twl-directory-breadcrumbs {
    align-items: center;
    color: var(--twl-body);
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px;
    margin-bottom: 20px;
}
.twl-directory-breadcrumbs a { color: var(--twl-body) !important; text-decoration: none !important; }
.twl-directory-breadcrumbs a:hover { color: var(--twl-sage-dark) !important; }

.twl-listing-heading {
    align-items: flex-end;
    background: #fff;
    border: 1px solid var(--twl-sand);
    border-radius: var(--twl-radius-lg);
    box-shadow: var(--twl-shadow-sm);
    display: flex;
    gap: 30px;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: clamp(26px, 4vw, 46px);
}
.twl-listing-heading h1 { margin: 0 0 13px; }
.twl-listing-tagline { color: var(--twl-body); font-size: 17px; line-height: 1.65; margin: 0; max-width: 760px; }
.twl-listing-facts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.twl-listing-facts span { background: var(--twl-sand-light); border: 1px solid var(--twl-sand); border-radius: 999px; color: var(--twl-ink-soft); font-size: 12px; font-weight: 650; padding: 7px 11px; }
.twl-listing-heading-actions { align-items: flex-end; display: flex; flex: 0 0 auto; flex-direction: column; gap: 10px; }
.twl-listing-heading-actions .twl-button { min-width: 165px; }
.twl-listing-content { display: grid; gap: 22px; }

/* GeoDirectory search bar */
.twl-directory-page .geodir-search,
.twl-directory-page .geodir-search-container,
.twl-directory-page .geodir-search-form,
.twl-directory-page form.geodir-listing-search {
    background: #fff;
    border: 1px solid var(--twl-sand);
    border-radius: var(--twl-radius);
    box-shadow: var(--twl-shadow-sm);
    margin-bottom: 24px;
    padding: 16px;
}

.twl-directory-page .geodir-search .row,
.twl-directory-page .geodir-search-container .row,
.twl-directory-page form.geodir-listing-search .row {
    align-items: flex-end;
    gap: 10px 0;
}

.twl-directory-page .geodir-search button,
.twl-directory-page .geodir-search input[type="submit"],
.twl-directory-page .geodir-search .btn {
    border-radius: var(--twl-radius-sm) !important;
    min-height: 48px;
}

/* Loop controls */
.twl-directory-page .geodir-loop-actions-container,
.twl-directory-page .geodir-loop-actions,
.twl-directory-page .gd-loop-actions {
    align-items: center;
    background: #fff;
    border: 1px solid var(--twl-sand);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 10px 14px;
}

/* Archive cards: broad selectors cover Gutenberg and AyeCode UI output */
.twl-directory-page .geodir-loop-container > .row,
.twl-directory-page .geodir-loop-container .geodir-category-list-view,
.twl-directory-page .geodir-loop-container .geodir-gridview,
.twl-directory-page .geodir-listings > .row {
    row-gap: 22px;
}

.twl-directory-page .geodir-post,
.twl-directory-page article.geodir-post,
.twl-directory-page .geodir-loop-container .card {
    border-radius: var(--twl-radius) !important;
}

.twl-directory-page .geodir-post > .card,
.twl-directory-page .geodir-post .geodir-post-content-container,
.twl-directory-page .geodir-loop-container .geodir-post,
.twl-directory-page .geodir-category-list-view > li,
.twl-directory-page .geodir-gridview > li {
    background: #fff;
    border: 1px solid var(--twl-sand) !important;
    border-radius: var(--twl-radius) !important;
    box-shadow: var(--twl-shadow-sm);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.twl-directory-page .geodir-post > .card:hover,
.twl-directory-page .geodir-loop-container .geodir-post:hover,
.twl-directory-page .geodir-category-list-view > li:hover,
.twl-directory-page .geodir-gridview > li:hover {
    border-color: #c8c0b5 !important;
    box-shadow: var(--twl-shadow);
    transform: translateY(-3px);
}

.twl-directory-page .geodir-post-image,
.twl-directory-page .geodir-post-image-wrap,
.twl-directory-page .geodir-post .embed-has-action,
.twl-directory-page .geodir-post .geodir-image-container {
    background: var(--twl-sand-light);
    overflow: hidden;
}

.twl-directory-page .geodir-post-image img,
.twl-directory-page .geodir-post img.geodir-post-img,
.twl-directory-page .geodir-post .carousel-item img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .35s ease;
    width: 100%;
}
.twl-directory-page .geodir-post:hover .geodir-post-image img,
.twl-directory-page .geodir-post:hover img.geodir-post-img { transform: scale(1.025); }

.twl-directory-page .geodir-post-content,
.twl-directory-page .geodir-post-content-container,
.twl-directory-page .geodir-post .card-body { padding: 18px !important; }

.twl-directory-page .geodir-post-title,
.twl-directory-page .geodir-post-title a,
.twl-directory-page h2.geodir-entry-title a,
.twl-directory-page h3.geodir-entry-title a {
    color: var(--twl-ink) !important;
    font-family: var(--twl-font-display);
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.1;
    text-decoration: none !important;
}

.twl-directory-page .geodir-post-content p,
.twl-directory-page .geodir-field-post_content,
.twl-directory-page .geodir-output-location { color: var(--twl-body); }

.twl-directory-page .geodir-post-meta,
.twl-directory-page .geodir_post_meta,
.twl-directory-page .geodir-field-address,
.twl-directory-page .geodir-field-travel_coverage,
.twl-directory-page .geodir-field-starting_price {
    color: var(--twl-body);
    font-size: 13px;
    line-height: 1.5;
}

.twl-directory-page .geodir-post-fav,
.twl-directory-page .geodir-favourite,
.twl-directory-page .geodir-addtofav {
    align-items: center;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--twl-sand);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(32,42,45,.12);
    display: inline-flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

/* Details tabs and content */
.twl-directory-single .geodir-single-tabs,
.twl-directory-single .geodir-tabs,
.twl-directory-single .geodir-tabs-content,
.twl-directory-single .tab-content,
.twl-directory-single .geodir-output-location,
.twl-directory-single .geodir_post_meta,
.twl-directory-single .geodir-map-wrap,
.twl-directory-single .geodir-map-container,
.twl-directory-single .geodir-post-slider,
.twl-directory-single .geodir-images,
.twl-directory-single .geodir-post-images {
    background: #fff;
    border: 1px solid var(--twl-sand);
    border-radius: var(--twl-radius);
    box-shadow: var(--twl-shadow-sm);
}

.twl-directory-single .geodir-single-tabs,
.twl-directory-single .geodir-tabs { overflow: hidden; }

.twl-directory-single .geodir-single-tabs .nav-tabs,
.twl-directory-single .geodir-tabs .nav-tabs,
.twl-directory-single ul.geodir-tabs {
    background: var(--twl-sand-light);
    border: 0;
    display: flex;
    gap: 4px;
    margin: 0;
    overflow-x: auto;
    padding: 8px;
}

.twl-directory-single .nav-tabs .nav-link,
.twl-directory-single .geodir-tabs li a {
    background: transparent;
    border: 0 !important;
    border-radius: 8px;
    color: var(--twl-body) !important;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 16px;
    white-space: nowrap;
}
.twl-directory-single .nav-tabs .nav-link.active,
.twl-directory-single .geodir-tabs li.active a {
    background: #fff;
    color: var(--twl-ink) !important;
    box-shadow: 0 1px 4px rgba(32,42,45,.08);
}

.twl-directory-single .tab-content,
.twl-directory-single .geodir-tabs-content { border-top: 0; padding: clamp(20px, 3vw, 34px); }

.twl-directory-single .geodir-output-location,
.twl-directory-single .geodir_post_meta { padding: clamp(20px, 3vw, 30px); }
.twl-directory-single .geodir-output-location > div,
.twl-directory-single .geodir_post_meta > div,
.twl-directory-single .geodir-field { border-bottom: 1px solid var(--twl-sand); padding: 12px 0; }
.twl-directory-single .geodir-output-location > div:last-child,
.twl-directory-single .geodir_post_meta > div:last-child,
.twl-directory-single .geodir-field:last-child { border-bottom: 0; }

.twl-directory-single .geodir-images,
.twl-directory-single .geodir-post-images,
.twl-directory-single .geodir-post-slider { overflow: hidden; }
.twl-directory-single .geodir-images img,
.twl-directory-single .geodir-post-images img,
.twl-directory-single .geodir-post-slider img { width: 100%; object-fit: cover; }

.twl-directory-single .twl-enquiry-form-card {
    background: linear-gradient(145deg, #fff, #f4f5ef);
    border-color: #d7ddd2;
    max-width: none;
}
.twl-directory-single .twl-enquiry-form-card h2 { font-family: var(--twl-font-display); font-size: clamp(30px, 4vw, 44px); }

/* Add listing form */
.twl-directory-form-card {
    background: #fff;
    border: 1px solid var(--twl-sand);
    border-radius: var(--twl-radius-lg);
    box-shadow: var(--twl-shadow-sm);
    padding: clamp(22px, 4vw, 44px);
}

.twl-directory-submit .geodir-add-listing,
.twl-directory-submit .geodir-add-listing-form,
.twl-directory-submit form#geodir-add-listing-form { max-width: none; }

.twl-directory-submit .geodir_form_row,
.twl-directory-submit .gd-form-row,
.twl-directory-submit .form-group {
    border-bottom: 1px solid var(--twl-sand);
    margin: 0;
    padding: 18px 0;
}
.twl-directory-submit .geodir_form_row:last-child { border-bottom: 0; }
.twl-directory-submit .geodir_form_row label { margin-bottom: 8px; }
.twl-directory-submit .geodir_message_note { display: block; margin-top: 7px; }
.twl-directory-submit .geodir-category-container,
.twl-directory-submit .geodir-images-container { background: var(--twl-sand-light); border-radius: 10px; padding: 14px; }

/* Pagination */
.twl-directory-page .page-numbers,
.twl-directory-page .geodir-pagination a,
.twl-directory-page .geodir-pagination span {
    align-items: center;
    background: #fff;
    border: 1px solid var(--twl-sand);
    border-radius: 8px;
    color: var(--twl-ink) !important;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    min-width: 40px;
    padding: 0 10px;
    text-decoration: none !important;
}
.twl-directory-page .page-numbers.current,
.twl-directory-page .geodir-pagination .current { background: var(--twl-sage); border-color: var(--twl-sage); color: #fff !important; }

/* Maps */
.twl-directory-page .geodir-map-wrap,
.twl-directory-page .geodir-map-container,
.twl-directory-page .geodir_map_container {
    border-radius: var(--twl-radius);
    overflow: hidden;
}

/* Public wedding site refinements */
.twl-public-tool-shell:has(.twl-wedding-site) { max-width: none; padding: 0; }
.twl-wedding-site { font-family: var(--twl-font-body); }
.twl-wedding-hero h1,
.twl-wedding-section h2 { font-family: var(--twl-font-display); }
.twl-wedding-section { padding-left: 22px; padding-right: 22px; }

/* Responsive */

@media (max-width: 1120px) {
    .twl-gateway-hero { grid-template-columns: 1fr 1fr; padding: 50px 42px; }
    .twl-gateway-trust { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
    .twl-gateway-hero { grid-template-columns: 1fr; min-height: auto; }
    .twl-gateway-copy h1 { max-width: 800px; }
    .twl-gateway-preview { margin: 0 auto; max-width: 680px; width: 100%; }
    .twl-preview-window { transform: none; }
    .twl-gateway-auth { gap: 35px; grid-template-columns: 1fr; }
    .twl-gateway-auth-copy { padding-top: 0; text-align: center; }
    .twl-gateway-auth-copy > p:last-child { margin-left: auto; margin-right: auto; max-width: 620px; }
}

@media (max-width: 1080px) {
    .twl-app-shell { grid-template-columns: 226px minmax(0,1fr); }
    .twl-app-sidebar { padding-left: 14px; padding-right: 14px; }
    .twl-app-brand span:last-child { display: none; }
    .twl-app-brand { justify-content: center; }
    .twl-planner-card { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .twl-app-shell { display: block; }
    .twl-app-sidebar { display: none; }
    .twl-app-topbar { justify-content: space-between; min-height: 64px; padding: 10px 18px; }
    .twl-app-mobile-nav { display: block; position: relative; }
    .twl-app-mobile-nav summary {
        background: #fff;
        border: 1px solid var(--twl-sand);
        border-radius: 8px;
        color: var(--twl-ink);
        cursor: pointer;
        font-size: 13px;
        font-weight: 700;
        list-style: none;
        padding: 9px 13px;
    }
    .twl-app-mobile-nav summary::-webkit-details-marker { display: none; }
    .twl-app-mobile-links {
        background: var(--twl-ink);
        border-radius: 12px;
        box-shadow: var(--twl-shadow);
        left: 0;
        min-width: 230px;
        padding: 10px;
        position: absolute;
        top: calc(100% + 8px);
        z-index: 20;
    }
    .twl-app-content { padding: 28px 18px 56px; }
    .twl-auth-shell { grid-template-columns: 1fr; }
    .twl-auth-intro { min-height: auto; padding: 34px 24px; }
    .twl-auth-intro > div { margin: 48px 0; }
    .twl-auth-panel { padding: 32px 18px 60px; }
    .twl-listing-heading { align-items: flex-start; flex-direction: column; }
    .twl-listing-heading-actions { align-items: stretch; flex-direction: row; flex-wrap: wrap; width: 100%; }
    .twl-listing-heading-actions .twl-button { flex: 1; min-width: 170px; }
}

@media (max-width: 640px) {
    .twl-app-user small { display: none; }
    .twl-app-user strong { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .twl-dashboard-header { align-items: flex-start; }
    .twl-dashboard-header .twl-button { width: 100%; }
    .twl-card { border-radius: 12px; padding: 18px; }
    .twl-action-card { min-height: 0; }
    .twl-auth-intro h1 { font-size: 42px; }
    .twl-directory-shell { padding-left: 14px; padding-right: 14px; }
    .twl-directory-hero,
    .twl-listing-heading { border-radius: 14px; padding: 25px 20px; }
    .twl-listing-heading-actions { flex-direction: column; }
    .twl-listing-heading-actions > * { width: 100%; }
    .twl-listing-facts { align-items: flex-start; flex-direction: column; }
    .twl-couple-gateway { padding: 14px 12px 65px; }
    .twl-gateway-hero { border-radius: 17px; padding: 35px 22px; }
    .twl-gateway-copy h1 { font-size: 48px; }
    .twl-gateway-trust { grid-template-columns: 1fr 1fr; margin-top: 30px; }
    .twl-preview-stats { grid-template-columns: 1fr 1fr; }
    .twl-preview-stats div:last-child { grid-column: 1 / -1; }
    .twl-preview-grid { grid-template-columns: 1fr; }
    .twl-gateway-auth { padding: 70px 6px 55px; }
    .twl-gateway-auth-card { border-radius: 16px; padding: 22px 17px; }
    .twl-gateway-form .twl-grid-2 { grid-template-columns: 1fr; }
    .twl-login-options { align-items: flex-start; flex-direction: column; gap: 10px; }
    .twl-gateway-tools { grid-template-columns: 1fr; }
    .twl-gateway-tools > div { border-left: 0 !important; padding: 27px 12px; }
    .twl-listing-facts span { border-radius: 8px; }
    .twl-directory-page .geodir-loop-actions-container,
    .twl-directory-page .geodir-loop-actions { align-items: stretch; flex-direction: column; }
    .twl-directory-single .nav-tabs .nav-link,
    .twl-directory-single .geodir-tabs li a { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .twl-generated-page *,
    .twl-directory-page * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ================================================================
   v1.5 unified Ivory & Olive application UI
   A restrained four-colour system is the single source of visual truth.
   ================================================================ */
:root {
    --twl-ink: #0d120f;
    --twl-ink-soft: #2f3d33;
    --twl-body: #566158;
    --twl-ivory: #f4f5ef;
    --twl-sage: #0d120f;
    --twl-sage-dark: #1b2a1f;
    --twl-sage-soft: #e8f0da;
    --twl-clay: #a7cb5a;
    --twl-secondary: #a7cb5a;
    --twl-secondary-soft: #edf3e5;
    --twl-sand: #d7ddd2;
    --twl-sand-light: #ecefe8;
}

/* Logged-in account areas use a self-contained, low-clutter header. */
body.twl-user-couple.twl-couple-area .elementor-location-header,
body.twl-user-couple.twl-couple-area .site-header,
body.twl-user-couple.twl-couple-area .elementor-location-footer,
body.twl-user-couple.twl-couple-area .site-footer,
body.twl-user-supplier.twl-supplier-area .elementor-location-header,
body.twl-user-supplier.twl-supplier-area .site-header,
body.twl-user-supplier.twl-supplier-area .elementor-location-footer,
body.twl-user-supplier.twl-supplier-area .site-footer {
    display: none !important;
}

.twl-app-shell {
    background: var(--twl-ivory);
    display: block;
    min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}

.twl-app-accountbar {
    align-items: center;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--twl-sand);
    display: flex;
    justify-content: space-between;
    min-height: 56px;
    padding: 10px clamp(20px, 3vw, 34px);
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 30;
}

.twl-app-wordmark {
    color: var(--twl-ink) !important;
    font-family: var(--twl-font-display);
    font-size: 21px;
    letter-spacing: -.025em;
    text-decoration: none !important;
}

.twl-app-wordmark strong { font-weight: 600; }

.twl-app-utility-nav {
    align-items: center;
    display: flex;
    gap: 17px;
}

.twl-app-utility-nav a {
    color: var(--twl-body) !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
}
.twl-app-utility-nav a:hover { color: var(--twl-sage) !important; }

.twl-app-main { min-width: 0; }

.twl-app-content {
    margin: 0 auto;
    max-width: 1060px;
    padding: 30px 24px 80px;
    width: 100%;
}

.twl-account-masthead {
    border-bottom: 1px solid var(--twl-sand);
    margin-bottom: 24px;
    padding: 6px 0 34px;
}

.twl-account-kicker {
    color: var(--twl-sage);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .17em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.twl-account-masthead h1 {
    color: var(--twl-ink);
    font-family: var(--twl-font-display);
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1;
    margin: 0;
}

.twl-account-masthead > p:last-child {
    color: var(--twl-body);
    margin: 12px 0 0;
}

.twl-countdown-card {
    background:
        radial-gradient(circle at 80% 30%, rgba(167,203,90,.11), transparent 35%),
        linear-gradient(100deg, #f5f0e8 0%, #fdfbf7 64%, #fff 100%);
    border-left: 3px solid var(--twl-sage);
    display: grid;
    grid-template-columns: auto 1fr;
    margin-top: 14px;
    min-height: 122px;
    padding: 25px 24px;
    width: 100%;
}

.twl-countdown-card strong {
    color: var(--twl-sage);
    font-family: var(--twl-font-display);
    font-size: 44px;
    font-weight: 600;
    grid-row: 1 / span 3;
    line-height: 1;
    margin-right: 18px;
}

.twl-countdown-card span {
    color: var(--twl-ink-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.twl-countdown-card em {
    color: var(--twl-clay);
    font-size: 13px;
    font-style: italic;
    margin-top: 8px;
}

.twl-countdown-card small {
    color: var(--twl-body);
    font-size: 11px;
    margin-top: 4px;
}

.twl-app-tabs-wrap {
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.twl-app-tabs {
    background: rgba(255,255,255,.78);
    border: 1px solid var(--twl-sand);
    border-radius: 11px;
    display: flex;
    min-width: max-content;
    padding: 4px;
    width: 100%;
}

.twl-app-tabs .twl-app-nav-link {
    border-radius: 8px;
    color: var(--twl-body) !important;
    flex: 1 0 auto;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    min-height: 34px;
    padding: 8px 17px;
    text-align: center;
}

.twl-app-tabs .twl-app-nav-link:hover {
    background: var(--twl-sand-light);
    color: var(--twl-ink) !important;
    transform: none;
}

.twl-app-tabs .twl-app-nav-link.is-active {
    background: var(--twl-sage-soft);
    box-shadow: none;
    color: var(--twl-ink) !important;
}

.twl-app-page-content { min-width: 0; }
.twl-app-page-content .twl-dashboard { max-width: none; }

/* Inner pages no longer repeat a giant title directly beneath the account masthead. */
.twl-app-page-content .twl-dashboard-header {
    align-items: center;
    border-bottom: 0;
    margin: 0 0 16px;
    padding: 0;
}
.twl-app-page-content .twl-dashboard-header h2 {
    font-size: clamp(24px, 3vw, 31px);
    letter-spacing: -.015em;
}
.twl-app-page-content .twl-dashboard-header .twl-eyebrow { display: none; }
.twl-app-page-content .twl-dashboard-header p:not(.twl-eyebrow) { font-size: 13px; }

/* The Settings tab should be calm and focused on wedding profile fields. */
body.twl-page-couple-dashboard .twl-planner-summary,
body.twl-page-couple-dashboard .twl-dashboard-cards,
body.twl-page-couple-dashboard .twl-dashboard-header .twl-button {
    display: none !important;
}
body.twl-page-couple-dashboard .twl-dashboard-header h2::before { content: "Wedding settings"; font-size: inherit; }
body.twl-page-couple-dashboard .twl-dashboard-header h2 { font-size: 0; }

/* Screenshot-inspired shortlist category view. */
.twl-section-heading {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 8px 0 16px;
}
.twl-section-heading h2 {
    color: var(--twl-ink);
    font-family: var(--twl-font-display);
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}
.twl-button-compact { min-height: 34px; padding: 6px 13px; }

.twl-shortlist-category-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0,1fr));
}

.twl-shortlist-category-card {
    background: rgba(255,255,255,.78);
    border: 1px solid var(--twl-sand);
    border-radius: 12px;
    min-height: 104px;
    padding: 17px;
}

.twl-shortlist-category-card header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}
.twl-shortlist-category-card h3 {
    color: var(--twl-ink);
    font-family: var(--twl-font-display);
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}
.twl-shortlist-category-card header > span {
    align-items: center;
    background: var(--twl-sand-light);
    border-radius: 99px;
    color: var(--twl-body);
    display: inline-flex;
    font-size: 10px;
    height: 22px;
    justify-content: center;
    min-width: 22px;
    padding: 0 7px;
}
.twl-shortlist-category-card > p {
    color: var(--twl-body);
    font-size: 12px;
    font-style: italic;
    margin: 19px 0 0;
}
.twl-shortlist-category-card ul {
    display: grid;
    gap: 9px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}
.twl-shortlist-category-card li {
    align-items: center;
    border-top: 1px solid var(--twl-sand-light);
    display: flex;
    gap: 8px;
    justify-content: space-between;
    padding-top: 9px;
}
.twl-shortlist-category-card li a {
    color: var(--twl-ink) !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}
.twl-shortlist-category-card li small {
    color: var(--twl-sage);
    font-size: 9px;
    font-weight: 700;
}
.twl-shortlist-footer-action { margin-top: 20px; text-align: right; }

/* Keep dashboards light and editorial rather than app-heavy. */
.twl-app-shell .twl-card {
    background: rgba(255,255,255,.82);
    border-color: var(--twl-sand);
    box-shadow: none;
}
.twl-app-shell .twl-stat-card { border-left-color: var(--twl-sage); }
.twl-app-shell .twl-action-card:hover { border-top-color: var(--twl-sage); box-shadow: 0 12px 30px rgba(13,18,15,.07); }
.twl-app-shell .twl-table th { background: var(--twl-sand-light); }
.twl-app-shell .twl-task-edit,
.twl-app-shell .twl-budget-form { background: var(--twl-ivory); }

/* Registration and login pages now use the same calculator palette. */
.twl-auth-intro {
    background:
        radial-gradient(circle at 85% 15%, rgba(167,203,90,.22), transparent 35%),
        linear-gradient(150deg, var(--twl-ink), #1b2a1f);
}
.twl-auth-intro .twl-eyebrow { color: #d7ddd2; }
.twl-auth-intro li::before { background: rgba(13,18,15,.28); color: #fff; }
.twl-auth-panel { background: var(--twl-ivory); }
.twl-auth-panel .twl-auth-card,
.twl-gateway-auth-card { box-shadow: 0 18px 48px rgba(13,18,15,.07); }

.twl-gateway-hero {
    background:
        radial-gradient(circle at 88% 8%, rgba(167,203,90,.18), transparent 34%),
        radial-gradient(circle at 12% 94%, rgba(167,203,90,.14), transparent 35%),
        linear-gradient(135deg, #fff 0%, var(--twl-ivory) 58%, var(--twl-sand-light) 100%);
}

/* Supplier account adopts the same restrained account shell. */
.twl-supplier-masthead { padding-bottom: 28px; }
.twl-app-shell--supplier .twl-app-content { max-width: 1120px; }

@media (max-width: 860px) {
    .twl-app-content { padding: 24px 18px 65px; }
    .twl-shortlist-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .twl-app-tabs .twl-app-nav-link { padding-left: 13px; padding-right: 13px; }
}

@media (max-width: 580px) {
    .twl-app-accountbar { align-items: flex-start; gap: 8px; }
    .twl-app-utility-nav { gap: 11px; }
    .twl-app-utility-nav a { font-size: 10px; }
    .twl-app-wordmark { font-size: 18px; }
    .twl-account-masthead h1 { font-size: 34px; }
    .twl-countdown-card { min-height: 108px; padding: 21px 18px; }
    .twl-countdown-card strong { font-size: 38px; }
    .twl-shortlist-category-grid { grid-template-columns: 1fr; }
    .twl-section-heading { align-items: flex-start; flex-direction: column; }
    .twl-section-heading .twl-button { width: 100%; }
}

/* ================================================================
   v1.5 legacy consistency layer
   ================================================================ */
body.twl-generated-page,
body.twl-directory-page {
    background-color: var(--twl-ivory);
}

.twl-generated-page ::selection,
.twl-directory-page ::selection {
    background: var(--twl-secondary);
    color: #fff;
}

/* Taupe is decorative; deep olive remains the accessible action colour. */
.twl-account-kicker,
.twl-eyebrow,
.twl-budget-calculator__eyebrow,
.twl-text-link,
.twl-listing-tagline a,
.twl-directory-breadcrumbs a:hover {
    color: var(--twl-secondary) !important;
}

.twl-button,
.twl-generated-page button[type="submit"],
.twl-generated-page input[type="submit"],
.twl-directory-page button[type="submit"],
.twl-directory-page input[type="submit"],
.twl-directory-page .btn-primary,
.twl-directory-page .button-primary {
    background-color: var(--twl-sage) !important;
    border-color: var(--twl-sage) !important;
    color: #fff !important;
}

.twl-button:hover,
.twl-generated-page button[type="submit"]:hover,
.twl-generated-page input[type="submit"]:hover,
.twl-directory-page button[type="submit"]:hover,
.twl-directory-page input[type="submit"]:hover,
.twl-directory-page .btn-primary:hover,
.twl-directory-page .button-primary:hover {
    background-color: var(--twl-sage-dark) !important;
    border-color: var(--twl-sage-dark) !important;
}

.twl-button-secondary,
.twl-directory-page .btn-outline-primary {
    background: #fff !important;
    border-color: var(--twl-sand) !important;
    color: var(--twl-ink) !important;
}

.twl-button-secondary:hover,
.twl-directory-page .btn-outline-primary:hover {
    background: var(--twl-sand-light) !important;
    border-color: var(--twl-secondary) !important;
    color: var(--twl-ink) !important;
}

.twl-app-tabs .twl-app-nav-link.is-active,
.twl-auth-tabs a.is-active {
    background: var(--twl-sage-soft);
    color: var(--twl-ink) !important;
}

.twl-countdown-card {
    background:
        radial-gradient(circle at 84% 28%, rgba(167,203,90,.13), transparent 36%),
        linear-gradient(100deg, #edf3e5 0%, #f4f5ef 68%, #fff 100%);
    border-left-color: var(--twl-secondary);
}
.twl-countdown-card strong { color: var(--twl-ink); }
.twl-countdown-card em { color: var(--twl-secondary); }

.twl-auth-intro {
    background:
        radial-gradient(circle at 84% 14%, rgba(167,203,90,.20), transparent 35%),
        linear-gradient(150deg, var(--twl-ink), var(--twl-sage-dark));
}
.twl-auth-intro .twl-eyebrow { color: #d7ddd2 !important; }
.twl-auth-intro li::before { background: rgba(167,203,90,.28); }

.twl-gateway-hero,
.twl-directory-hero {
    background:
        radial-gradient(circle at 88% 10%, rgba(167,203,90,.14), transparent 34%),
        linear-gradient(135deg, #fff 0%, var(--twl-ivory) 62%, var(--twl-sand-light) 100%);
}

/* Form focus states throughout generated and GeoDirectory forms. */
.twl-generated-page input:not([type="checkbox"]):not([type="radio"]):focus,
.twl-generated-page select:focus,
.twl-generated-page textarea:focus,
.twl-directory-page input:not([type="checkbox"]):not([type="radio"]):focus,
.twl-directory-page select:focus,
.twl-directory-page textarea:focus {
    border-color: var(--twl-secondary) !important;
    box-shadow: 0 0 0 3px rgba(167,203,90,.16) !important;
    outline: none !important;
}

.twl-generated-page input[type="checkbox"],
.twl-generated-page input[type="radio"],
.twl-directory-page input[type="checkbox"],
.twl-directory-page input[type="radio"] {
    accent-color: var(--twl-sage);
}

/* GeoDirectory Select2: correct inner padding and align with all other forms. */
.twl-directory-submit .select2-container {
    max-width: 100%;
    width: 100% !important;
}

.twl-directory-submit .select2-container--default .select2-selection--single {
    align-items: center;
    background: #fff !important;
    border: 1px solid var(--twl-sand) !important;
    border-radius: 10px !important;
    display: flex !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 46px 0 16px !important;
}

.twl-directory-submit .select2-selection--single .select2-selection__rendered {
    color: var(--twl-ink) !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

.twl-directory-submit .select2-container--default .select2-selection--single .select2-selection__arrow {
    align-items: center;
    display: flex;
    height: 50px !important;
    justify-content: center;
    right: 4px !important;
    top: 0 !important;
    width: 42px !important;
}

.twl-directory-submit .select2-container--default .select2-selection--multiple {
    background: #fff !important;
    border: 1px solid var(--twl-sand) !important;
    border-radius: 10px !important;
    min-height: 52px !important;
    padding: 7px 12px !important;
}

.twl-directory-submit .select2-selection--multiple .select2-selection__rendered {
    align-items: center;
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

.twl-directory-submit .select2-selection--multiple .select2-search--inline {
    flex: 1 1 180px;
    margin: 0 !important;
}

.twl-directory-submit .select2-selection--multiple .select2-search__field {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    height: 36px !important;
    margin: 0 !important;
    min-width: 180px !important;
    padding: 0 4px !important;
    width: 100% !important;
}

.twl-directory-submit .select2-selection--multiple .select2-selection__choice {
    background: var(--twl-sage-soft) !important;
    border: 1px solid var(--twl-sand) !important;
    border-radius: 7px !important;
    color: var(--twl-ink) !important;
    margin: 0 !important;
    padding: 6px 10px 6px 28px !important;
}

.twl-directory-submit .select2-selection__choice__remove {
    border-right: 1px solid var(--twl-sand) !important;
    color: var(--twl-secondary) !important;
    height: 100% !important;
    padding: 0 8px !important;
}

.twl-directory-submit .select2-container--focus .select2-selection,
.twl-directory-submit .select2-container--open .select2-selection {
    border-color: var(--twl-secondary) !important;
    box-shadow: 0 0 0 3px rgba(167,203,90,.16) !important;
}

.select2-container--open .select2-dropdown {
    background: #fff;
    border: 1px solid var(--twl-sand, #d7ddd2) !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 32px rgba(13,18,15,.12);
    overflow: hidden;
}
.select2-container--open .select2-search--dropdown { padding: 10px !important; }
.select2-container--open .select2-search__field {
    border: 1px solid var(--twl-sand, #d7ddd2) !important;
    border-radius: 8px !important;
    height: 44px !important;
    padding: 0 12px !important;
}
.select2-results__options { padding: 6px !important; }
.select2-results__option {
    border-radius: 7px;
    line-height: 1.4;
    padding: 10px 12px !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--twl-sage, #0d120f) !important;
    color: #fff !important;
}


/* ================================================================
   v1.6 Forest & Lime consistency layer
   Palette: #0D120F, #1B2A1F, #A7CB5A, #F4F5EF
   ================================================================ */
:root {
    --twl-ink: #0D120F;
    --twl-ink-soft: #2F3D33;
    --twl-body: #566158;
    --twl-ivory: #F4F5EF;
    --twl-sage: #A7CB5A;
    --twl-sage-dark: #B8DA70;
    --twl-sage-soft: #E8F0DA;
    --twl-clay: #A7CB5A;
    --twl-secondary: #1B2A1F;
    --twl-secondary-soft: #EDF3E5;
    --twl-sand: #D7DDD2;
    --twl-sand-light: #ECEFE8;
    --twl-white: #FFFFFF;
}

body.twl-generated-page,
body.twl-directory-page {
    background: var(--twl-ivory);
    color: var(--twl-ink);
}

/* Primary actions use the lime accent with dark text. */
.twl-button,
.twl-generated-page button:not(.twl-danger-link):not(.twl-app-mobile-nav summary),
.twl-generated-page button[type="submit"],
.twl-generated-page input[type="submit"],
.twl-directory-page .geodir_button,
.twl-directory-page .gd-submit,
.twl-directory-page button[type="submit"],
.twl-directory-page input[type="submit"],
.twl-directory-page .btn-primary,
.twl-directory-page .button-primary {
    background: #A7CB5A !important;
    border-color: #A7CB5A !important;
    color: #0D120F !important;
}

.twl-button:hover,
.twl-generated-page button:not(.twl-danger-link):hover,
.twl-generated-page button[type="submit"]:hover,
.twl-generated-page input[type="submit"]:hover,
.twl-directory-page .geodir_button:hover,
.twl-directory-page button[type="submit"]:hover,
.twl-directory-page input[type="submit"]:hover,
.twl-directory-page .btn-primary:hover,
.twl-directory-page .button-primary:hover {
    background: #B8DA70 !important;
    border-color: #B8DA70 !important;
    color: #0D120F !important;
    box-shadow: 0 8px 22px rgba(13,18,15,.18);
}

.twl-button-secondary,
.twl-directory-page .btn-outline-primary {
    background: transparent !important;
    border-color: rgba(13,18,15,.28) !important;
    color: #0D120F !important;
}
.twl-button-secondary:hover,
.twl-directory-page .btn-outline-primary:hover {
    background: #E8F0DA !important;
    border-color: #A7CB5A !important;
    color: #0D120F !important;
}

/* Dark premium application surfaces. */
.twl-auth-intro,
.twl-account-hero,
.twl-supplier-hero,
.twl-listing-heading,
.twl-budget-calculator__summary {
    background: linear-gradient(145deg, #0D120F 0%, #1B2A1F 100%) !important;
    color: #F4F5EF;
}
.twl-auth-intro h1,
.twl-auth-intro h2,
.twl-account-hero h1,
.twl-account-hero h2,
.twl-supplier-hero h1,
.twl-listing-heading h1,
.twl-budget-calculator__summary strong {
    color: #F4F5EF !important;
}
.twl-auth-intro .twl-eyebrow,
.twl-auth-intro a,
.twl-account-hero .twl-eyebrow,
.twl-supplier-hero .twl-eyebrow,
.twl-budget-calculator__summary a {
    color: #A7CB5A !important;
}

/* Active navigation and selection states. */
.twl-app-tabs .twl-app-nav-link.is-active,
.twl-auth-tabs a.is-active,
.twl-app-nav-link:hover,
.twl-directory-page .nav-tabs .nav-link.active {
    background: #E8F0DA !important;
    color: #0D120F !important;
}
.twl-app-tabs .twl-app-nav-link.is-active::after,
.twl-auth-tabs a.is-active::after {
    background: #A7CB5A !important;
}

.twl-account-kicker,
.twl-eyebrow,
.twl-budget-calculator__eyebrow,
.twl-text-link,
.twl-listing-tagline a,
.twl-directory-breadcrumbs a:hover {
    color: #5E792F !important;
}

.twl-countdown-card {
    background: linear-gradient(105deg, #EDF3E5 0%, #F4F5EF 66%, #FFFFFF 100%) !important;
    border-left-color: #A7CB5A !important;
}
.twl-countdown-card em { color: #5E792F !important; }

.twl-progress span,
.twl-budget-breakdown__track span {
    background: #A7CB5A !important;
}

/* Form focus and enhanced selects. */
.twl-generated-page input:focus,
.twl-generated-page select:focus,
.twl-generated-page textarea:focus,
.twl-directory-page input:focus,
.twl-directory-page select:focus,
.twl-directory-page textarea:focus,
.select2-container--focus .select2-selection,
.select2-container--open .select2-selection {
    border-color: #A7CB5A !important;
    box-shadow: 0 0 0 4px rgba(167,203,90,.22) !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #1B2A1F !important;
    color: #F4F5EF !important;
}

.twl-generated-page ::selection,
.twl-directory-page ::selection {
    background: #A7CB5A;
    color: #0D120F;
}
