/* Responsive structure r7 — active NoImages_style — 2026-07-20 */
:root {
    --site-blue: #06254f;
    --site-blue-light: #0879df;
    --site-pink: #df3e6b;
    --site-bg: #fbfbf7;
    --site-gap: 16px;
    --site-radius: 4px;
}

html {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow-x: clip;
    background: var(--site-bg);
}

img, video, canvas, iframe, object, embed {
    max-width: 100%;
    height: auto;
}

input, select, textarea, button {
    min-width: 0;
    max-width: 100%;
}

a, p, li, td, th, dd {
    overflow-wrap: anywhere;
}

/* The page shell is a real grid. RTL is restored inside content regions. */
.container,
.container.layout-both,
.container.layout-right,
.container.layout-left,
.container.layout-full {
    width: min(100%, 1600px);
    min-width: 0;
    max-width: 1600px;
    margin-inline: auto;
    display: grid;
    align-items: start;
    column-gap: var(--site-gap);
    direction: ltr;
}

.container > * {
    min-width: 0;
}

.container.layout-both {
    grid-template-columns: 250px minmax(0, 1fr) 250px;
    grid-template-areas:
        "header header header"
        "left content right"
        "footer2 footer2 footer2"
        "footer footer footer";
}

.container.layout-right {
    grid-template-columns: minmax(0, 1fr) 280px;
    grid-template-areas:
        "header header"
        "content right"
        "footer2 footer2"
        "footer footer";
}

.container.layout-left {
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-areas:
        "header header"
        "left content"
        "footer2 footer2"
        "footer footer";
}

.container.layout-full {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "header"
        "content"
        "footer2"
        "footer";
}

#header {
    grid-area: header;
    width: 100%;
    min-width: 0;
    height: auto;
    overflow: hidden;
    direction: rtl;
    background: #dff2ff;
}

#contentwrapper {
    grid-area: content;
    float: none;
    width: auto;
    min-width: 0;
    direction: rtl;
}

#leftcolumn {
    grid-area: left;
}

#rightcolumn {
    grid-area: right;
}

#leftcolumn,
#rightcolumn {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    direction: rtl;
    text-align: right;
}

.footerdiv2 {
    grid-area: footer2;
}

.footerdiv {
    grid-area: footer;
}

.footerdiv,
.footerdiv2 {
    width: 100%;
    direction: rtl;
}

#contentcolumn,
#contentcolumnleft,
#contentcolumnright,
#contentcolumnleftright {
    width: 100%;
    min-width: 0;
    margin: 28px 0 0;
}

/* Navigation remains usable by touch and never increases page width. */
#header .h-first,
.h-fTXT,
#cssmenu {
    width: 100%;
    height: 60px;
}

#header .h-first,
#cssmenu {
    background: var(--site-blue);
}

.h-fTXT {
    padding: 0;
    overflow: hidden;
}

#cssmenu {
    border-bottom: 4px solid var(--site-pink);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

#cssmenu::-webkit-scrollbar {
    display: none;
}

#cssmenu > ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    width: max-content;
    min-width: 100%;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    direction: rtl;
}

#cssmenu ul li {
    float: none;
    flex: 0 0 auto;
}

#cssmenu a {
    display: block;
    min-height: 56px;
    padding: 0 24px;
    background: var(--site-blue);
    color: #fff;
    font-size: clamp(13px, 1vw, 17px);
    line-height: 56px;
    white-space: nowrap;
}

#cssmenu ul li:hover > a,
#cssmenu ul li.active > a,
#cssmenu a:focus-visible {
    background: #0a3268;
    color: #fff;
    outline: 2px solid #fff;
    outline-offset: -3px;
}

#header .h1 {
    width: 100%;
    height: auto;
    line-height: 0;
    overflow: hidden;
    background: #dff2ff;
}

#header .h1 img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1600 / 288;
    object-fit: contain;
}

#header .HeadTXTTile {
    display: none;
}

