@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
    --s3-blue: #075ff0;
    --s3-text: #10182f;
    --s3-muted: #65708a;
    --s3-line: #e2e7ef;
    --s3-soft: #f6f8fc
}
 
* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, Arial, sans-serif;
    color: var(--s3-text);
    background: #fff;
    font-size: 13px
}

button,
input,
select {
    font: inherit
}

button,
a {
    cursor: pointer
}

.s3-icon {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.s3-app {
    min-width: 1220px
}

.s3-header {
    height: 74px;
    padding: 0 21px;
    display: grid;
    grid-template-columns: 175px 440px 1fr auto;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--s3-line);
    background: #fff
}

.s3-brand {
    text-decoration: none;
    color: var(--s3-text);
    line-height: 1
}

.s3-brand strong {
    display: block;
    font-size: 30px;
    letter-spacing: -1.5px
}

.s3-brand strong span {
    color: var(--s3-blue)
}

.s3-insights-brand strong {
    font-size: 22px;
    letter-spacing: -.8px
}

.s3-insights-brand small {
    margin-left: 38px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .15px
}

.s3-brand small {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    color: #34415d
}

.s3-search {
    height: 40px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d9e0eb;
    border-radius: 6px
}

.s3-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--s3-text)
}

.s3-search input::placeholder {
    color: #8590a6
}

.s3-nav {
    height: 74px;
    display: flex;
    align-items: stretch;
    justify-content: flex-end
}

.s3-nav a {
    min-width: 82px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    color: #111a31;
    font-size: 11px;
    white-space: nowrap
}

.s3-nav a.active {
    color: var(--s3-blue);
    border-color: var(--s3-blue);
    font-weight: 700
}

.s3-header-tools {
    position: relative;
    height: 38px;
    padding-left: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-left: 1px solid var(--s3-line)
}

.s3-profile-menu {
    min-width: 172px
}

.s3-profile-menu>summary {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    cursor: pointer
}

.s3-profile-menu>summary::-webkit-details-marker {
    display: none
}

.s3-profile-caret {
    margin-left: auto;
    color: #60708c;
    transition: transform .18s ease
}

.s3-profile-menu[open] .s3-profile-caret {
    transform: rotate(180deg)
}

.s3-profile-dropdown {
    position: absolute;
    z-index: 20;
    top: 46px;
    right: 0;
    width: 170px;
    padding: 6px;
    border: 1px solid var(--s3-line);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 37, 68, .16)
}

.s3-profile-dropdown a {
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    color: #31405c;
    font-size: 10px;
    text-decoration: none
}

.s3-profile-dropdown a:hover {
    background: #eef5ff;
    color: var(--s3-blue)
}

.s3-bell {
    position: relative
}

.s3-bell b {
    position: absolute;
    top: -11px;
    right: -9px;
    min-width: 19px;
    height: 16px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #e42a18;
    color: #fff;
    font-size: 9px
}

.s3-avatar {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #9db3d2, #112846);
    color: #fff;
    font-weight: 800
}

.s3-avatar > img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover
}

.s3-avatar.small {
    width: 36px;
    height: 36px;
    font-size: 11px
}

.s3-user {
    line-height: 1.3;
    white-space: nowrap
}

.s3-user strong {
    display: block;
    font-size: 11px
}

.s3-user small {
    font-size: 9px;
    color: #60708c
}

.s3-page {
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 202px minmax(720px, 1fr) 274px;
    gap: 24px;
    background: #fff
}

.s3-panel {
    border: 1px solid var(--s3-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(35, 52, 82, .06)
}

.s3-filters {
    padding: 13px 14px
}

.s3-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.s3-filter-head h2 {
    margin: 0;
    font-size: 13px
}

.s3-filter-head button,
.s3-filter-head a,
.s3-more {
    border: 0;
    background: none;
    color: var(--s3-blue);
    font-size: 9px;
    text-decoration: none
}

.s3-filter-section {
    display: block;
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--s3-line)
}

.s3-filter-section:last-child {
    border: 0
}

.s3-filter-section h3 {
    display: flex;
    justify-content: space-between;
    margin: 0 0 13px;
    font-size: 10px
}

.s3-filter-section>label:not(.s3-check),
.s3-filter-section form>label {
    display: block;
    margin-bottom: 10px;
    color: #586781;
    font-size: 9px
}

.s3-filter-section select {
    width: 100%;
    height: 31px;
    margin-top: 4px;
    padding: 0 9px;
    border: 1px solid #ccd6e5;
    border-radius: 4px;
    background: #fff;
    color: #273650;
    font-size: 10px
}

.s3-check {
    min-height: 23px;
    display: grid;
    grid-template-columns: 13px 1fr auto;
    align-items: center;
    gap: 6px;
    font-size: 9px
}

.s3-check input {
    appearance: none;
    width: 11px;
    height: 11px;
    margin: 0;
    border: 1px solid #aebbd0;
    border-radius: 2px
}

.s3-check input:checked {
    background: var(--s3-blue);
    box-shadow: inset 0 0 0 2px #fff
}

.s3-check em {
    font-style: normal
}

.s3-more {
    padding: 7px 0 0
}

.s3-main {
    min-width: 0
}

.s3-titlebar {
    height: 54px;
    display: flex;
    align-items: center
}

.s3-title-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #dce9ff;
    color: var(--s3-blue)
}

.s3-title-icon .s3-icon {
    width: 25px;
    height: 25px
}

.s3-title-copy {
    margin-left: 13px
}

.s3-title-copy h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1
}

.s3-title-copy span {
    font-size: 11px
}

.s3-title-actions {
    margin-left: auto;
    display: flex;
    gap: 9px
}

.s3-action {
    height: 34px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--s3-blue);
    border-radius: 5px;
    background: #fff;
    color: var(--s3-blue);
    font-size: 10px
}

.s3-action.primary {
    background: var(--s3-blue);
    color: #fff
}

.s3-search-filters {
    height: 51px;
    margin: 10px 0 19px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 12px
}

.s3-select-btn {
    height: 31px;
    min-width: 106px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--s3-line);
    border-radius: 5px;
    background: #fff;
    font-size: 10px
}

.s3-reset {
    margin-left: auto;
    border: 0;
    background: #fff;
    color: var(--s3-blue);
    font-size: 10px
}

.s3-search-btn {
    height: 31px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 0;
    border-radius: 5px;
    background: var(--s3-blue);
    color: #fff;
    font-size: 10px
}

.s3-resultbar {
    height: 37px;
    display: flex;
    align-items: center;
    font-size: 10px;
    margin: 10px 0px;
}

.s3-sort {
    height: 30px;
    margin-left: 12px;
    padding: 0 12px;
    border: 1px solid var(--s3-line);
    border-radius: 5px;
    background: #fff
}

.s3-result-spacer {
    flex: 1
}

.s3-view{
    margin-right: 12px;
}

.s3-view-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--s3-line);
    background: #fff;
    color: #17203a;
    border-radius: 3px;
    margin: 0px 0px 0px 6px;
}

.s3-view-btn.active {
    border-color: var(--s3-blue);
    color: var(--s3-blue);
    background: #edf4ff;
    
}

.s3-showing {
    margin: 0 18px 0 29px
}

.s3-next {
    width: 32px;
    height: 32px;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--s3-line);
    border-radius: 4px;
    background: #fff;
    color: #17203a;
    text-decoration: none
}

.s3-member-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 9px
}

.s3-member-card {
    min-height: 224px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--s3-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(36, 53, 82, .06)
}

.s3-member-card:hover,
.s3-member-card:focus-within {
    position: relative;
    z-index: 2
}

.s3-member-top {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px
}

.s3-member-top > .s3-avatar {
    width: 68px;
    height: 68px
}

.s3-member-profile-hit{color:inherit;text-decoration:none;cursor:pointer}
.s3-member-profile-hit:hover,.s3-member-profile-hit:focus-visible{color:inherit;text-decoration:none;outline:0}
.s3-member-profile-hit:focus-visible{border-radius:7px;box-shadow:0 0 0 3px rgba(7,95,240,.14)}
.s3-person-profile-link{color:inherit;text-decoration:none;cursor:pointer}
.s3-person-profile-link:hover,.s3-person-profile-link:focus-visible{color:inherit;text-decoration:none;background:#f6f9ff;outline:0}

.s3-member-name {
    min-width: 0
}

.s3-member-name h3 {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 2px 0 7px;
    color: var(--s3-text) !important;
    font-size: 12px;
    font-weight: 700 !important;
    line-height: 1.3;
    opacity: 1;
    visibility: visible
}

.s3-member-display-name {
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.s3-name-tooltip,
.s3-verified::after {
    position: absolute;
    z-index: 10;
    width: max-content;
    max-width: 240px;
    padding: 7px 10px;
    border: 1px solid #334b70;
    border-radius: 8px;
    background: #1e304d;
    box-shadow: 0 8px 20px rgba(16, 31, 56, .2);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease
}

.s3-name-tooltip {
    top: calc(100% + 8px);
    left: 0;
    transform: translateY(-4px)
}

.s3-member-display-name:hover + .s3-name-tooltip,
.s3-member-profile-hit:focus-visible .s3-name-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.s3-verified {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.s3-verified::after {
    content: attr(data-tooltip);
    top: calc(100% + 8px);
    left: 50%;
    transform: translate(-50%, -4px)
}

.s3-verified:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0)
}

.s3-verified svg {
    display: block;
    width: 18px;
    height: 18px
}

.s3-verified-seal {
    fill: #18a667
}

.s3-verified-check {
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round
}

.s3-member-name p {
    margin: 0 0 6px;
    font-size: 10px
}

.s3-member-name small {
    display: block;
    margin-top: 4px;
    color: #34415a;
    font-size: 9px
}

.s3-save {
    border: 0;
    background: none;
    color: #43516d
}

.s3-tags {
    min-height: 0;
    margin: 6px 0 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px
}

.s3-tag {
    padding: 2px 5px;
    border-radius: 3px;
    background: #e2edff;
    color: #0755c9;
    font-size: 7px;
    line-height: 1.2
}

.s3-tag:nth-child(2) {
    background: #eee5ff;
    color: #6132ae
}

.s3-tag:nth-child(3) {
    background: #dcf2e5;
    color: #166f49
}

.s3-rating {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 9px;
    color: #384865
}

.s3-stars {
    color: #ffac00;
    font-size: 15px;
    letter-spacing: 1px
}

.s3-looking {
    margin: 10px 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 7px;
    color: #3a4966;
    font-size: 9px
}

.s3-looking-label {
    white-space: nowrap
}

.s3-looking-values {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #0059e8
}

.s3-member-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px
}

.s3-connect,
.s3-message-btn {
    height: 29px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 4px;
    font-size: 9px
}

.s3-button-icon {
    width: 12px;
    height: 12px;
    stroke-width: 2
}

.s3-connect {
    border: 0;
    background: var(--s3-blue);
    color: #fff
}

.s3-message-btn {
    border: 1px solid #bfcce0;
    background: #fff;
    color: #0755d8
}

.s3-profile-link {
    margin-left: auto;
    border: 0;
    background: none;
    color: #0755d8;
    font-size: 9px
}

.s3-pagination {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px
}

.s3-page-btn {
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: #f6f7fa;
    color: #17203a;
    text-decoration: none
}

.s3-page-btn.active {
    background: var(--s3-blue);
    color: #fff
}

.s3-page-btn.disabled,
.s3-next.disabled {
    opacity: .45;
    cursor: default
}

.s3-page-dots {
    color: #65708a
}

.s3-right {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.s3-widget {
    padding: 15px
}

.s3-widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px
}

.s3-widget-head h2 {
    margin: 0;
    font-size: 12px
}

.s3-widget-head a {
    color: var(--s3-blue);
    font-size: 9px
}

.s3-person {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 9px;
    margin-bottom: 11px
}

.s3-person .s3-avatar {
    width: 32px;
    height: 32px;
    font-size: 9px
}

.s3-person strong {
    display: block;
    font-size: 9px
}

.s3-person small {
    display: block;
    margin-top: 3px;
    color: #66728a;
    font-size: 8px
}

.s3-person>span:last-child {
    font-size: 9px;
    color: #233352
}

.s3-rank {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e4eeff;
    color: var(--s3-blue);
    font-size: 8px
}

.s3-mini-btn {
    height: 22px;
    padding: 0 8px;
    border: 1px solid #79aaff;
    border-radius: 4px;
    background: #fff;
    color: var(--s3-blue);
    font-size: 8px
}

.s3-event {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--s3-line)
}

.s3-date {
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    background: #f0f4fb;
    color: var(--s3-blue);
    font-size: 9px;
    font-weight: 700
}

.s3-date strong {
    display: block;
    color: #0b1020;
    font-size: 18px;
    line-height: 1
}

.s3-event-copy strong {
    display: block;
    font-size: 9px
}

.s3-event-copy span {
    display: block;
    margin-top: 4px;
    color: #0757d3;
    font-size: 8px
}

.s3-event-copy small {
    display: block;
    margin-top: 6px;
    font-size: 8px
}

/* Compact typography and reference accent colors. */
.s3-app {
    font-size: 13px;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility
}

.s3-brand strong {
    font-size: 28px
}

.s3-brand small {
    font-size: 10px
}

.s3-search input {
    font-size: 12px
}

.s3-nav a {
    font-size: 10px
}

.s3-user strong {
    font-size: 10px
}

.s3-user small {
    font-size: 9px
}

.s3-title-copy h1 {
    font-size: 23px
}

.s3-title-copy span {
    font-size: 12px
}

.s3-action {
    font-size: 10px
}

.s3-crown {
    color: #ffd21a;
    font-size: 13px;
    line-height: 1
}

.s3-filter-head h2 {
    font-size: 13px
}

.s3-filter-section h3 {
    font-size: 10px
}

.s3-member-card {
    font-size: 12px
}

.s3-member-name h3 {
    font-size: 12px
}

.s3-member-name p {
    font-size: 10px
}

.s3-member-name small {
    font-size: 9px
}

.s3-widget-head h2 {
    font-size: 13px
}

/* Desktop readability pass. */
.s3-app {
    font-size: 14px
}

.s3-brand strong {
    font-size: 29px
}

.s3-brand small {
    font-size: 11px
}

.s3-search input {
    font-size: 13px
}

.s3-nav a {
    font-size: 12px
}

