.site-header {
    color: var(--wine);
    background: rgba(255, 247, 242, .92);
    border-bottom-color: var(--line);
    backdrop-filter: blur(14px);
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 10000;
    padding: 9px 14px;
    border-radius: 8px;
    background: #fff;
    color: var(--wine);
    transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(201, 79, 114, .45);
    outline-offset: 3px;
}

.home-page .site-header {
    color: #fff;
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, .15);
    backdrop-filter: none;
}

.hero-secondary {
    position: absolute;
    top: 85px;
    left: -55px;
    z-index: 3;
    width: 155px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 80px 80px 16px 16px;
    background: rgba(255, 247, 242, .13);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .24);
    backdrop-filter: blur(8px);
}

.hero-secondary img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 70px 70px 12px 12px;
    object-fit: cover;
}

.hero-secondary span {
    display: block;
    padding: 10px 5px 6px;
    color: #f8e8ec;
    font-family: var(--serif);
    font-size: .67rem;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 800px) {
    .site-nav {
        color: #fff;
    }

    .hero-secondary {
        top: 40px;
        left: -4px;
        width: 115px;
    }

    .hero-secondary span { display: none; }
}

.member-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 8px;
    color: var(--muted);
    font-size: .68rem;
}

.member-card-meta span + span::before {
    content: "·";
    margin-right: 12px;
    color: var(--rose);
}

.profile-body-spec {
    margin: 5px 0 3px;
    color: var(--wine);
    font-family: var(--serif);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .025em;
}

.member-fee-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffaf8;
}

.member-fee-row span {
    color: var(--muted);
    font-size: .66rem;
}

.member-fee-row strong {
    color: var(--wine);
    font-family: var(--serif);
    font-size: .82rem;
}