/* Blocks and content frames are fluid. */
.BlocksCont,
.blk1-head_outer, .blk1-body_outer, .blk1-footer,
.blk2-head_outer, .blk2-body_outer, .blk2-footer,
.blk3-head_outer, .blk3-body_outer, .blk3-footer,
.blk4-head_outer, .blk4-body_outer, .blk4-footer,
.cent, .centbody, .centdown {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.BlocksCont {
    padding: 20px 0;
}

.blk1-head_in, .blk2-head_in, .blk3-head_in, .blk4-head_in {
    padding-inline: 12px;
    text-align: center;
}

.blk1-body_in, .blk2-body_in, .blk3-body_in, .blk4-body_in,
.centervalue {
    min-width: 0;
    max-width: 100%;
}

.cent {
    height: auto;
    min-height: 62px;
}

.centhead {
    padding: 18px clamp(16px, 3vw, 40px);
    font-size: clamp(17px, 1.5vw, 23px);
}

.centervalue {
    padding-inline: clamp(8px, 2vw, 20px);
}

.block-plain {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

#contentwrapper table,
#leftcolumn table,
#rightcolumn table {
    max-width: 100%;
}

.sidebar-member-table {
    width: 100% !important;
    table-layout: auto;
}

.sidebar-member-list {
    display: grid;
    gap: 8px;
    width: 100%;
}

.sidebar-member-card {
    min-width: 0;
    padding: 10px;
    border: 1px solid #d6e0ea;
    border-radius: 5px;
    background: #fff;
}

.sidebar-member-card__head,
.sidebar-member-card__meta,
.sidebar-member-card__media {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.sidebar-member-card__head a {
    min-width: 0;
    font-weight: 700;
}

.sidebar-member-card__meta {
    justify-content: space-between;
    margin-top: 8px;
    color: #41566f;
}

.sidebar-member-card__photo img {
    display: block;
    width: 88px;
    height: 88px;
    margin: 0 auto 8px;
    border-radius: 6px;
    object-fit: cover;
}

.sidebar-member-card__media {
    justify-content: center;
}

.sidebar-member-card__vip {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.sidebar-member-card p {
    margin: 8px 0 0;
    line-height: 1.7;
}

/* Member templates are now div/article grids, not layout tables. */
.members-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    min-width: 0;
    direction: rtl;
}

.members-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border-radius: var(--site-radius);
    background: #fff;
}

.member-card .blk5-head_outer,
.member-card .blk5-head_outer2,
.member-card .blk5-head_outerBorder,
.member-card .blk5-head_outerBorder2,
.member-card .blk5-body_outer,
.member-card .blk5-body_outer2,
.member-card .blk5-footer,
.member-card .blk5-footerM {
    width: 100%;
    min-width: 0;
}

.member-card .blk5-head_outer,
.member-card .blk5-head_outer2 {
    height: auto;
    min-height: 42px;
}

.member-card .blk5-head_in {
    min-width: 0;
    padding: 9px 10px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-card .blk5-body_outer,
.member-card .blk5-body_outer2 {
    flex: 1 1 auto;
}

.member-card .blk5-body_in {
    min-height: 112px;
    height: auto;
    padding: 12px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.8;
}

.member-card .BlocksUserImgDiv {
    width: 88px;
    height: 88px;
    max-width: 38%;
    margin: 0 0 8px 12px;
    background-position: center;
    background-size: cover;
}

/* Search results use semantic cards in r7. */
.search-results {
    display: grid;
    gap: 16px;
    width: 100%;
}

.search-member-card {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    grid-template-areas:
        "identity facts"
        "actions actions";
    gap: 16px;
    padding: 16px;
    border: 1px solid #b7c9df;
    border-radius: 8px;
    background: #fff;
}

.search-member-identity {
    grid-area: identity;
    text-align: center;
}

.search-member-identity img {
    display: block;
    width: min(140px, 100%);
    height: auto;
    margin: 0 auto 10px;
    border-radius: 8px;
}

.search-member-identity h3 {
    margin: 4px 0;
    font-size: 18px;
}

.search-member-facts {
    grid-area: facts;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.search-member-facts > div {
    min-width: 0;
    padding: 10px;
    border-radius: 5px;
    background: #f5f8fc;
}

.search-member-facts dt {
    margin-bottom: 4px;
    color: #41566f;
    font-weight: 700;
}

.search-member-facts dd {
    margin: 0;
}

.search-member-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-member-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #bfd0e3;
    border-radius: 5px;
    background: #f7fbff;
}

.search-member-actions img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.search-sort-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.search-sort-links a {
    flex: 1 1 260px;
    min-height: 44px;
    padding: 12px;
    border: 1px solid #bfd0e3;
    border-radius: 5px;
    text-align: center;
    background: #fff;
}

/* Remaining legacy forms and data tables are classified by responsive_r7.js. */
.responsive-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

table.responsive-data-table,
table.responsive-form-table {
    width: 100% !important;
    max-width: 100%;
}

table.responsive-data-table--wide {
    min-width: 640px;
}

table.responsive-form-table input:not([type="checkbox"]):not([type="radio"]):not([type="image"]),
table.responsive-form-table select,
table.responsive-form-table textarea {
    max-width: 100% !important;
}

.footerdiv {
    height: auto;
    min-height: 60px;
    padding: 12px;
}

@media screen and (max-width: 1400px) {
    .container,
    .container.layout-both,
    .container.layout-right,
    .container.layout-left,
    .container.layout-full {
        width: 100%;
        padding-inline: 12px;
    }

    #header {
        margin-inline: -12px;
        width: calc(100% + 24px);
    }
}

@media screen and (max-width: 1180px) {
    .container.layout-both {
        grid-template-columns: minmax(0, 1fr) 250px;
        grid-template-areas:
            "header header"
            "content right"
            "left left"
            "footer2 footer2"
            "footer footer";
    }

    .container.layout-both #leftcolumn > div {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .members-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 1024px) {
    .container,
    .container.layout-both,
    .container.layout-right,
    .container.layout-left,
    .container.layout-full {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        padding: 0;
        gap: 0;
    }

    #header {
        order: 1;
        width: 100%;
        margin: 0;
    }

    #contentwrapper {
        order: 2;
        width: 100%;
        padding-right: max(12px, env(safe-area-inset-right));
        padding-left: max(12px, env(safe-area-inset-left));
    }

    #rightcolumn {
        order: 3;
    }

    #leftcolumn {
        order: 4;
    }

    #rightcolumn,
    #leftcolumn {
        width: 100%;
        padding-right: max(12px, env(safe-area-inset-right));
        padding-left: max(12px, env(safe-area-inset-left));
    }

    .container.layout-both #leftcolumn > div {
        display: block;
    }

    .footerdiv2 { order: 5; }
    .footerdiv { order: 6; }

    #contentcolumn,
    #contentcolumnleft,
    #contentcolumnright,
    #contentcolumnleftright {
        margin-top: 20px;
    }

    #cssmenu > ul {
        justify-content: flex-start;
        min-width: max-content;
    }

    #cssmenu a {
        padding-inline: 18px;
    }

    .BlocksCont {
        padding: 12px 0;
    }

    table.responsive-form-table,
    table.responsive-form-table > tbody,
    table.responsive-form-table > tbody > tr {
        display: block;
        width: 100% !important;
    }

    table.responsive-form-table > tbody > tr {
        margin-bottom: 10px;
        border: 1px solid #d6e0ea;
        border-radius: 5px;
        overflow: hidden;
    }

    table.responsive-form-table > tbody > tr > td,
    table.responsive-form-table > tbody > tr > th {
        display: block;
        width: 100% !important;
        height: auto !important;
        padding: 9px !important;
        border-width: 0 0 1px !important;
    }

    table.responsive-form-table > tbody > tr > td:last-child,
    table.responsive-form-table > tbody > tr > th:last-child {
        border-bottom-width: 0 !important;
    }

    table.responsive-form-table input:not([type="checkbox"]):not([type="radio"]):not([type="image"]),
    table.responsive-form-table select,
    table.responsive-form-table textarea {
        width: 100% !important;
        min-height: 42px;
        font-size: 16px;
    }

    table.responsive-form-table textarea {
        min-height: 120px;
    }

    .search-member-card {
        grid-template-columns: 140px minmax(0, 1fr);
    }
}

@media screen and (max-width: 680px) {
    #header .h-first,
    .h-fTXT,
    #cssmenu {
        height: 54px;
    }

    #cssmenu a {
        min-height: 50px;
        padding-inline: 15px;
        font-size: 13px;
        line-height: 50px;
    }

    .members-grid,
    .members-grid-2,
    .members-grid-3 {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .member-card .blk5-body_in {
        min-height: 104px;
    }

    .search-member-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "identity"
            "facts"
            "actions";
        padding: 12px;
    }

    .search-member-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .search-member-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-member-actions a {
        justify-content: center;
        text-align: center;
    }

    .centervalue {
        padding: 10px 6px 20px;
    }

    .footerdiv > div {
        float: none !important;
        text-align: center;
    }
}

@media screen and (max-width: 420px) {
    #contentwrapper,
    #rightcolumn,
    #leftcolumn {
        padding-right: max(8px, env(safe-area-inset-right));
        padding-left: max(8px, env(safe-area-inset-left));
    }

    .member-card .BlocksUserImgDiv {
        width: 80px;
        height: 80px;
    }

    .search-member-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

@supports not (overflow: clip) {
    body {
        overflow-x: hidden;
    }
}