.s3-user strong {
    font-size: 11px
}

.s3-user small {
    font-size: 10px
}

.s3-title-copy h1 {
    font-size: 24px
}

.s3-title-copy span {
    font-size: 13px
}

.s3-action {
    font-size: 11px
}

.s3-crown {
    font-size: 14px
}

.s3-filter-head h2 {
    font-size: 14px
}

.s3-filter-section h3 {
    font-size: 11px
}

.s3-more,
.s3-check {
    font-size: 10px
}

.s3-select-btn,
.s3-reset,
.s3-search-btn,
.s3-resultbar {
    font-size: 11px
}

.s3-member-card {
    font-size: 13px
}

.s3-member-name h3 {
    font-size: 13px
}

.s3-member-name p {
    font-size: 11px
}

.s3-member-name small {
    font-size: 10px
}

.s3-verified {
    font-size: 9px
}

.s3-tag {
    font-size: 8px
}

.s3-rating,
.s3-looking,
.s3-connect,
.s3-message-btn,
.s3-profile-link {
    font-size: 10px
}

.s3-widget-head h2 {
    font-size: 14px
}

.s3-widget-head a {
    font-size: 10px
}

.s3-person strong,
.s3-event-copy strong {
    font-size: 11px
}

.s3-person small,
.s3-event-copy span,
.s3-event-copy small {
    font-size: 10px
}

.s3-rank,
.s3-mini-btn {
    font-size: 9px
}

/* CSS flags render consistently where Windows does not show flag emoji. */
.s3-country {
    display: flex !important;
    align-items: center;
    gap: 5px
}

.s3-flag {
    position: relative;
    flex: 0 0 auto;
    width: 14px;
    height: 9px;
    display: inline-block;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 1px
}

.s3-flag-us {
    background: repeating-linear-gradient(to bottom, #d9272e 0 1px, #fff 1px 2px)
}

.s3-flag-us:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 5px;
    background: #244a9b
}

.s3-flag-in {
    background: linear-gradient(to bottom, #f38b2b 0 33%, #fff 33% 66%, #138849 66%)
}

.s3-flag-in:before {
    content: "";
    position: absolute;
    top: 3px;
    left: 5px;
    width: 3px;
    height: 3px;
    border: 1px solid #244a9b;
    border-radius: 50%
}

.s3-flag-gb {
    background: #21468b
}

.s3-flag-gb:before {
    content: "";
    position: absolute;
    inset: 3px 0;
    background: #fff;
    box-shadow: 0 0 0 1px #cf142b
}

.s3-flag-gb:after {
    content: "";
    position: absolute;
    inset: 0 5px;
    background: #fff;
    box-shadow: 0 0 0 1px #cf142b
}

.s3-flag-es {
    background: linear-gradient(to bottom, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%)
}

.s3-flag-sg {
    background: linear-gradient(to bottom, #e31b23 0 50%, #fff 50%)
}

.s3-flag-fr {
    background: linear-gradient(to right, #0055a4 0 33%, #fff 33% 66%, #ef4135 66%)
}

.s3-flag-ae {
    background: linear-gradient(to bottom, #00732f 0 33%, #fff 33% 66%, #000 66%)
}

.s3-flag-ae:before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #e31b23
}

@media(max-width:1300px) {
    .s3-header {
        grid-template-columns: 175px 380px 1fr auto
    }

    .s3-nav a {
        min-width: 65px;
        padding: 0 7px
    }

    .s3-page {
        grid-template-columns: 190px minmax(680px, 1fr)
    }

    .s3-right {
        grid-column: 1/-1;
        display: grid;
        grid-template-columns: repeat(4, 1fr)
    }
}

@media(max-width:1000px) {
    .s3-app {
        min-width: 1000px
    }

    .s3-header {
        grid-template-columns: 175px 1fr auto
    }

    .s3-nav {
        display: none
    }

    .s3-page {
        grid-template-columns: 1fr
    }

    .s3-filters {
        display: none
    }
}

.s3-select-wrap span {
    display: none
}

.s3-search-filters {
    overflow: hidden
}

.s3-search-filters .s3-select-wrap {
    flex: 0 1 120px;
    min-width: 0
}

.s3-search-filters .s3-select-wrap:first-of-type {
    flex-basis: 150px
}

.s3-search-filters .s3-select-btn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-right: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #fff
}

.s3-search-filters .s3-reset {
    flex: 0 0 auto;
    margin-left: auto
}

.s3-search-filters .s3-search-btn {
    flex: 0 0 auto;
    margin-left: auto
}

.s3-reset {
    height: 31px;
    display: inline-flex;
    align-items: center;
    text-decoration: none
}

.s3-member-grid.is-list {
    grid-template-columns: 1fr
}

.s3-member-grid.is-list .s3-member-card {
    min-height: 132px;
    display: grid;
    grid-template-columns: minmax(225px, 1.15fr) minmax(175px, 1fr) auto;
    grid-template-areas:
        "identity tags actions"
        "identity looking actions";
    align-items: center;
    column-gap: 18px;
    row-gap: 10px
}

.s3-member-grid.is-list .s3-member-top {
    grid-area: identity;
    align-self: start
}

.s3-member-grid.is-list .s3-tags {
    grid-area: tags;
    align-self: end;
    min-height: 0;
    margin: 0
}

.s3-member-grid.is-list .s3-looking {
    grid-area: looking;
    align-self: start;
    margin: 0
}

.s3-member-grid.is-list .s3-member-actions {
    grid-area: actions;
    align-self: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    margin: 0
}

.s3-member-grid.is-list .s3-connect,
.s3-member-grid.is-list .s3-message-btn {
    white-space: nowrap
}

.s3-empty {
    grid-column: 1/-1;
    padding: 28px;
    border: 1px solid var(--s3-line);
    border-radius: 8px;
    background: #fff;
    color: #65708a;
    text-align: center
}

.s3-filter-apply,
.s3-filter-reset {
    width: 100%;
    height: 31px;
    margin-top: 12px;
    border: 0;
    border-radius: 5px;
    background: var(--s3-blue);
    color: #fff;
    font-size: 10px
}

.s3-filter-empty {
    display: block;
    color: #65708a;
    font-size: 10px
}

.s3-filter-extra {
    display: none
}

.s3-person-empty {
    padding: 8px 0;
    color: #65708a;
    font-size: 10px
}

.s3-filter-toggle {
    cursor: pointer
}

.s3-filter-toggle span {
    transition: transform .18s ease
}

.s3-filter-section.is-collapsed .s3-filter-toggle span {
    transform: rotate(180deg)
}

.s3-filter-section.is-collapsed>*:not(.s3-filter-toggle) {
    display: none !important
}

/* Keep the directory stable inside the shared member application shell. */
body.member-layout .s3-app .s3-filter-section,
body.member-layout .s3-app .s3-widget {
    display: block;
    gap: 0
}

body.member-layout .s3-app .s3-filter-head h2,
body.member-layout .s3-app .s3-widget-head h2 {
    color: var(--s3-text) !important;
    font-weight: 700 !important;
    line-height: 1.3
}

body.member-layout .s3-app .s3-search-filters {
    min-height: 51px;
    height: auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    gap: 12px;
    overflow: visible
}

body.member-layout .s3-app .s3-search-filters>input[type="hidden"] {
    display: none
}

body.member-layout .s3-app .s3-search-filters .s3-select-wrap {
    width: 100%;
    min-width: 0;
    margin: 0
}

body.member-layout .s3-app .s3-search-filters .s3-select-btn,
body.member-layout .s3-app .s3-filter-section select {
    width: 100% !important;
    min-width: 0 !important;
    height: 31px !important;
    margin: 0 !important;
    padding: 0 28px 0 10px !important;
    border: 1px solid #ccd6e5 !important;
    border-radius: 5px !important;
    background-color: #fff !important;
    color: #273650 !important;
    -webkit-text-fill-color: #273650 !important;
    font-size: 11px !important;
    line-height: normal !important;
    text-indent: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important
}

body.member-layout .s3-app select option {
    color: #273650;
    font-size: 11px
}

body.member-layout .s3-app .s3-filter-section form>label,
body.member-layout .s3-app .s3-filter-section>label:not(.s3-check) {
    margin: 0 0 10px !important;
    color: #586781 !important;
    line-height: 1.35
}

body.member-layout .s3-app .s3-search-filters .s3-search-btn {
    min-width: 92px;
    margin: 0
}

/* Defensive sizing while the shared Uniform plugin is being removed. */
body.member-layout .s3-app div.selector {
    width: 100% !important;
    min-width: 0 !important;
    height: 31px !important
}

body.member-layout .s3-app div.selector span {
    width: 100% !important;
    height: 31px !important;
    padding: 0 28px 0 10px !important;
    line-height: 31px !important
}

body.member-layout .s3-app div.selector select {
    width: 100% !important;
    min-width: 0 !important;
    height: 31px !important
}

body.member-layout .s3-app .s3-check {
    display: grid !important;
    grid-template-columns: 13px minmax(0, 1fr) auto;
    gap: 6px;
    margin: 0;
    color: var(--s3-text);
    line-height: 1.3
}

body.member-layout .s3-app .s3-member-card,
body.member-layout .s3-app .s3-member-name {
    color: var(--s3-text);
    text-align: left
}

body.member-layout .s3-app .s3-member-name h3 {
    color: var(--s3-text) !important;
    font-weight: 700 !important
}

body.member-layout .s3-app .s3-member-name p,
body.member-layout .s3-app .s3-member-name small {
    word-break: normal;
    overflow-wrap: anywhere
}

body.member-layout .s3-app .s3-flag {
    object-fit: cover;
    background: transparent
}

/* Match the member directory sidebars to the news page layout. */
body.member-layout .s3-app {
    min-width: 0;
    background: linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%)
}

body.member-layout .s3-page {
    grid-template-columns: 200px minmax(0, 1fr) 200px;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 18px 20px 28px;
    height: calc(100vh - 74px);
    overflow: hidden;
    background: transparent
}

body.member-layout .s3-member-hero {
    grid-column: 1/-1;
    min-height: 118px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px
}

body.member-layout .s3-member-hero .s3-titlebar {
    height: auto;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    width: 100%
}

body.member-layout .s3-member-hero .s3-title-icon {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    border-radius: 14px;
    background: linear-gradient(180deg, #e9f1ff 0%, #dbe7fd 100%);
    color: var(--s3-blue)
}

body.member-layout .s3-member-hero .s3-title-icon .s3-icon {
    width: 34px;
    height: 34px
}

body.member-layout .s3-member-hero .s3-title-copy {
    min-width: 0;
    margin-left: 0;
    margin-right: auto
}

body.member-layout .s3-member-hero .s3-title-copy h1 {
    margin: 0 0 6px;
    color: var(--s3-text) !important;
    font-size: 27px;
    font-weight: 800 !important;
    line-height: 1.1;
    letter-spacing: 0
}

body.member-layout .s3-member-hero .s3-title-copy span {
    color: #61708d;
    font-size: 14px
}

body.member-layout .s3-member-hero .s3-search-filters {
    min-height: 46px;
    height: auto;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    align-items: center;
    gap: 12px;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    border: 0
}

body.member-layout .s3-member-hero .s3-select-wrap {
    width: 100%;
    min-width: 0
}

body.member-layout .s3-member-hero .s3-select-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
    height: 46px !important;
    padding: 0 14px !important;
    border: 1px solid #d8e0eb !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--s3-text) !important;
    -webkit-text-fill-color: var(--s3-text) !important;
    font-size: 13px !important
}

body.member-layout .s3-member-hero .s3-search-btn {
    min-width: 104px;
    min-height: 46px;
    height: 46px;
    margin: 0;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(7, 95, 240, .16)
}

body.member-layout .s3-app .s3-panel {
    border: 1px solid rgba(15, 42, 84, .08);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(19, 33, 60, .06)
}

body.member-layout .s3-filters {
    position: sticky;
    top: 0;
    align-self: start;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 18px;
    color: var(--s3-text)
}

body.member-layout .s3-filters::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none
}

body.member-layout .s3-right {
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 16px
}

body.member-layout .s3-right::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none
}

body.member-layout .s3-main {
    position: relative;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none
}

body.member-layout .s3-main::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none
}

body.member-layout .s3-widget {
    padding: 18px
}

body.member-layout .s3-app .s3-filter-head {
    margin-bottom: 16px
}

body.member-layout .s3-app .s3-filter-head h2 {
    font-size: 20px;
    letter-spacing: 0
}

body.member-layout .s3-app .s3-filter-head a {
    font-size: 13px;
    font-weight: 600
}

body.member-layout .s3-app .s3-filter-section {
    padding: 16px 0
}

body.member-layout .s3-app .s3-filter-section h3 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    color: var(--s3-text);
    font-size: 15px;
    font-weight: 700;
    text-align: left
}

body.member-layout .s3-app .s3-filter-toggle span {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5b687f;
    font-size: 16px
}

body.member-layout .s3-app .s3-filter-section form,
body.member-layout .s3-app .s3-filter-section {
    min-width: 0
}

body.member-layout .s3-app .s3-filter-section form>label,
body.member-layout .s3-app .s3-filter-section>label:not(.s3-check) {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 12px !important;
    color: #61708d !important;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1.35
}

body.member-layout .s3-app .s3-filter-section select {
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid #d6deea !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--s3-text) !important;
    -webkit-text-fill-color: var(--s3-text) !important;
    font-size: 13px !important;
    outline: 0 !important
}

body.member-layout .s3-app .s3-filter-section select:focus {
    border-color: var(--s3-blue) !important;
    box-shadow: 0 0 0 4px rgba(7, 95, 240, .10) !important
}

body.member-layout .s3-filters div.selector {
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    border: 1px solid #d6deea !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important
}

body.member-layout .s3-filters div.selector span {
    width: 100% !important;
    height: 44px !important;
    padding: 0 34px 0 14px !important;
    color: var(--s3-text) !important;
    font-size: 13px !important;
    line-height: 44px !important;
    text-shadow: none !important
}

body.member-layout .s3-filters div.selector select {
    height: 44px !important
}

body.member-layout .s3-app .s3-check {
    grid-template-columns: 16px minmax(0, 1fr) auto;
    min-height: 30px;
    gap: 11px;
    font-size: 13px
}

body.member-layout .s3-app .s3-check input {
    width: 16px;
    height: 16px;
    border: 1.5px solid #b6c2d4;
    border-radius: 3px;
    background: #fff
}