.transport-fee-box {
    margin: 18px 0;
    padding: 17px 18px;
    border: 1px solid #e7ccd4;
    border-radius: 15px;
    background: linear-gradient(135deg, #fff9f7, #f9edf1);
}

.transport-fee-box > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.transport-fee-box small,
.transport-fee-box strong { display: block; }
.transport-fee-box small { color: var(--muted); font-size: .68rem; }
.transport-fee-box strong { color: var(--wine); font-family: var(--serif); font-size: 1.05rem; }
.transport-fee-box p { margin: 8px 0 0; color: var(--plum); font-size: .76rem; }
.transport-fee-box em { display: block; margin-top: 8px; color: #967d85; font-size: .62rem; font-style: normal; line-height: 1.55; }

@media (max-width: 520px) {
    .member-fee-row,
    .transport-fee-box > div { align-items: flex-start; flex-direction: column; }
}

/* Optional member story block: rendered only when an editor has entered content. */
.profile-extension {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: clamp(45px, 7vw, 100px);
    align-items: start;
}
.profile-extension .section-heading { margin: 0; }
.profile-extension-body {
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid rgba(201, 79, 114, .18);
    border-radius: 24px;
    background: linear-gradient(145deg, #fff 0%, #fff8f7 100%);
    box-shadow: 0 24px 70px rgba(65, 25, 39, .07);
}
.profile-extension-body p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 2;
}
.profile-extension-body p + p { margin-top: 1.35em; }
.profile-facts .facts-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

@media (max-width: 800px) {
    .profile-extension { grid-template-columns: 1fr; gap: 28px; }
}

/* Dynamic, fully expanded member filters */
.directory-layout { grid-template-columns: 320px minmax(0, 1fr); }
.expanded-filters { padding: 22px; }
.expanded-filters .filter-heading { align-items: flex-start; }
.expanded-filters .filter-heading small { display: block; margin-top: 4px; color: var(--muted); font-size: .68rem; }
.filter-option-section { padding: 0 0 17px !important; border-bottom: 1px solid var(--line) !important; }
.filter-option-section legend { margin-bottom: 10px; }
.filter-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.filter-choice-grid.compact-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.filter-choice { position: relative; display: block !important; cursor: pointer; }
.filter-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.filter-choice span {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #725b64;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.25;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.filter-choice span small { color: #a48f97; font-size: .62rem; }
.filter-choice input:checked + span { border-color: var(--raspberry); background: #faedf1; color: var(--wine); box-shadow: inset 0 0 0 1px var(--raspberry); }
.filter-choice input:checked + span::before { content: "✓"; color: var(--raspberry); font-weight: 900; }
.filter-choice input:focus-visible + span { outline: 3px solid rgba(201, 79, 114, .2); outline-offset: 2px; }

@media (max-width: 1050px) and (min-width: 801px) {
    .directory-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 24px; }
    .filter-choice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
    .directory-layout { display: block; }
    .filter-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Reference-style filter rail: simple vertical checkboxes, red labels and counts. */
.directory-layout { grid-template-columns: 312px minmax(0, 1fr); }
.expanded-filters {
    padding: 52px 58px;
    border: 0;
    border-radius: 0;
    background: #f5f5f3;
    box-shadow: none;
}
.expanded-filters .filter-heading { margin-bottom: 38px; }
.expanded-filters .filter-heading h2 { color: #31272a; font-family: inherit; font-size: .92rem; font-weight: 700; }
.expanded-filters .filter-heading a { color: #999; font-size: .68rem; }
.expanded-filters form { gap: 0; }
.expanded-filters form > label { margin-bottom: 34px; }
.filter-option-section {
    margin: 0 0 34px !important;
    padding: 0 !important;
    border: 0 !important;
}
.filter-option-section legend {
    margin-bottom: 20px;
    color: #30272a;
    font-size: .88rem;
    font-weight: 700;
}
.filter-choice-grid,
.filter-choice-grid.compact-choices { grid-template-columns: 1fr; gap: 9px; }
.filter-choice {
    display: flex !important;
    align-items: center;
    gap: 9px;
    min-height: 21px;
}
.filter-choice input {
    position: static;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0;
    opacity: 1;
    appearance: none;
    border: 2px solid #cbd0dc;
    border-radius: 5px !important;
    background: #fff;
    pointer-events: auto;
    cursor: pointer;
}
.filter-choice input:checked {
    border-color: #ff3f49;
    background: #ff3f49;
    box-shadow: inset 0 0 0 4px #fff;
}
.filter-choice span,
.filter-choice input:checked + span {
    display: inline;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #ff3540;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.35;
}
.filter-choice span small {
    display: inline;
    margin-left: 3px;
    color: #8b8b8b;
    font-size: .8rem;
    font-weight: 400;
}
.filter-choice input:checked + span::before { content: none; }
.filter-choice input:focus-visible { outline: 3px solid rgba(255, 63, 73, .2); outline-offset: 2px; }
.filter-choice input:focus-visible + span { outline: 0; }
.region-choice-child { padding-left: 20px; }
.region-choice-child span b {
    display: inline-block;
    margin-right: 7px;
    color: #999;
    font-weight: 500;
}
.region-choice-parent span { font-weight: 700; }
.expanded-filters .check-row { color: #ff3540; font-size: .82rem; font-weight: 500; }
.expanded-filters .check-row input { width: 19px; height: 19px; accent-color: #ff3f49; }
.expanded-filters .filter-note { display: none; }
.directory-content { transition: opacity .18s ease; }
.directory-layout.is-ajax-loading .directory-content {
    opacity: .48;
    pointer-events: none;
    cursor: progress;
}

@media (max-width: 1050px) and (min-width: 801px) {
    .directory-layout { grid-template-columns: 280px minmax(0, 1fr); }
    .expanded-filters { padding: 38px 42px; }
}

@media (max-width: 800px) {
    .expanded-filters { padding: 34px 36px; }
    .filter-choice-grid,
    .filter-choice-grid.compact-choices { grid-template-columns: 1fr; }
}

/* Keep member photos complete inside the established portrait layout. */
.member-photo,
.profile-thumbs button,
.profile-main-image,
.about-photo {
    background: linear-gradient(145deg, #f5e6e9, #fff8f5);
}

.member-photo img,
.profile-thumbs img,
.profile-main-image img,
.about-photo img {
    object-fit: contain;
    object-position: center;
}

.member-card:hover .member-photo img { transform: none; }

.member-interest-tags {
    align-content: flex-start;
}