body.member-layout .s3-app .s3-check input:checked {
    border-color: var(--s3-blue);
    background: var(--s3-blue);
    box-shadow: inset 0 0 0 2px #fff
}

body.member-layout .s3-app .s3-check em {
    min-width: 42px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2f7;
    color: #5b687f;
    font-size: 12px;
    text-align: center
}

body.member-layout .s3-app .s3-more {
    min-height: 32px;
    padding: 4px 0 0;
    color: var(--s3-blue);
    font-size: 13px;
    font-weight: 600
}

body.member-layout .s3-app .s3-filter-empty {
    display: block;
    color: #61708d;
    font-size: 13px;
    line-height: 1.5
}

body.member-layout .s3-app .s3-filter-apply,
body.member-layout .s3-app .s3-filter-reset {
    width: 100%;
    min-height: 44px;
    height: 44px;
    margin-top: 18px;
    border: 0;
    border-radius: 12px;
    background: var(--s3-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(7, 95, 240, .16)
}

body.member-layout .s3-app .s3-filter-reset {
    flex: 0 0 auto;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(7, 95, 240, .16)
}

body.member-layout .member-news-sidebar {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    padding: 18px !important;
    border: 1px solid rgba(15, 42, 84, .08) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 10px 28px rgba(19, 33, 60, .06) !important;
    overflow: hidden !important
}

body.member-layout .member-news-sidebar .s3-filter-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none
}

body.member-layout .member-news-sidebar .s3-filter-scroll::-webkit-scrollbar {
    width: 0;
    height: 0
}

body.member-layout .member-news-sidebar .s3-filter-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 16px !important
}

body.member-layout .member-news-sidebar .s3-filter-head h2 {
    margin: 0 !important;
    color: var(--s3-text) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important
}

body.member-layout .member-news-sidebar .s3-filter-head a {
    color: var(--s3-blue) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important
}

body.member-layout .member-news-sidebar .s3-filter-section {
    display: block !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid var(--s3-line) !important
}

body.member-layout .member-news-sidebar .s3-filter-section:last-of-type {
    border-bottom: 0 !important
}

body.member-layout .member-news-sidebar .s3-filter-toggle {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 0 14px !important;
    color: var(--s3-text) !important;
    font-size: 15px !important;
    font-weight: 700 !important
}

body.member-layout .member-news-sidebar .s3-location-section form {
    display: flex;
    flex-direction: column;
    gap: 10px
}

body.member-layout .member-news-sidebar .s3-location-select {
    position: relative;
    display: block;
    width: 100%;
    color: var(--s3-text)
}

body.member-layout .member-news-sidebar .s3-location-toggle {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #d6deea;
    border-radius: 12px;
    background: #fff;
    color: var(--s3-text);
    font-size: 13px;
    list-style: none;
    cursor: pointer
}

body.member-layout .member-news-sidebar .s3-location-toggle::-webkit-details-marker {
    display: none
}

body.member-layout .member-news-sidebar .s3-location-caret {
    color: #61708d;
    transition: transform .18s ease
}

body.member-layout .member-news-sidebar .s3-location-select[open] .s3-location-caret {
    transform: rotate(180deg)
}

body.member-layout .member-news-sidebar .s3-location-menu {
    position: absolute;
    z-index: 45;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 8px;
    border: 1px solid rgba(15, 42, 84, .08);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(19, 33, 60, .12)
}

body.member-layout .member-news-sidebar .s3-location-search {
    display: block;
    width: 100%;
    margin: 0 0 8px
}

body.member-layout .member-news-sidebar .s3-location-search input {
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid #d6deea;
    border-radius: 10px;
    background: #fff;
    color: var(--s3-text);
    font-size: 13px;
    outline: 0
}

body.member-layout .member-news-sidebar .s3-location-search input:focus {
    border-color: var(--s3-blue);
    box-shadow: 0 0 0 4px rgba(7, 95, 240, .10)
}

body.member-layout .member-news-sidebar .s3-location-options {
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none
}

body.member-layout .member-news-sidebar .s3-location-options::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none
}

body.member-layout .member-news-sidebar .s3-location-option {
    min-height: 34px;
    padding: 7px 8px;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-radius: 9px;
    color: var(--s3-text);
    font-size: 13px;
    line-height: 1.25;
    cursor: pointer
}

body.member-layout .member-news-sidebar .s3-location-option:hover {
    background: #eef4ff;
    color: var(--s3-blue)
}

body.member-layout .member-news-sidebar .s3-location-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    appearance: none;
    border: 1.5px solid #b6c2d4;
    border-radius: 3px;
    background: #fff
}

body.member-layout .member-news-sidebar .s3-location-option input:checked {
    border-color: var(--s3-blue);
    background: var(--s3-blue);
    box-shadow: inset 0 0 0 2px #fff
}

body.member-layout .member-news-sidebar .s3-location-option em {
    min-width: 36px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef2f7;
    color: #5b687f;
    font-size: 12px;
    font-style: normal;
    text-align: center
}

body.member-layout .member-news-sidebar .s3-location-option.is-search-hidden {
    display: none
}

body.member-layout .member-news-sidebar .s3-location-empty {
    display: block;
    padding: 8px;
    color: #61708d;
    font-size: 13px
}

body.member-layout .member-news-sidebar .s3-filter-search {
    display: block !important;
    width: 100%;
    margin: 0 0 12px !important
}

body.member-layout .member-news-sidebar .s3-filter-search input {
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid #d6deea;
    border-radius: 10px;
    background: #fff;
    color: var(--s3-text);
    font-size: 13px;
    outline: 0
}

body.member-layout .member-news-sidebar .s3-filter-search input:focus {
    border-color: var(--s3-blue);
    box-shadow: 0 0 0 4px rgba(7, 95, 240, .10)
}

body.member-layout .member-news-sidebar label.s3-check {
    min-height: 30px !important;
    display: grid !important;
    grid-template-columns: 16px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 11px !important;
    color: var(--s3-text) !important;
    font-size: 13px !important;
    line-height: 1.25 !important
}

body.member-layout .member-news-sidebar label.s3-check input {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    appearance: none !important;
    border: 1.5px solid #b6c2d4 !important;
    border-radius: 3px !important;
    background: #fff !important
}

body.member-layout .member-news-sidebar label.s3-check input:checked {
    border-color: var(--s3-blue) !important;
    background: var(--s3-blue) !important;
    box-shadow: inset 0 0 0 2px #fff !important
}

body.member-layout .member-news-sidebar label.s3-check em {
    min-width: 42px !important;
    padding: 6px 10px !important;
    border-radius: 999px !important;
    background: #eef2f7 !important;
    color: #5b687f !important;
    font-size: 12px !important;
    font-style: normal !important;
    text-align: center !important
}

body.member-layout .member-news-sidebar .s3-filter-section .s3-filter-extra {
    display: none !important
}

body.member-layout .member-news-sidebar .s3-filter-section .s3-check.is-search-hidden {
    display: none !important
}

body.member-layout .member-news-sidebar .s3-filter-section .s3-more {
    display: inline-flex !important
}

body.member-layout .member-news-sidebar .s3-filter-section.is-expanded .s3-filter-toggle span {
    transform: rotate(180deg)
}

body.member-layout .member-news-sidebar .s3-filter-section.is-expanded {
    max-height: 285px;
    overflow-y: auto;
    padding-right: 0 !important;
    scrollbar-width: none;
    -ms-overflow-style: none
}

body.member-layout .member-news-sidebar .s3-filter-section.is-expanded .s3-filter-extra {
    display: grid !important
}

body.member-layout .member-news-sidebar .s3-filter-section.is-expanded .s3-more {
    display: none !important
}

body.member-layout .member-news-sidebar .s3-filter-section.is-expanded::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none
}

body.member-layout .s3-app .s3-member-hero .s3-search-filters {
    min-height: 46px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important
}

body.member-layout .s3-app .s3-member-hero .s3-search-filters>input[type="hidden"] {
    display: none !important
}

body.member-layout .s3-app .s3-member-hero .s3-hero-controls {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap
}

body.member-layout .s3-app .s3-member-hero .s3-sort-label {
    color: var(--s3-text);
    font-size: 16px
}

body.member-layout .s3-app .s3-member-hero .s3-sort-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    min-width: 0
}

body.member-layout .s3-app .s3-member-hero .s3-sort {
    min-height: 46px;
    padding: 0 14px 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #d8e0eb;
    border-radius: 10px;
    background: #fff;
    color: var(--s3-text);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap
}

body.member-layout .s3-app .s3-member-hero .s3-sort-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    transition: transform .18s ease
}

body.member-layout .s3-app .s3-member-hero .s3-sort[aria-expanded="true"] .s3-sort-icon {
    transform: rotate(180deg)
}

body.member-layout .s3-app .s3-member-hero .s3-sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
    min-width: 100%;
    padding: 8px;
    display: none;
    border: 1px solid rgba(15, 42, 84, .08);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(19, 33, 60, .12)
}

body.member-layout .s3-app .s3-member-hero .s3-sort-menu.is-open {
    display: block
}

body.member-layout .s3-app .s3-member-hero .s3-sort-item {
    min-height: 38px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    border-radius: 9px;
    color: var(--s3-text);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap
}

body.member-layout .s3-app .s3-member-hero .s3-sort-item:hover,
body.member-layout .s3-app .s3-member-hero .s3-sort-item.active {
    background: #eef4ff;
    color: var(--s3-blue)
}

body.member-layout .s3-app .s3-member-hero .s3-search-filters .s3-multi-select {
    position: relative;
    width: 100% !important;
    min-width: 0 !important;
    color: var(--s3-text)
}

body.member-layout .s3-app .s3-member-hero .s3-search-filters .s3-multi-toggle {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #d8e0eb !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--s3-text) !important;
    font-size: 13px !important;
    list-style: none;
    cursor: pointer;
    box-shadow: none !important
}

body.member-layout .s3-app .s3-member-hero .s3-search-filters .s3-multi-toggle::-webkit-details-marker {
    display: none
}

body.member-layout .s3-app .s3-member-hero .s3-search-filters .s3-multi-caret {
    color: #61708d;
    font-size: 14px;
    transition: transform .18s ease
}

body.member-layout .s3-app .s3-member-hero .s3-search-filters .s3-multi-select[open] .s3-multi-caret {
    transform: rotate(180deg)
}

body.member-layout .s3-app .s3-member-hero .s3-search-filters .s3-multi-menu {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 260px;
    padding: 8px;
    overflow: auto;
    border: 1px solid rgba(15, 42, 84, .08);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(19, 33, 60, .12)
}

body.member-layout .s3-app .s3-member-hero .s3-search-filters .s3-multi-option {
    min-height: 34px;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 9px;
    color: var(--s3-text);
    font-size: 13px;
    line-height: 1.25;
    cursor: pointer
}

body.member-layout .s3-app .s3-member-hero .s3-search-filters .s3-multi-option:hover {
    background: #eef4ff;
    color: var(--s3-blue)
}

body.member-layout .s3-app .s3-member-hero .s3-search-filters .s3-multi-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    appearance: none;
    border: 1.5px solid #b6c2d4;
    border-radius: 3px;
    background: #fff
}

body.member-layout .s3-app .s3-member-hero .s3-search-filters .s3-multi-option input:checked {
    border-color: var(--s3-blue);
    background: var(--s3-blue);
    box-shadow: inset 0 0 0 2px #fff
}

body.member-layout .s3-app .s3-member-hero .s3-search-filters .s3-multi-empty {
    display: block;
    padding: 8px;
    color: #61708d;
    font-size: 13px
}

body.member-layout .s3-app .s3-member-hero .s3-search-filters .s3-search-btn {
    min-width: 104px !important;
    min-height: 46px !important;
    height: 46px !important;
    margin: 0 !important
}

body.member-layout .s3-main.is-loading {
    opacity: .58;
    pointer-events: none;
    transition: opacity .18s ease
}

body.member-layout .s3-lazy-status {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #61708d;
    font-size: 12px
}

body.member-layout .s3-app .s3-member-card {
    height: 238px;
    min-height: 238px;
    overflow: hidden
}

body.member-layout .s3-app .s3-member-card:hover,
body.member-layout .s3-app .s3-member-card:focus-within {
    overflow: visible
}

body.member-layout .s3-app .s3-member-top {
    align-items: start
}

body.member-layout .s3-app .s3-tags {
    margin: 6px 0 0
}

body.member-layout .s3-app .s3-looking {
    min-height: 42px;
    margin: 12px 0 0
}

body.member-layout .s3-app .s3-looking-values {
    min-width: 0;
    line-height: 1.45
}

body.member-layout .s3-app .s3-member-actions {
    margin-top: auto
}

body.member-layout .s3-app .s3-member-hero .s3-search-filters {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important
}

body.member-layout .s3-app .s3-search-filters {
    margin: 10px 0 16px
}

body.member-layout .s3-app .s3-widget-head {
    margin-bottom: 16px
}

body.member-layout .s3-app .s3-widget-head h2 {
    font-size: 16px
}

body.member-layout .s3-app .s3-widget-head a {
    font-size: 13px;
    line-height: 1;
    text-decoration: none
}

@media(max-width:1500px) {
    body.member-layout .s3-page {
        grid-template-columns: 200px minmax(0, 1fr) 200px
    }

    body.member-layout .s3-member-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:1200px) {
    body.member-layout .s3-page {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible
    }

    body.member-layout .s3-filters {
        position: static;
        display: block;
        max-height: none;
        overflow: visible
    }

    body.member-layout .s3-app .s3-search-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    body.member-layout .s3-right {
        grid-column: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: none;
        overflow: visible
    }

    body.member-layout .s3-main {
        height: auto;
        overflow: visible
    }
}

@media(max-width:900px) {
    body.member-layout .s3-page {
        padding: 14px;
        gap: 14px
    }

    body.member-layout .s3-filters {
        display: block
    }

    body.member-layout .s3-app .s3-search-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    body.member-layout .s3-app .s3-search-filters .s3-search-btn {
        min-width: 0;
        width: 100%
    }

    body.member-layout .s3-member-grid,
    body.member-layout .s3-right {
        grid-template-columns: 1fr
    }
}

@media(max-width:1200px) {
    body.member-layout .member-news-sidebar {
        overflow: visible !important
    }

    body.member-layout .member-news-sidebar .s3-filter-scroll {
        overflow: visible
    }
}

body.member-layout .member-news-sidebar .s3-filter-reset {
    width: 108px;
    min-height: 34px;
    height: 34px;
    margin: 14px auto 0;
    border-radius: 9px;
    font-size: 12px;
    box-shadow: 0 6px 14px rgba(7, 95, 240, .14)
}

body.member-layout .member-topbar .is2-global-search {
    min-width: 0;
    height: 44px;
    margin: 0 18px !important;
    padding: 0 14px !important;
    border: 1px solid #d8e0eb !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(19, 33, 60, .08) !important;
    box-sizing: border-box
}

body.member-layout .member-topbar .is2-global-search input {
    min-width: 0;
    height: 100%;
    margin: 0;
    background: transparent;
    color: var(--s3-text);
    font-size: 13px;
    box-shadow: none
}

body.member-layout .s3-scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 120;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--s3-blue);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    box-shadow: 0 10px 24px rgba(7, 95, 240, .22);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease
}

body.member-layout .s3-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

body.member-layout .s3-main .s3-main-scroll-top {
    position: sticky;
    left: calc(100% - 52px);
    right: auto;
    bottom: 14px;
    margin: -54px 14px 14px auto
}

body.member-layout .s3-main .s3-resultbar {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 0 10px;
    padding: 8px 0;
    min-height: 48px;
    height: auto;
    background: linear-gradient(180deg, #f8fbff 0%, rgba(248, 251, 255, .96) 100%);
    box-shadow: 0 10px 18px rgba(19, 33, 60, .06)
}

body.member-layout .s3-member-grid.is-list .s3-member-card {
    height: auto;
    min-height: 150px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "identity actions"
        "looking actions";
    align-items: start
}

body.member-layout .s3-member-grid.is-list .s3-member-top {
    align-self: start
}

body.member-layout .s3-member-grid.is-list .s3-tags {
    margin: 6px 0 0
}

body.member-layout .s3-member-grid.is-list .s3-looking {
    align-self: start;
    min-height: 0;
    margin: -2px 0 0 80px
}

body.member-layout .s3-app .s3-member-name h3 {
    min-width: 0
}

body.member-layout .s3-app .s3-member-display-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

body.member-layout .s3-app .s3-verified {
    white-space: nowrap
}

body.member-layout .s3-event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px
}

body.member-layout .s3-event-card {
    min-height: 318px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--s3-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(36, 53, 82, .06);
    cursor: default
}

body.member-layout .s3-event-card[data-event-url] {
    cursor: pointer
}

body.member-layout .s3-event-card[data-event-url]:focus-visible {
    outline: 3px solid rgba(8, 102, 238, .28);
    outline-offset: 2px
}

body.member-layout a.s3-event-side {
    color: inherit;
    text-decoration: none
}

body.member-layout .s3-event-detail-app {
    min-height: calc(100vh - 66px);
    padding: 22px
}

body.member-layout .s3-event-detail-page {
    width: min(980px, 100%);
    margin: 0 auto
}

body.member-layout .s3-event-back {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--s3-blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none
}

body.member-layout .s3-event-detail-panel {
    overflow: hidden;
    border: 1px solid var(--s3-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(36, 53, 82, .09)
}

body.member-layout .s3-event-detail-banner {
    height: min(360px, 38vw);
    min-height: 220px;
    background: linear-gradient(135deg, #0f2a54, #075ff0)
}

body.member-layout .s3-event-detail-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

body.member-layout .s3-event-detail-content {
    padding: 28px
}

body.member-layout .s3-event-detail-type {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eaf2ff;
    color: var(--s3-blue);
    font-size: 11px;
    font-weight: 800
}

body.member-layout .s3-event-detail-content h1 {
    margin: 12px 0 22px;
    color: var(--s3-text);
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.2
}

body.member-layout .s3-event-detail-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    border-radius: 9px;
    background: #f6f9fe
}

body.member-layout .s3-event-detail-facts div,
body.member-layout .s3-event-detail-facts span {
    display: block
}

body.member-layout .s3-event-detail-facts strong {
    display: block;
    margin-bottom: 4px;
    color: #59667d;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em
}

body.member-layout .s3-event-detail-facts span {
    color: var(--s3-text);
    font-size: 13px;
    font-weight: 650
}

body.member-layout .s3-event-detail-description {
    margin-top: 25px;
    color: #43516d;
    font-size: 14px;
    line-height: 1.7
}

body.member-layout .s3-event-detail-description h2 {
    margin: 0 0 10px;
    color: var(--s3-text);
    font-size: 18px
}

body.member-layout .s3-event-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px
}

body.member-layout .s3-event-primary-action,
body.member-layout .s3-event-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--s3-blue);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none
}

body.member-layout .s3-event-primary-action {
    background: var(--s3-blue);
    color: #fff
}

body.member-layout .s3-event-secondary-action {
    background: #fff;
    color: var(--s3-blue)
}

@media (max-width: 600px) {
    body.member-layout .s3-event-detail-app {
        padding: 14px
    }

    body.member-layout .s3-event-detail-content {
        padding: 20px
    }

    body.member-layout .s3-event-detail-facts {
        grid-template-columns: 1fr
    }
}

body.member-layout .s3-event-media {
    position: relative;
    height: 132px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f2a54, #075ff0)
}

body.member-layout .s3-event-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

body.member-layout .s3-event-type {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 5px 8px;
    border-radius: 6px;
    background: var(--s3-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 700
}

body.member-layout .s3-event-date {
    position: absolute;
    z-index: 2;
    left: 12px;
    bottom: 12px;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #fff;
    color: var(--s3-blue);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase
}

body.member-layout .s3-event-date strong {
    display: block;
    color: var(--s3-text);
    font-size: 18px;
    line-height: 1
}

body.member-layout .s3-event-body {
    min-width: 0;
    padding: 14px 14px 0;
    display: flex;
    flex-direction: column;
    gap: 7px
}

body.member-layout .s3-event-body h3 {
    min-height: 40px;
    margin: 0;
    color: var(--s3-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

body.member-layout .s3-event-detail {
    color: #43516d;
    font-size: 12px;
    line-height: 1.35
}

body.member-layout .s3-event-body p {
    min-height: 48px;
    margin: 2px 0 0;
    color: #526079;
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

body.member-layout .s3-event-actions {
    margin-top: auto;
    padding: 12px 14px 14px;
    display: flex;
    align-items: center;
    gap: 10px
}

body.member-layout .s3-event-actions span {
    color: #61708d;
    font-size: 12px
}

body.member-layout .s3-event-register {
    min-height: 32px;
    margin-left: auto;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--s3-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none
}

body.member-layout .s3-event-grid.is-list {
    grid-template-columns: 1fr
}

body.member-layout .s3-event-grid.is-list .s3-event-card {
    min-height: 160px;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 150px
}

body.member-layout .s3-event-grid.is-list .s3-event-media {
    height: 100%
}

body.member-layout .s3-event-grid.is-list .s3-event-body {
    padding: 16px
}

body.member-layout .s3-event-grid.is-list .s3-event-body h3 {
    min-height: 0;
    -webkit-line-clamp: 1
}

body.member-layout .s3-event-grid.is-list .s3-event-actions {
    padding: 16px;
    flex-direction: column;
    align-items: flex-end
}

body.member-layout .s3-tab {
    min-height: 32px;
    padding: 0 14px;
    border: 1px solid var(--s3-blue);
    border-radius: 8px;
    background: var(--s3-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700
}

body.member-layout .s3-event-side {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 16px
}

body.member-layout .s3-event-side-date {
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--s3-blue);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase
}

body.member-layout .s3-event-side-date strong {
    display: block;
    color: var(--s3-text);
    font-size: 17px;
    line-height: 1
}

body.member-layout .s3-event-side-copy {
    min-width: 0
}

body.member-layout .s3-event-side-copy strong,
body.member-layout .s3-event-side-copy span,
body.member-layout .s3-event-side-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis
}

body.member-layout .s3-event-side-copy strong {
    color: var(--s3-text);
    font-size: 12px;
    line-height: 1.35
}

body.member-layout .s3-event-side-copy span,
body.member-layout .s3-event-side-copy small {
    margin-top: 4px;
    color: #61708d;
    font-size: 11px
}

body.member-layout .s3-event-tip strong,
body.member-layout .s3-event-tip span {
    display: block
}

body.member-layout .s3-event-tip strong {
    font-size: 13px
}

body.member-layout .s3-event-tip span {
    margin-top: 8px;
    color: #61708d;
    font-size: 12px;
    line-height: 1.5
}

body.member-layout .s3-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
}

body.member-layout .s3-news-card {
    min-height: 238px;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid var(--s3-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(36, 53, 82, .06)
}

body.member-layout .s3-news-visual {
    position: relative;
    grid-row: 1 / 3;
    min-height: 100%;
    background: linear-gradient(135deg, #0f2a54, #075ff0);
    background-size: cover;
    background-position: center
}

body.member-layout .s3-news-visual.ai {
    background: linear-gradient(135deg, #16315d, #075ff0)
}

body.member-layout .s3-news-visual.data {
    background: linear-gradient(135deg, #123b34, #12a16a)
}

body.member-layout .s3-news-visual.panel {
    background: linear-gradient(135deg, #4d2c14, #e4791f)
}

body.member-layout .s3-news-visual.qual,
body.member-layout .s3-news-visual.event {
    background: linear-gradient(135deg, #38205f, #7d50d6)
}

body.member-layout .s3-news-flag {
    position: absolute;
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 5px 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--s3-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap
}

body.member-layout .s3-news-flag.green {
    background: #168553
}

body.member-layout .s3-news-flag.orange {
    background: #db6d1d
}

body.member-layout .s3-news-flag.purple {
    background: #6f43c3
}

body.member-layout .s3-news-copy {
    min-width: 0;
    padding: 14px 14px 6px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

body.member-layout .s3-news-copy h3 {
    margin: 0;
    color: var(--s3-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

body.member-layout .s3-news-copy p {
    margin: 0;
    color: #526079;
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

body.member-layout .s3-news-meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #61708d;
    font-size: 11px
}

body.member-layout .s3-news-actions {
    padding: 8px 14px 14px;
    display: flex;
    align-items: center;
    gap: 8px
}

body.member-layout .s3-news-icon-btn {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--s3-line);
    border-radius: 8px;
    background: #fff;
    color: #43516d
}

body.member-layout .s3-news-icon-btn.is-saved {
    color: var(--s3-blue);
    background: #eef4ff
}

body.member-layout .s3-news-read {
    min-height: 32px;
    margin-left: auto;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--s3-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap
}

body.member-layout .s3-news-grid.is-list {
    grid-template-columns: 1fr
}

body.member-layout .s3-news-grid.is-list .s3-news-card {
    min-height: 150px;
    grid-template-columns: 190px minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: stretch
}

body.member-layout .s3-news-grid.is-list .s3-news-visual {
    grid-row: auto
}

body.member-layout .s3-news-grid.is-list .s3-news-actions {
    padding: 14px;
    flex-direction: column;
    align-items: flex-end
}

body.member-layout .s3-news-grid.is-list .s3-news-read {
    margin-left: 0
}

body.member-layout .s3-news-trending {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 14px
}

body.member-layout .s3-news-rank {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef4ff;
    color: var(--s3-blue);
    font-weight: 800
}

body.member-layout .s3-news-trending strong,
body.member-layout .s3-news-trending small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis
}

body.member-layout .s3-news-trending strong {
    color: var(--s3-text);
    font-size: 12px;
    line-height: 1.35
}

body.member-layout .s3-news-trending small {
    margin-top: 4px;
    color: #61708d;
    font-size: 11px
}

body.member-layout .s3-newsletter-form {
    display: grid;
    gap: 10px
}

body.member-layout .s3-news-email {
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #d6deea;
    border-radius: 10px;
    box-shadow: none
}

body.member-layout .s3-news-subscribe {
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: var(--s3-blue);
    color: #fff;
    font-weight: 700
}

@media(max-width:1200px) {
    body.member-layout {
        min-width: 0 !important;
        overflow-x: hidden
    }

    body.member-layout .member-topbar {
        height: auto !important;
        min-height: 78px;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px;
        padding: 10px 12px !important;
        box-sizing: border-box
    }

    body.member-layout .member-topbar .is2-brand,
    body.member-layout .member-topbar .is2-global-search,
    body.member-layout .member-topbar .is2-top-actions {
        width: 100%;
        min-width: 0;
        box-sizing: border-box
    }

    body.member-layout .member-topbar .is2-global-search {
        margin: 0 !important
    }

    body.member-layout .member-topbar .is2-top-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start
    }

    body.member-layout .s3-page {
        width: 100%;
        min-height: 100vh;
        height: auto !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto;
        gap: 16px;
        overflow: visible !important;
        padding: 16px;
        box-sizing: border-box
    }

    body.member-layout .s3-member-hero,
    body.member-layout .s3-filters,
    body.member-layout .s3-main,
    body.member-layout .s3-right {
        grid-column: 1/-1;
        width: 100%;
        min-width: 0;
        box-sizing: border-box
    }

    body.member-layout .s3-member-hero {
        min-height: 0;
        padding: 18px !important
    }

    body.member-layout .s3-member-hero .s3-titlebar {
        align-items: center;
        flex-wrap: wrap
    }

    body.member-layout .s3-member-hero .s3-title-icon {
        width: 60px;
        height: 60px;
        flex-basis: 60px
    }

    body.member-layout .s3-member-hero .s3-title-icon .s3-icon {
        width: 28px;
        height: 28px
    }

    body.member-layout .s3-member-hero .s3-title-copy h1 {
        font-size: 24px
    }

    body.member-layout .s3-app .s3-member-hero .s3-hero-controls {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start
    }

    body.member-layout .s3-filters,
    body.member-layout .s3-right,
    body.member-layout .s3-main {
        position: static !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important
    }

    body.member-layout .member-news-sidebar {
        display: block !important;
        padding: 16px !important;
        overflow: visible !important
    }

    body.member-layout .member-news-sidebar .s3-filter-scroll {
        overflow: visible !important
    }

    body.member-layout .s3-right {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px
    }

    body.member-layout .s3-member-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    body.member-layout .s3-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    body.member-layout .s3-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    body.member-layout .s3-app .s3-member-card {
        height: auto;
        min-height: 238px
    }
}

@media(max-width:768px) {
    body.member-layout .member-topbar {
        min-height: 0
    }

    body.member-layout .member-topbar .is2-brand {
        justify-content: flex-start
    }

    body.member-layout .member-topbar .is2-global-search {
        height: 40px;
        box-shadow: 0 6px 16px rgba(19, 33, 60, .07) !important
    }

    body.member-layout .s3-scroll-top {
        right: 16px;
        bottom: 16px;
        width: 38px;
        height: 38px
    }

    body.member-layout .s3-page {
        padding: 12px;
        gap: 12px
    }

    body.member-layout .s3-member-hero {
        padding: 14px !important;
        border-radius: 12px !important
    }

    body.member-layout .s3-member-hero .s3-titlebar {
        gap: 12px
    }

    body.member-layout .s3-member-hero .s3-title-icon {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        border-radius: 12px
    }

    body.member-layout .s3-member-hero .s3-title-copy {
        flex: 1 1 calc(100% - 70px)
    }

    body.member-layout .s3-member-hero .s3-title-copy h1 {
        font-size: 22px
    }

    body.member-layout .s3-member-hero .s3-title-copy span {
        font-size: 13px
    }

    body.member-layout .s3-app .s3-member-hero .s3-hero-controls {
        gap: 8px
    }

    body.member-layout .s3-app .s3-member-hero .s3-sort-label {
        font-size: 13px
    }

    body.member-layout .s3-app .s3-member-hero .s3-sort-wrap {
        flex: 1 1 170px
    }

    body.member-layout .s3-app .s3-member-hero .s3-sort {
        width: 100%;
        min-height: 40px
    }

    body.member-layout .s3-app .s3-member-hero .s3-sort-menu {
        left: 0;
        right: auto;
        width: 100%
    }

    body.member-layout .s3-member-grid,
    body.member-layout .s3-event-grid,
    body.member-layout .s3-news-grid,
    body.member-layout .s3-right {
        grid-template-columns: minmax(0, 1fr) !important
    }

    body.member-layout .s3-resultbar {
        flex-wrap: wrap;
        gap: 10px
    }

    body.member-layout .s3-main .s3-resultbar {
        top: 0;
        padding: 8px 0
    }

    body.member-layout .s3-resultbar > span {
        flex: 1 1 100%
    }

    body.member-layout .s3-view-toggle {
        margin-left: 0
    }

    body.member-layout .member-news-sidebar .s3-filter-head h2 {
        font-size: 18px !important
    }

    body.member-layout .member-news-sidebar .s3-location-menu {
        position: static;
        margin-top: 8px;
        box-shadow: none
    }

    body.member-layout .member-news-sidebar .s3-filter-section.is-expanded {
        max-height: none
    }

    body.member-layout .s3-member-grid.is-list .s3-member-card {
        display: flex;
        flex-direction: column
    }

    body.member-layout .s3-event-grid.is-list .s3-event-card {
        display: flex;
        flex-direction: column
    }

    body.member-layout .s3-news-card,
    body.member-layout .s3-news-grid.is-list .s3-news-card {
        display: flex;
        flex-direction: column
    }

    body.member-layout .s3-news-visual,
    body.member-layout .s3-news-grid.is-list .s3-news-visual {
        min-height: 140px
    }

    body.member-layout .s3-news-grid.is-list .s3-news-actions {
        flex-direction: row;
        align-items: center
    }

    body.member-layout .s3-event-grid.is-list .s3-event-media {
        height: 132px
    }

    body.member-layout .s3-event-grid.is-list .s3-event-actions {
        align-items: stretch
    }

    body.member-layout .s3-member-grid.is-list .s3-looking {
        margin: 8px 0 0
    }
}

/* Comfortable, consistent filter controls across Members, Events and News. */
body.member-layout .member-news-sidebar {
    padding: 16px !important;
    border-radius: 14px !important
}

body.member-layout .member-news-sidebar .s3-filter-head {
    min-height: 32px;
    margin-bottom: 10px !important
}

body.member-layout .member-news-sidebar .s3-filter-head h2 {
    font-size: 19px !important;
    line-height: 1.2 !important
}

body.member-layout .member-news-sidebar .s3-filter-head a {
    flex: 0 0 auto;
    margin-left: 12px;
    white-space: nowrap
}

body.member-layout .member-news-sidebar .s3-filter-section {
    padding: 15px 0 !important
}

body.member-layout .member-news-sidebar .s3-filter-toggle {
    min-height: 24px;
    margin-bottom: 12px !important;
    gap: 10px !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    letter-spacing: -.01em
}

body.member-layout .member-news-sidebar .s3-filter-toggle span {
    flex: 0 0 auto
}

body.member-layout .member-news-sidebar .s3-location-section form {
    gap: 9px
}

body.member-layout .member-news-sidebar .s3-location-toggle,
body.member-layout .member-news-sidebar .s3-filter-search input {
    min-height: 42px;
    height: 42px;
    padding-right: 12px;
    padding-left: 12px;
    border-radius: 10px;
    font-size: 13px
}

body.member-layout .member-news-sidebar .s3-filter-search {
    margin-bottom: 10px !important
}

body.member-layout .member-news-sidebar label.s3-check,
body.member-layout .member-news-sidebar .s3-location-option {
    width: 100%;
    min-height: 34px !important;
    grid-template-columns: 16px minmax(0, 1fr) minmax(34px, auto) !important;
    gap: 8px !important;
    font-size: 13px !important;
    line-height: 1.3 !important
}

body.member-layout .member-news-sidebar label.s3-check > span,
body.member-layout .member-news-sidebar .s3-location-option > span {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal
}

body.member-layout .member-news-sidebar label.s3-check em,
body.member-layout .member-news-sidebar .s3-location-option em {
    min-width: 34px !important;
    padding: 4px 7px !important;
    font-size: 11px !important;
    line-height: 1.25 !important
}

body.member-layout .member-news-sidebar .s3-more {
    margin-top: 5px;
    font-size: 13px !important;
    line-height: 1.3
}

body.member-layout .member-news-sidebar .s3-filter-reset {
    width: 128px;
    min-height: 38px;
    height: 38px;
    margin-top: 12px;
    font-size: 12px
}

/* List mode must override every responsive grid column rule. */
body.member-layout .s3-member-grid.is-list,
body.member-layout .s3-event-grid.is-list,
body.member-layout .s3-news-grid.is-list {
    grid-template-columns: minmax(0, 1fr) !important
}

@media(max-width:480px) {
    body.member-layout .s3-page {
        padding: 10px
    }

    body.member-layout .s3-member-hero .s3-titlebar {
        align-items: flex-start
    }

    body.member-layout .s3-member-hero .s3-title-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px
    }

    body.member-layout .s3-member-hero .s3-title-copy {
        flex-basis: calc(100% - 58px)
    }

    body.member-layout .s3-member-hero .s3-title-copy h1 {
        font-size: 20px
    }

    body.member-layout .s3-app .s3-member-hero .s3-hero-controls {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center
    }

    body.member-layout .s3-app .s3-member-hero .s3-sort {
        min-width: 0;
        padding: 0 10px
    }

    body.member-layout .s3-member-card {
        padding: 14px
    }

    body.member-layout .s3-member-top {
        gap: 10px
    }

    body.member-layout .s3-member-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px
    }

    body.member-layout .s3-connect,
    body.member-layout .s3-message-btn {
        width: 100%;
        min-width: 0
    }

    body.member-layout .s3-person,
    body.member-layout .s3-event {
        min-width: 0
    }
}

body.member-page-shell .wall-drawer-toggle,
body.member-page-shell .s3-mobile-member-tools,
body.member-page-shell .member-drawer-overlay,
body.member-page-shell .wall-drawer-header {
    display: none
}

@media(max-width:1200px) {
    body.member-page-shell #wrapper.member-shell {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important
    }

    body.member-page-shell #content.member-content {
        grid-column: 1/-1 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        padding: 10px !important;
        box-sizing: border-box !important
    }

    body.member-page-shell .member-content-wrapper {
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important
    }

    body.member-page-shell .member-topbar {
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        gap: 10px;
        padding: 8px 10px !important
    }

    body.member-page-shell .member-topbar .is2-brand {
        min-width: 0;
        justify-content: center;
        border-right: 0
    }

    body.member-page-shell .member-topbar .is2-brand-name,
    body.member-page-shell .member-topbar .is2-brand-sub {
        white-space: nowrap
    }

    body.member-page-shell .member-topbar .is2-global-search,
    body.member-page-shell .member-topbar .is2-top-actions {
        display: none !important
    }

    body.member-page-shell .wall-drawer-toggle {
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-width: 78px;
        padding: 0 10px;
        border: 0;
        border-radius: 7px;
        background: #edf4ff;
        color: var(--is2-blue, #0b66c3);
        font-size: 11px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer
    }

    body.member-page-shell .wall-drawer-toggle svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round
    }

    body.member-page-shell .s3-member-app .s3-page {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto minmax(0, 1fr);
        min-height: calc(100dvh - 66px);
        height: calc(100dvh - 66px) !important;
        padding: 10px !important;
        gap: 10px;
        overflow: hidden !important
    }

    body.member-page-shell .s3-member-app .s3-member-hero,
    body.member-page-shell .s3-member-app .s3-mobile-member-tools,
    body.member-page-shell .s3-member-app .s3-main {
        grid-column: 1/-1;
        width: 100%;
        min-width: 0
    }

    body.member-page-shell .s3-member-app .s3-member-hero {
        padding: 12px !important
    }

    body.member-page-shell .s3-mobile-member-tools {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px
    }

    body.member-page-shell .s3-mobile-member-search {
        min-width: 0;
        height: 42px;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 0 12px;
        border: 1px solid #dbe4ef;
        border-radius: 9px;
        background: #fff
    }

    body.member-page-shell .s3-mobile-member-search .s3-icon {
        width: 17px;
        height: 17px;
        flex: 0 0 auto;
        color: #6a7890
    }

    body.member-page-shell .s3-mobile-member-search input {
        width: 100%;
        min-width: 0;
        height: 100%;
        margin: 0 !important;
        padding: 0;
        border: 0;
        outline: 0;
        background: transparent;
        box-shadow: none !important;
        color: #162238;
        font-size: 14px
    }

    body.member-page-shell .s3-mobile-filter-button {
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 0 12px;
        border: 0;
        border-radius: 9px;
        background: #143d73;
        color: #fff;
        font-size: 12px;
        font-weight: 800;
        cursor: pointer
    }

    body.member-page-shell .s3-mobile-filter-button .s3-icon {
        width: 18px;
        height: 18px
    }

    body.member-page-shell .s3-member-app .s3-main {
        position: relative !important;
        height: 100% !important;
        min-height: 0;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch
    }

    body.member-page-shell .s3-member-app .s3-filters,
    body.member-page-shell .s3-member-app .s3-right {
        grid-column: auto;
        width: min(340px, 90vw) !important;
        height: 100dvh !important;
        max-height: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        scrollbar-width: none;
        transition: transform .22s ease !important
    }

    body.member-page-shell .s3-member-app .s3-filters::-webkit-scrollbar,
    body.member-page-shell .s3-member-app .s3-right::-webkit-scrollbar,
    body.member-page-shell #sidebar.member-sidebar.wall-left-drawer::-webkit-scrollbar {
        display: none;
        width: 0
    }

    body.member-page-shell .s3-member-app .s3-filters.member-filter-drawer {
        position: fixed !important;
        z-index: 1001 !important;
        inset: 0 auto 0 0 !important;
        padding: 0 14px 18px !important;
        border-right: 1px solid var(--is2-line, #dbe4ef) !important;
        background: #fff !important;
        box-shadow: 12px 0 36px rgba(7, 27, 67, .2) !important;
        transform: translateX(-105%)
    }

    body.member-page-shell.member-filter-drawer-open .s3-member-app .s3-filters.member-filter-drawer {
        transform: translateX(0) !important
    }

    body.member-page-shell .s3-member-app .s3-right.wall-right-drawer {
        position: fixed !important;
        z-index: 1001 !important;
        inset: 0 0 0 auto !important;
        display: flex !important;
        flex-direction: column;
        gap: 14px;
        padding: 0 14px 18px !important;
        border-left: 1px solid var(--is2-line, #dbe4ef) !important;
        background: #f7f9fc !important;
        box-shadow: -12px 0 36px rgba(7, 27, 67, .2) !important;
        transform: translateX(105%)
    }

    body.member-page-shell.wall-right-drawer-open .s3-member-app .s3-right.wall-right-drawer {
        transform: translateX(0) !important
    }

    body.member-page-shell #sidebar.member-sidebar.wall-left-drawer {
        position: fixed !important;
        z-index: 1001 !important;
        inset: 0 auto 0 0 !important;
        width: min(310px, 88vw) !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 0 16px 18px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        border-right: 1px solid var(--is2-line, #dbe4ef) !important;
        background: #fff !important;
        box-shadow: 12px 0 36px rgba(7, 27, 67, .2) !important;
        transform: translateX(-105%);
        transition: transform .22s ease !important;
        scrollbar-width: none
    }

    body.member-page-shell.wall-left-drawer-open #sidebar.member-sidebar.wall-left-drawer {
        transform: translateX(0) !important
    }

    body.member-page-shell .wall-drawer-header {
        position: sticky;
        z-index: 3;
        top: 0;
        min-height: 58px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 -14px 14px;
        padding: 0 17px;
        border-bottom: 1px solid var(--is2-line, #dbe4ef);
        background: #fff
    }

    body.member-page-shell #sidebar.member-sidebar .wall-drawer-header {
        margin: 0 -16px 14px
    }

    body.member-page-shell .wall-drawer-header strong {
        font-size: 15px
    }

    body.member-page-shell .wall-drawer-header button {
        width: 34px;
        height: 34px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #edf2f8;
        color: #34425e;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer
    }

    body.member-page-shell .member-drawer-overlay {
        position: fixed;
        z-index: 1000;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(7, 20, 43, .48);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease
    }

    body.member-page-shell.wall-left-drawer-open .member-drawer-overlay,
    body.member-page-shell.wall-right-drawer-open .member-drawer-overlay,
    body.member-page-shell.member-filter-drawer-open .member-drawer-overlay {
        opacity: 1;
        pointer-events: auto
    }

    body.member-page-shell.wall-left-drawer-open,
    body.member-page-shell.wall-right-drawer-open,
    body.member-page-shell.member-filter-drawer-open {
        overflow: hidden
    }
}

@media(max-width:640px) {
    body.member-page-shell .member-topbar {
        grid-template-columns: auto minmax(0, 1fr) auto !important
    }

    body.member-page-shell .member-topbar .is2-brand {
        justify-content: center
    }

    body.member-page-shell .member-topbar .is2-brand-sub {
        display: none
    }

    body.member-page-shell .wall-drawer-toggle {
        min-width: 42px;
        width: 42px;
        padding: 0
    }

    body.member-page-shell .wall-drawer-toggle span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0)
    }

    body.member-page-shell .s3-member-app .s3-page {
        min-height: calc(100dvh - 58px);
        height: calc(100dvh - 58px) !important;
        padding: 8px !important
    }

    body.member-page-shell .s3-mobile-member-tools {
        grid-template-columns: minmax(0, 1fr) 42px
    }

    body.member-page-shell .s3-mobile-filter-button {
        width: 42px;
        padding: 0
    }

    body.member-page-shell .s3-mobile-filter-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0)
    }
}

/* Shared Wall-style directory header, result toolbar, and right rail. */
body.member-layout .s3-app {
    font-family: Inter, Arial, sans-serif;
    color: var(--is2-text, #10182f)
}

body.member-layout .s3-page {
    grid-template-columns: 200px minmax(0, 1fr) 250px;
    grid-template-rows: auto auto minmax(0, 1fr)
}

body.member-layout .s3-member-hero {
    min-height: 88px;
    padding: 14px 18px;
    gap: 0;
    border-radius: 9px !important;
    box-shadow: 0 2px 8px rgba(35, 55, 91, .06) !important
}

body.member-layout .s3-member-hero .s3-titlebar {
    min-height: 58px;
    align-items: center;
    gap: 14px
}

body.member-layout .s3-member-hero .s3-title-icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 9px
}

body.member-layout .s3-member-hero .s3-title-icon .s3-icon {
    width: 28px;
    height: 28px
}

body.member-layout .s3-member-hero .s3-title-copy h1 {
    margin-bottom: 5px;
    font-size: 24px;
    font-weight: 700 !important
}

body.member-layout .s3-member-hero .s3-title-copy span {
    font-size: 12px
}

body.member-layout .s3-directory-toolbar {
    position: relative;
    z-index: 25;
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    min-height: 54px;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 9px !important;
    box-shadow: 0 2px 8px rgba(35, 55, 91, .06) !important
}

body.member-layout .s3-toolbar-sort {
    display: flex;
    align-items: center;
    gap: 9px
}

body.member-layout .s3-directory-toolbar .s3-sort-label {
    color: #263451;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap
}

body.member-layout .s3-directory-toolbar .s3-sort-wrap {
    position: relative
}

body.member-layout .s3-directory-toolbar .s3-sort {
    min-width: 132px;
    height: 34px;
    margin: 0;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    border: 1px solid #dfe4ed;
    border-radius: 5px;
    background: #fff;
    color: #263451;
    font-size: 12px;
    font-weight: 600
}

body.member-layout .s3-directory-toolbar .s3-sort-icon {
    width: 14px;
    height: 14px;
    transition: transform .18s ease
}

body.member-layout .s3-directory-toolbar .s3-sort[aria-expanded="true"] .s3-sort-icon {
    transform: rotate(180deg)
}

body.member-layout .s3-directory-toolbar .s3-sort-menu {
    position: absolute;
    z-index: 50;
    top: calc(100% + 7px);
    left: 0;
    min-width: 160px;
    padding: 6px;
    display: none;
    border: 1px solid #dfe4ed;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 37, 68, .16)
}

body.member-layout .s3-directory-toolbar .s3-sort-menu.is-open {
    display: block
}

body.member-layout .s3-directory-toolbar .s3-sort-item {
    min-height: 34px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    color: #31405c;
    font-size: 11px;
    text-decoration: none;
    white-space: nowrap
}

body.member-layout .s3-directory-toolbar .s3-sort-item:hover,
body.member-layout .s3-directory-toolbar .s3-sort-item.active {
    background: #eef5ff;
    color: var(--s3-blue)
}

body.member-layout .s3-directory-toolbar .s3-view {
    margin: 0 3px 0 0;
    color: #43506b;
    font-size: 11px
}

body.member-layout .s3-directory-toolbar .s3-view-btn {
    width: 32px;
    height: 32px;
    margin: 0 0 0 3px
}

body.member-layout .s3-directory-toolbar .s3-showing {
    margin: 0 4px 0 18px;
    color: #43506b;
    font-size: 11px;
    white-space: nowrap
}

body.member-layout .s3-filters,
body.member-layout .s3-main,
body.member-layout .s3-right {
    grid-row: 3
}

body.member-layout .s3-main .s3-resultbar {
    display: none
}

body.member-layout .s3-app .s3-widget {
    min-height: 0;
    padding: 17px;
    display: flex;
    flex-direction: column;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(35, 55, 91, .06)
}

body.member-layout .s3-app .s3-widget-head {
    margin-bottom: 15px
}

body.member-layout .s3-app .s3-widget-head h2 {
    font-size: 16px;
    font-weight: 700
}

body.member-layout .s3-right {
    gap: 14px
}

body.member-layout .s3-widget .s3-event {
    grid-template-columns: 55px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 18px;
    padding: 0;
    border-bottom: 0
}

body.member-layout .s3-widget .s3-date {
    height: 61px;
    border-radius: 8px;
    font-size: 11px
}

body.member-layout .s3-widget .s3-date strong {
    font-size: 22px
}

body.member-layout .s3-widget .s3-event-copy strong {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.4
}

body.member-layout .s3-widget .s3-event-copy span,
body.member-layout .s3-widget .s3-event-copy small {
    font-size: 10px
}

body.member-layout .s3-widget .s3-event-side {
    grid-template-columns: 55px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 18px
}

body.member-layout .s3-widget .s3-event-side-date {
    height: 61px;
    border-radius: 8px;
    font-size: 11px
}

body.member-layout .s3-widget .s3-event-side-date strong {
    font-size: 22px
}

body.member-layout .s3-app .s3-panel-link {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--s3-blue);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none
}

body.member-layout .s3-app .s3-panel-link:hover {
    text-decoration: underline
}

body.member-layout .s3-app .s3-panel-link span {
    font-size: 16px;
    line-height: 1
}

@media(max-width:1200px) {
    body.member-layout .s3-page {
        grid-template-rows: auto auto auto;
        padding: 12px !important
    }

    body.member-layout .s3-directory-toolbar {
        grid-row: auto;
        width: 100%
    }

    body.member-layout .s3-filters,
    body.member-layout .s3-main,
    body.member-layout .s3-right {
        grid-row: auto
    }
}

@media(max-width:640px) {
    body.member-layout .s3-member-hero {
        min-height: 68px;
        padding: 10px 12px !important
    }

    body.member-layout .s3-member-hero .s3-titlebar {
        min-height: 46px
    }

    body.member-layout .s3-member-hero .s3-title-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px
    }

    body.member-layout .s3-member-hero .s3-title-copy h1 {
        font-size: 20px
    }

    body.member-layout .s3-directory-toolbar {
        min-height: 50px;
        overflow-x: auto;
        overflow-y: visible;
        white-space: nowrap;
        scrollbar-width: none
    }

    body.member-layout .s3-directory-toolbar::-webkit-scrollbar {
        display: none
    }

    body.member-layout .s3-directory-toolbar .s3-result-spacer {
        min-width: 12px
    }
}

@media(max-width:768px) {
    body.member-page-shell .s3-member-app .s3-resultbar {
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 7px !important;
        min-height: 42px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none
    }

    body.member-page-shell .s3-member-app .s3-resultbar::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0
    }

    body.member-page-shell .s3-member-app .s3-resultbar > span {
        flex: 0 0 auto !important
    }

    body.member-page-shell .s3-member-app .s3-result-spacer {
        display: none
    }

    body.member-page-shell .s3-member-app .s3-view {
        margin-right: 2px
    }

    body.member-page-shell .s3-member-app .s3-view-btn {
        flex: 0 0 32px
    }

    body.member-page-shell .s3-member-app .s3-showing {
        margin-left: auto
    }

    body.member-page-shell .s3-main .s3-main-scroll-top {
        left: 14px !important;
        right: auto !important;
        margin: -54px auto 14px 14px !important
    }
}

body.s3-mobile-page-shell .wall-drawer-toggle,
body.s3-mobile-page-shell .s3-mobile-member-tools,
body.s3-mobile-page-shell .member-drawer-overlay,
body.s3-mobile-page-shell .wall-drawer-header {
    display: none
}

@media(max-width:1200px) {
    body.s3-mobile-page-shell #wrapper.member-shell {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important
    }

    body.s3-mobile-page-shell #content.member-content {
        grid-column: 1/-1 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        padding: 10px !important;
        box-sizing: border-box !important
    }

    body.s3-mobile-page-shell .member-content-wrapper {
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important
    }

    body.s3-mobile-page-shell .member-topbar {
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        gap: 10px;
        padding: 8px 10px !important
    }

    body.s3-mobile-page-shell .member-topbar .is2-brand {
        min-width: 0;
        justify-content: center;
        border-right: 0
    }

    body.s3-mobile-page-shell .member-topbar .is2-brand-name,
    body.s3-mobile-page-shell .member-topbar .is2-brand-sub {
        white-space: nowrap
    }

    body.s3-mobile-page-shell .member-topbar .is2-global-search,
    body.s3-mobile-page-shell .member-topbar .is2-top-actions {
        display: none !important
    }

    body.s3-mobile-page-shell .wall-drawer-toggle {
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-width: 78px;
        padding: 0 10px;
        border: 0;
        border-radius: 7px;
        background: #edf4ff;
        color: var(--is2-blue, #0b66c3);
        font-size: 11px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer
    }

    body.s3-mobile-page-shell .wall-drawer-toggle svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round
    }

    body.s3-mobile-page-shell .s3-app .s3-page {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto minmax(0, 1fr);
        min-height: calc(100dvh - 66px);
        height: calc(100dvh - 66px) !important;
        padding: 10px !important;
        gap: 10px;
        overflow: hidden !important
    }

    body.s3-mobile-page-shell .s3-app .s3-member-hero,
    body.s3-mobile-page-shell .s3-app .s3-mobile-member-tools,
    body.s3-mobile-page-shell .s3-app .s3-main {
        grid-column: 1/-1;
        width: 100%;
        min-width: 0
    }

    body.s3-mobile-page-shell .s3-app .s3-member-hero {
        padding: 12px !important
    }

    body.s3-mobile-page-shell .s3-mobile-member-tools {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px
    }

    body.s3-mobile-page-shell .s3-mobile-member-search {
        min-width: 0;
        height: 42px;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 0 12px;
        border: 1px solid #dbe4ef;
        border-radius: 9px;
        background: #fff
    }

    body.s3-mobile-page-shell .s3-mobile-member-search .s3-icon {
        width: 17px;
        height: 17px;
        flex: 0 0 auto;
        color: #6a7890
    }

    body.s3-mobile-page-shell .s3-mobile-member-search input {
        width: 100%;
        min-width: 0;
        height: 100%;
        margin: 0 !important;
        padding: 0;
        border: 0;
        outline: 0;
        background: transparent;
        box-shadow: none !important;
        color: #162238;
        font-size: 14px
    }

    body.s3-mobile-page-shell .s3-mobile-filter-button {
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 0 12px;
        border: 0;
        border-radius: 9px;
        background: #143d73;
        color: #fff;
        font-size: 12px;
        font-weight: 800;
        cursor: pointer
    }

    body.s3-mobile-page-shell .s3-mobile-filter-button .s3-icon {
        width: 18px;
        height: 18px
    }

    body.s3-mobile-page-shell .s3-app .s3-main {
        position: relative !important;
        height: 100% !important;
        min-height: 0;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch
    }

    body.s3-mobile-page-shell .s3-app .s3-filters,
    body.s3-mobile-page-shell .s3-app .s3-right {
        grid-column: auto;
        width: min(340px, 90vw) !important;
        height: 100dvh !important;
        max-height: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        scrollbar-width: none;
        transition: transform .22s ease !important
    }

    body.s3-mobile-page-shell .s3-app .s3-filters::-webkit-scrollbar,
    body.s3-mobile-page-shell .s3-app .s3-right::-webkit-scrollbar,
    body.s3-mobile-page-shell #sidebar.member-sidebar.wall-left-drawer::-webkit-scrollbar {
        display: none;
        width: 0
    }

    body.s3-mobile-page-shell .s3-app .s3-filters.s3-filter-drawer {
        position: fixed !important;
        z-index: 1001 !important;
        inset: 0 auto 0 0 !important;
        padding: 0 14px 18px !important;
        border-right: 1px solid var(--is2-line, #dbe4ef) !important;
        background: #fff !important;
        box-shadow: 12px 0 36px rgba(7, 27, 67, .2) !important;
        transform: translateX(-105%)
    }

    body.s3-mobile-page-shell.s3-filter-drawer-open .s3-app .s3-filters.s3-filter-drawer {
        transform: translateX(0) !important
    }

    body.s3-mobile-page-shell .s3-app .s3-right.wall-right-drawer {
        position: fixed !important;
        z-index: 1001 !important;
        inset: 0 0 0 auto !important;
        display: flex !important;
        flex-direction: column;
        gap: 14px;
        padding: 0 14px 18px !important;
        border-left: 1px solid var(--is2-line, #dbe4ef) !important;
        background: #f7f9fc !important;
        box-shadow: -12px 0 36px rgba(7, 27, 67, .2) !important;
        transform: translateX(105%)
    }

    body.s3-mobile-page-shell.wall-right-drawer-open .s3-app .s3-right.wall-right-drawer {
        transform: translateX(0) !important
    }

    body.s3-mobile-page-shell #sidebar.member-sidebar.wall-left-drawer {
        position: fixed !important;
        z-index: 1001 !important;
        inset: 0 auto 0 0 !important;
        width: min(310px, 88vw) !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 0 16px 18px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        border-right: 1px solid var(--is2-line, #dbe4ef) !important;
        background: #fff !important;
        box-shadow: 12px 0 36px rgba(7, 27, 67, .2) !important;
        transform: translateX(-105%);
        transition: transform .22s ease !important;
        scrollbar-width: none
    }

    body.s3-mobile-page-shell.wall-left-drawer-open #sidebar.member-sidebar.wall-left-drawer {
        transform: translateX(0) !important
    }

    body.s3-mobile-page-shell .wall-drawer-header {
        position: sticky;
        z-index: 3;
        top: 0;
        min-height: 58px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 -14px 14px;
        padding: 0 17px;
        border-bottom: 1px solid var(--is2-line, #dbe4ef);
        background: #fff
    }

    body.s3-mobile-page-shell #sidebar.member-sidebar .wall-drawer-header {
        margin: 0 -16px 14px
    }

    body.s3-mobile-page-shell .wall-drawer-header strong {
        font-size: 15px
    }

    body.s3-mobile-page-shell .wall-drawer-header button {
        width: 34px;
        height: 34px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #edf2f8;
        color: #34425e;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer
    }

    body.s3-mobile-page-shell .member-drawer-overlay {
        position: fixed;
        z-index: 1000;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(7, 20, 43, .48);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease
    }

    body.s3-mobile-page-shell.wall-left-drawer-open .member-drawer-overlay,
    body.s3-mobile-page-shell.wall-right-drawer-open .member-drawer-overlay,
    body.s3-mobile-page-shell.s3-filter-drawer-open .member-drawer-overlay {
        opacity: 1;
        pointer-events: auto
    }

    body.s3-mobile-page-shell.wall-left-drawer-open,
    body.s3-mobile-page-shell.wall-right-drawer-open,
    body.s3-mobile-page-shell.s3-filter-drawer-open {
        overflow: hidden
    }
}

@media(max-width:768px) {
    body.s3-mobile-page-shell .s3-app .s3-resultbar {
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 7px !important;
        min-height: 42px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none
    }

    body.s3-mobile-page-shell .s3-app .s3-resultbar::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0
    }

    body.s3-mobile-page-shell .s3-app .s3-resultbar > span {
        flex: 0 0 auto !important
    }

    body.s3-mobile-page-shell .s3-app .s3-result-spacer {
        display: none
    }

    body.s3-mobile-page-shell .s3-app .s3-view {
        margin-right: 2px
    }

    body.s3-mobile-page-shell .s3-app .s3-view-btn {
        flex: 0 0 32px
    }

    body.s3-mobile-page-shell .s3-app .s3-showing {
        margin-left: auto
    }

}

@media(max-width:640px) {
    body.s3-mobile-page-shell .member-topbar {
        grid-template-columns: auto minmax(0, 1fr) auto !important
    }

    body.s3-mobile-page-shell .member-topbar .is2-brand {
        justify-content: center
    }

    body.s3-mobile-page-shell .member-topbar .is2-brand-sub {
        display: none
    }

    body.s3-mobile-page-shell .wall-drawer-toggle {
        min-width: 42px;
        width: 42px;
        padding: 0
    }

    body.s3-mobile-page-shell .wall-drawer-toggle span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0)
    }

    body.s3-mobile-page-shell .s3-app .s3-page {
        min-height: calc(100dvh - 58px);
        height: calc(100dvh - 58px) !important;
        padding: 8px !important
    }

    body.s3-mobile-page-shell .s3-mobile-member-tools {
        grid-template-columns: minmax(0, 1fr) 42px
    }

    body.s3-mobile-page-shell .s3-mobile-filter-button {
        width: 42px;
        padding: 0
    }

    body.s3-mobile-page-shell .s3-mobile-filter-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0)
    }
}

/* Reference directory layout: side rails start at the heading row. */
@media(min-width:1201px) {
    body.member-layout .s3-page {
        grid-template-columns: 250px minmax(0, 1fr) 250px;
        grid-template-rows: auto auto minmax(0, 1fr);
        column-gap: 16px;
        row-gap: 10px;
        padding: 14px 16px 22px
    }

    body.member-layout .s3-member-hero {
        grid-column: 2;
        grid-row: 1;
        min-height: 58px;
        padding: 4px 0;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent;
        box-shadow: none !important
    }

    body.member-layout .s3-member-hero .s3-titlebar {
        min-height: 50px;
        gap: 11px
    }

    body.member-layout .s3-member-hero .s3-title-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 8px
    }

    body.member-layout .s3-member-hero .s3-title-icon .s3-icon {
        width: 24px;
        height: 24px
    }

    body.member-layout .s3-member-hero .s3-title-copy h1 {
        margin-bottom: 4px;
        font-size: 22px
    }

    body.member-layout .s3-member-hero .s3-title-copy span {
        font-size: 11px
    }

    body.member-layout .s3-directory-toolbar {
        grid-column: 2;
        grid-row: 2;
        min-height: 48px;
        padding: 7px 10px
    }

    body.member-layout .s3-filters {
        grid-column: 1;
        grid-row: 1 / 4;
        width: 250px;
        height: 100%;
        max-height: 100%
    }

    body.member-layout .s3-main {
        grid-column: 2;
        grid-row: 3
    }

    body.member-layout .s3-right {
        grid-column: 3;
        grid-row: 1 / 4;
        height: 100%;
        max-height: 100%
    }

    body.member-layout .s3-member-grid,
    body.member-layout .s3-event-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

/* Horizontal cards used by the list-view reference. */
@media(min-width:769px) {
body.member-layout .s3-member-grid.is-list,
body.member-layout .s3-event-grid.is-list,
body.member-layout .s3-news-grid.is-list {
    grid-template-columns: minmax(0, 1fr)
}

body.member-layout .s3-member-grid.is-list .s3-member-card {
    height: auto !important;
    min-height: 128px;
    max-height: none !important;
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(260px, 1.25fr) minmax(180px, 1fr) auto;
    grid-template-areas: "identity looking actions";
    align-items: center;
    gap: 18px
}

body.member-layout .s3-member-grid.is-list .s3-member-top,
body.member-layout .s3-member-grid.is-list .s3-looking,
body.member-layout .s3-member-grid.is-list .s3-member-actions {
    align-self: center
}

body.member-layout .s3-member-grid.is-list .s3-looking {
    margin: 0
}

body.member-layout .s3-member-grid.is-list .s3-member-actions {
    justify-content: flex-end
}

body.member-layout .s3-event-grid.is-list .s3-event-card {
    min-height: 148px;
    grid-template-columns: 190px minmax(0, 1fr) 128px
}

body.member-layout .s3-event-grid.is-list .s3-event-body {
    padding: 14px 16px
}

body.member-layout .s3-event-grid.is-list .s3-event-body p {
    min-height: 0;
    -webkit-line-clamp: 2
}

body.member-layout .s3-event-grid.is-list .s3-event-actions {
    padding: 14px;
    justify-content: center
}

body.member-layout .s3-news-grid.is-list .s3-news-card {
    min-height: 124px;
    grid-template-columns: 150px minmax(0, 1fr) 112px
}

body.member-layout .s3-news-grid.is-list .s3-news-copy {
    padding: 13px 15px
}

body.member-layout .s3-news-grid.is-list .s3-news-copy h3 {
    -webkit-line-clamp: 1
}

body.member-layout .s3-news-grid.is-list .s3-news-copy p {
    -webkit-line-clamp: 2
}

body.member-layout .s3-news-grid.is-list .s3-news-actions {
    padding: 12px;
    justify-content: center
}
}

/* Keep the controls bar compact and strictly horizontal. */
body.member-layout .s3-directory-toolbar {
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    max-height: 48px !important;
    padding: 7px 8px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    overflow: visible
}

body.member-layout .s3-directory-toolbar .s3-toolbar-sort {
    width: auto !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important
}

body.member-layout .s3-directory-toolbar .s3-view {
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 2px 0 8px !important
}

body.member-layout .s3-directory-toolbar .s3-view-btn {
    flex: 0 0 32px !important;
    margin: 0 !important
}

body.member-layout .s3-directory-toolbar .s3-result-spacer {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 8px !important
}

body.member-layout .s3-directory-toolbar .s3-showing {
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 2px 0 auto !important;
    text-align: right !important
}

body.member-layout .s3-event-media {
    flex: 0 0 132px;
    width: 100%;
    height: 132px;
    min-height: 132px;
    max-height: 132px
}

body.member-layout .s3-event-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden
}

body.member-layout .s3-event-actions {
    flex: 0 0 auto
}

body.member-layout .s3-event-type {
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px)
}

body.member-layout .s3-event-date {
    bottom: 10px;
    left: 10px
}

@media(max-width:640px) {
    body.member-layout .s3-directory-toolbar {
        overflow: visible
    }

    body.member-layout .s3-directory-toolbar .s3-sort-label,
    body.member-layout .s3-directory-toolbar .s3-view {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
        white-space: nowrap !important
    }

    body.member-layout .s3-directory-toolbar .s3-sort {
        min-width: 106px;
        width: 106px
    }

    body.member-layout .s3-directory-toolbar .s3-showing {
        font-size: 10px
    }
}

/* Final alignment and fixed-card sizing shared by Members, Events, and News. */
body.member-layout .s3-directory-toolbar .s3-sort {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important
}

body.member-layout .s3-directory-toolbar .s3-toolbar-sort {
    order: 1;
    margin-right: 0 !important
}

body.member-layout .s3-directory-toolbar .s3-view {
    order: 2
}

body.member-layout .s3-directory-toolbar .s3-view-btn:first-of-type {
    order: 3
}

body.member-layout .s3-directory-toolbar .s3-view-btn:last-of-type {
    order: 4
}

body.member-layout .s3-directory-toolbar .s3-result-spacer {
    order: 5
}

body.member-layout .s3-directory-toolbar .s3-showing {
    order: 6
}

/* Upcoming/Latest side cards use the API Agencies type scale and scroll internally. */
body.member-layout .s3-scrollable-side-card{min-height:0;display:flex;flex-direction:column;overflow:hidden}
body.member-layout .s3-scrollable-side-card .s3-widget-head,
body.member-layout .s3-scrollable-side-card .s3-panel-link{flex:0 0 auto}
body.member-layout .s3-scrollable-side-card .s3-widget-scroll{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none}
body.member-layout .s3-scrollable-side-card .s3-widget-scroll::-webkit-scrollbar{display:none;width:0;height:0}
body.member-layout .s3-api-font-card .s3-widget-head h2{font-size:16px;font-weight:700}
body.member-layout .s3-api-font-card .s3-event-copy strong,
body.member-layout .s3-api-font-card .s3-event-side-copy strong{font-size:12px;font-weight:700;line-height:1.35}
body.member-layout .s3-api-font-card .s3-event-copy span,
body.member-layout .s3-api-font-card .s3-event-copy small,
body.member-layout .s3-api-font-card .s3-event-side-copy span,
body.member-layout .s3-api-font-card .s3-event-side-copy small{font-size:10px;line-height:1.4}

@media(max-width:1200px){body.member-layout .s3-right .s3-scrollable-side-card{flex:0 0 320px!important;width:100%!important;height:320px!important;min-height:320px!important;max-height:320px!important}}

@media(min-width:1201px) {
    body.member-layout .s3-right {
        min-width: 250px;
        width: 250px;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 14px;
        overflow: hidden
    }

    body.member-layout .s3-right > .s3-widget {
        width: 250px;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: hidden
    }

    body.member-layout .s3-right .s3-widget-head,
    body.member-layout .s3-right .s3-panel-link {
        flex: 0 0 auto
    }

    body.member-layout .s3-right .s3-widget-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: none;
        -ms-overflow-style: none
    }

    body.member-layout .s3-right .s3-widget-scroll::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0
    }

    body.member-layout .s3-member-grid,
    body.member-layout .s3-event-grid,
    body.member-layout .s3-news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        align-items: start
    }

    body.member-layout .s3-member-grid:not(.is-list) .s3-member-card {
        height: 238px !important;
        min-height: 238px !important;
        max-height: 238px !important;
        overflow: hidden
    }

    body.member-layout .s3-event-grid:not(.is-list) .s3-event-card {
        height: 318px;
        min-height: 318px;
        max-height: 318px;
        overflow: hidden
    }

    body.member-layout .s3-event-grid.is-list .s3-event-media {
        width: 190px;
        height: 100%;
        min-height: 148px;
        max-height: none
    }

    body.member-layout .s3-news-grid:not(.is-list) .s3-news-card {
        height: 300px;
        min-height: 300px;
        max-height: 300px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 112px minmax(0, 1fr) auto;
        overflow: hidden
    }

    body.member-layout .s3-news-grid:not(.is-list) .s3-news-visual {
        grid-column: 1;
        grid-row: 1;
        min-height: 112px
    }

    body.member-layout .s3-news-grid:not(.is-list) .s3-news-copy {
        grid-column: 1;
        grid-row: 2;
        padding: 11px 12px 5px;
        gap: 6px
    }

    body.member-layout .s3-news-grid:not(.is-list) .s3-news-copy h3 {
        font-size: 13px;
        -webkit-line-clamp: 2
    }

    body.member-layout .s3-news-grid:not(.is-list) .s3-news-copy p {
        font-size: 11px;
        -webkit-line-clamp: 2
    }

    body.member-layout .s3-news-grid:not(.is-list) .s3-news-actions {
        grid-column: 1;
        grid-row: 3;
        padding: 7px 10px 10px
    }

    body.member-layout .s3-news-grid:not(.is-list) .s3-news-read {
        padding: 0 9px;
        font-size: 10px
    }
}

@media(min-width:769px) and (max-width:1200px) {
    body.member-layout .s3-member-grid.is-list .s3-member-card {
        height: auto !important;
        min-height: 128px !important;
        max-height: none !important
    }

    body.member-layout .s3-event-grid.is-list .s3-event-media {
        width: 180px;
        height: 100%;
        min-height: 148px;
        max-height: none
    }
}

@media(max-width:768px) {
    body.member-layout .s3-member-grid.is-list .s3-member-card,
    body.member-layout .s3-event-grid.is-list .s3-event-card,
    body.member-layout .s3-news-grid.is-list .s3-news-card {
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column !important
    }

    body.member-layout .s3-event-grid.is-list .s3-event-media,
    body.member-layout .s3-news-grid.is-list .s3-news-visual {
        width: 100%;
        height: 132px;
        min-height: 132px;
        max-height: 132px
    }

    body.member-layout .s3-member-grid.is-list .s3-member-actions,
    body.member-layout .s3-event-grid.is-list .s3-event-actions,
    body.member-layout .s3-news-grid.is-list .s3-news-actions {
        width: 100%;
        flex-direction: row;
        align-items: center
    }
}

/* Result count on the left; sorting and view controls on the right. */
body.member-layout .s3-directory-toolbar .s3-showing {
    order: 1;
    margin: 0 8px 0 2px !important;
    text-align: left !important
}

body.member-layout .s3-directory-toolbar .s3-result-spacer {
    order: 2
}

body.member-layout .s3-directory-toolbar .s3-toolbar-sort {
    order: 3;
    margin-left: auto !important
}

body.member-layout .s3-directory-toolbar .s3-view {
    order: 4
}

body.member-layout .s3-directory-toolbar .s3-view-btn:first-of-type {
    order: 5
}

body.member-layout .s3-directory-toolbar .s3-view-btn:last-of-type {
    order: 6
}

/* Match the Wall side-card rhythm while centering the newsletter form body. */
@media(min-width:1201px) {
    body.member-layout #news-right-drawer {
        display: flex !important;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none
    }

    body.member-layout #news-right-drawer::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0
    }

    body.member-layout #news-right-drawer > .s3-widget {
        width: 250px;
        height: calc((100% - 14px) / 2);
        min-height: 240px;
        max-height: none;
        flex: 0 0 calc((100% - 14px) / 2)
    }
}

body.member-layout #news-right-drawer > .s3-widget:last-child {
    justify-content: center
}

body.member-layout #news-right-drawer > .s3-widget:last-child .s3-widget-scroll {
    width: 100%;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible
}

body.member-layout #news-right-drawer .s3-newsletter-form {
    width: 100%;
    gap: 10px
}

body.member-layout #news-right-drawer .s3-news-email,
body.member-layout #news-right-drawer .s3-news-subscribe {
    min-height: 40px;
    height: 40px;
    border-radius: 7px;
    font-size: 12px
}

body.member-layout #news-right-drawer .s3-news-subscribe {
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(7, 95, 240, .14)
}

/* Compact filter rail so the primary three-card grid keeps visual priority. */
body.member-layout .member-news-sidebar {
    padding: 14px !important
}

body.member-layout .member-news-sidebar .s3-filter-head h2 {
    font-size: 18px !important
}

body.member-layout .member-news-sidebar .s3-filter-head a {
    margin-left: 8px;
    font-size: 12px !important
}

body.member-layout .member-news-sidebar .s3-filter-section {
    padding: 13px 0 !important
}

body.member-layout .member-news-sidebar .s3-filter-toggle {
    margin-bottom: 10px !important;
    font-size: 13px !important
}

body.member-layout .member-news-sidebar .s3-location-toggle,
body.member-layout .member-news-sidebar .s3-filter-search input {
    min-height: 40px;
    height: 40px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 12px
}

body.member-layout .member-news-sidebar label.s3-check,
body.member-layout .member-news-sidebar .s3-location-option {
    min-height: 32px !important;
    grid-template-columns: 15px minmax(0, 1fr) minmax(30px, auto) !important;
    gap: 7px !important;
    font-size: 12px !important
}

body.member-layout .member-news-sidebar label.s3-check input,
body.member-layout .member-news-sidebar .s3-location-option input {
    width: 15px !important;
    height: 15px !important
}

body.member-layout .member-news-sidebar label.s3-check em,
body.member-layout .member-news-sidebar .s3-location-option em {
    min-width: 30px !important;
    padding: 4px 6px !important;
    font-size: 10px !important
}

body.member-layout .member-news-sidebar .s3-more {
    font-size: 12px !important
}

body.member-layout .member-news-sidebar .s3-filter-reset {
    width: 116px;
    min-height: 36px;
    height: 36px
}

@media(min-width:1201px) {
    body.member-layout .s3-page {
        grid-template-columns: 215px minmax(0, 1fr) 250px
    }

    body.member-layout .s3-filters {
        width: 215px
    }
}

/* Filter headings collapse sections; Show more only reveals additional options. */
body.member-layout .member-news-sidebar .s3-filter-toggle {
    appearance: none;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: inherit;
    text-align: left;
    cursor: pointer
}

body.member-layout .member-news-sidebar .s3-filter-chevron {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    margin-right: 1px;
    border: 0;
    fill: none;
    stroke: #61708d;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(180deg) !important;
    transition: transform .18s ease
}

body.member-layout .member-news-sidebar .s3-filter-section.is-collapsed .s3-filter-chevron {
    transform: rotate(0) !important
}

body.member-layout .member-news-sidebar .s3-filter-section.is-collapsed {
    max-height: none;
    overflow: visible
}

/* Use the same floating back-to-top treatment and positioning as the Wall. */
body.member-layout .s3-scroll-top,
body.member-layout .s3-main .s3-main-scroll-top {
    position: fixed !important;
    z-index: 25;
    right: auto !important;
    width: 42px;
    height: 42px;
    margin: 0 !important;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--s3-blue);
    color: #fff;
    box-shadow: 0 5px 16px rgba(7, 94, 233, .32);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease, background .18s ease
}

body.member-layout .s3-scroll-top .s3-icon {
    width: 18px;
    height: 18px
}

body.member-layout .s3-scroll-top:hover {
    background: #054dc0
}

body.member-layout .s3-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0)
}

@media(max-width:1200px) {
    body.s3-mobile-page-shell .s3-app .s3-page {
        grid-template-rows: auto auto auto minmax(0, 1fr) !important
    }

    body.s3-mobile-page-shell .s3-app .s3-member-hero {
        grid-row: 1 !important
    }

    body.s3-mobile-page-shell .s3-app .s3-directory-toolbar {
        grid-row: 2 !important
    }

    body.s3-mobile-page-shell .s3-app .s3-mobile-member-tools {
        position: relative;
        z-index: 30;
        grid-row: 3 !important
    }

    body.s3-mobile-page-shell .s3-app .s3-main {
        grid-row: 4 !important
    }

    body.s3-mobile-page-shell .s3-app .s3-filters.s3-filter-drawer,
    body.member-page-shell .s3-member-app .s3-filters.member-filter-drawer {
        z-index: 1401 !important;
        width: min(340px, 90vw) !important;
        height: 100dvh !important
    }

    body.s3-mobile-page-shell #sidebar.member-sidebar.wall-left-drawer,
    body.member-page-shell #sidebar.member-sidebar.wall-left-drawer,
    body.s3-mobile-page-shell .s3-app .s3-right.wall-right-drawer,
    body.member-page-shell .s3-member-app .s3-right.wall-right-drawer {
        z-index: 1401 !important;
        opacity: 1 !important
    }

    body.s3-mobile-page-shell .member-drawer-overlay,
    body.member-page-shell .member-drawer-overlay {
        z-index: 1400 !important
    }
}

body.member-layout .member-news-sidebar .s3-location-caret {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    fill: none;
    stroke: #61708d;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round
}

/* Chat attachment pickers remain functional but must never enter page layout. */
body.member-layout input[type="file"] {
    display: none !important;
    position: fixed !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important
}

body.member-layout .uploader:has(> input[type="file"]) {
    display: none !important;
    visibility: hidden !important;
    position: fixed !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important
}

/* Keep the mobile sort dropdown above the following search/filter row. */
@media(max-width:768px) {
    body.s3-mobile-page-shell .s3-app .s3-directory-toolbar {
        position: relative;
        z-index: 90 !important;
        overflow: visible !important
    }

    body.s3-mobile-page-shell .s3-directory-toolbar .s3-sort-wrap {
        position: relative;
        z-index: 91
    }

    body.s3-mobile-page-shell .s3-directory-toolbar .s3-sort-menu {
        z-index: 100 !important;
        top: calc(100% + 6px);
        left: 0;
        right: auto;
        width: 156px;
        min-width: 156px;
        max-width: calc(100vw - 24px);
        background: #fff;
        box-shadow: 0 12px 28px rgba(20, 37, 68, .18)
    }

    body.s3-mobile-page-shell .s3-app .s3-mobile-member-tools {
        z-index: 30
    }
}

/* Collapsing must override a section previously expanded by Show more. */
body.member-layout .member-news-sidebar .s3-filter-section.is-collapsed > *:not(.s3-filter-toggle) {
    display: none !important
}

/* Keep member directory cards visually aligned with the Groups directory cards. */
body.member-page-shell .s3-app .s3-member-grid:not(.is-list) {
    align-items: stretch;
    gap: 10px
}

body.member-page-shell .s3-app .s3-member-grid:not(.is-list) .s3-member-card {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 238px !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #e0e6ef !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(27, 46, 79, .05) !important;
    overflow: visible;
    text-align: left !important
}

body.member-page-shell .s3-app .s3-member-grid:not(.is-list) .s3-member-top {
    display: grid !important;
    grid-template-columns: 68px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 0 13px !important
}

body.member-page-shell .s3-app .s3-member-grid:not(.is-list) .s3-avatar {
    width: 68px;
    height: 68px
}

body.member-page-shell .s3-app .s3-member-grid:not(.is-list) .s3-member-name h3 {
    margin: 0 0 5px !important;
    color: #111a36 !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important
}

body.member-page-shell .s3-app .s3-member-grid:not(.is-list) .s3-member-display-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

body.member-page-shell .s3-app .s3-member-grid:not(.is-list) .s3-member-name p {
    margin: 0;
    color: #34445f;
    font-size: 10px;
    line-height: 1.45
}

body.member-page-shell .s3-app .s3-member-grid:not(.is-list) .s3-member-details {
    grid-column: 1 / -1;
    min-width: 0;
    min-height: 80px;
    margin: 14px 0 10px;
    color: #3d4d68;
    overflow-wrap: anywhere
}

body.member-page-shell .s3-app .s3-member-grid:not(.is-list) .s3-member-details small {
    display: block;
    margin: 0 0 5px;
    color: #3d4d68;
    font-size: 11px;
    line-height: 1.55
}

body.member-page-shell .s3-app .s3-member-grid:not(.is-list) .s3-tags {
    min-height: 26px;
    margin: 6px 0 0;
    gap: 6px
}

body.member-page-shell .s3-app .s3-member-grid:not(.is-list) .s3-tag {
    width: auto !important;
    padding: 4px 7px;
    display: inline-block !important;
    border-radius: 4px;
    background: #eee8ff;
    color: #5632aa;
    font-size: 9px;
    line-height: 1.2;
    white-space: nowrap
}

body.member-page-shell .s3-app .s3-member-grid:not(.is-list) .s3-looking {
    min-height: 0;
    margin: auto 0 0;
    padding: 8px 0;
    color: #7a869a;
    font-size: 9px;
    line-height: 1.55
}

body.member-page-shell .s3-app .s3-member-grid:not(.is-list) .s3-looking-values {
    color: #075edc
}

body.member-page-shell .s3-app .s3-member-grid:not(.is-list) .s3-member-actions {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center
}

body.member-page-shell .s3-app .s3-member-grid:not(.is-list) .s3-message-btn {
    width: 100%;
    height: 32px;
    margin: 0;
    border: 1px solid #b9c9e1;
    border-radius: 5px;
    background: #fff;
    color: #075edc;
    font-size: 10px;
    font-weight: 600
}

body.member-page-shell .s3-app .s3-member-grid:not(.is-list) .s3-message-btn:hover:not(:disabled) {
    border-color: #075edc;
    background: #f6f9ff
}

body.member-page-shell .s3-app .s3-member-grid:not(.is-list) .s3-message-btn:disabled {
    cursor: not-allowed;
    opacity: .55
}

@media(min-width:769px) {
    body.member-page-shell .s3-app .s3-member-grid.is-list .s3-member-details {
        grid-column: 2;
        margin-top: -6px
    }
}

/* Workspace palette for member directory accents; preserve button styling. */
body.member-page-shell {
    --s3-blue: #1868a0;
    --is2-blue: #1868a0;
}

body.member-page-shell .s3-app .s3-looking-values,
body.member-page-shell .s3-app .s3-profile-link,
body.member-page-shell .s3-app .s3-event-copy > span,
body.member-page-shell .s3-app .s3-tag {
    color: var(--s3-blue);
}

body.member-page-shell .s3-app .s3-tag,
body.member-page-shell .s3-app .s3-tag:nth-child(n),
body.member-page-shell .s3-app .s3-member-grid:not(.is-list) .s3-tag {
    background: #e7f2f8;
    color: var(--s3-blue);
}

body.member-page-shell .s3-app .s3-member-grid:not(.is-list) .s3-looking-values {
    color: var(--s3-blue);
}

body.member-page-shell .s3-app .s3-title-icon,
body.member-page-shell .s3-app .s3-date,
body.member-page-shell .s3-app .s3-rank {
    background: #e7f2f8;
    color: var(--s3-blue);
}

body.member-page-shell .s3-app .s3-avatar {
    background: linear-gradient(145deg, #83b5d1, #125577);
}

body.member-page-shell .s3-app .s3-person-profile-link:hover,
body.member-page-shell .s3-app .s3-person-profile-link:focus-visible,
body.member-page-shell .s3-app .s3-profile-dropdown a:hover {
    background: #edf6fb;
}

body.member-page-shell .s3-app .s3-member-profile-hit:focus-visible {
    box-shadow: 0 0 0 3px rgba(24, 104, 160, .14);
}

/* Text controls and view toggles follow Workspace; action gradients stay shared. */
body.member-page-shell .s3-app .s3-more {
    color: var(--s3-blue);
}

body.member-page-shell .s3-app .s3-view-btn.active {
    color: var(--s3-blue);
    border-color: var(--s3-blue);
    background: #e7f2f8;
}

/* Workspace blue accents for the News directory. */
body.news-page-shell {
    --s3-blue: #1868a0;
    --is2-blue: #1868a0;
}

body.news-page-shell .s3-title-icon,
body.news-page-shell .s3-view-btn.active,
body.news-page-shell .s3-date,
body.news-page-shell .s3-event-side-date,
body.news-page-shell .s3-news-icon-btn.is-saved,
body.news-page-shell .s3-news-rank {
    background: #e7f2f8;
}

body.news-page-shell .s3-event-copy > span {
    color: var(--s3-blue);
}

body.news-page-shell .s3-scroll-top {
    box-shadow: 0 5px 16px rgba(24, 104, 160, .32);
}

body.news-page-shell .s3-scroll-top:hover {
    background: #125577;
}
