/* [parichay] shortcode — sangh member directory */

.dri-parichay {
    margin: 0;
}

/* ---------- Hero ---------- */
.dri-parichay__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px 36px;
    align-items: center;
    border-radius: 22px;
    padding: 30px 34px;
    margin-bottom: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 0% 0%, rgba(var(--brand-rgb), .35) 0%, rgba(var(--brand-rgb), 0) 45%),
        radial-gradient(circle at 100% 100%, rgba(var(--brand-rgb), .25) 0%, rgba(var(--brand-rgb), 0) 45%),
        var(--brand-plum);
    box-shadow: 0 22px 50px rgba(44, 26, 14, .22);
}

.dri-parichay__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(var(--brand-rgb), .25);
    color: var(--brand-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 5px 14px;
    margin-bottom: 12px;
}

.dri-cms__content .dri-parichay__title,
.dri-parichay__title {
    color: #fff;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 8px;
}

.dri-cms__content .dri-parichay__subtitle,
.dri-parichay__subtitle {
    color: rgba(255, 255, 255, .75);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    max-width: 620px;
}

.dri-cms__content .dri-parichay__stats,
.dri-parichay__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dri-cms__content .dri-parichay__stats li,
.dri-parichay__stats li {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    padding: 10px 16px;
    margin: 0;
}

.dri-parichay__stats strong {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.dri-parichay__stats span {
    color: rgba(255, 255, 255, .68);
    font-size: 13px;
    font-weight: 600;
}

/* ---------- Toolbar ---------- */
.dri-parichay__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    margin-bottom: 26px;
}

.dri-parichay__tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: thin;
}

.dri-parichay__tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    padding: 8px 16px;
    cursor: pointer;
    transition: all .2s ease;
}

.dri-parichay__tab span {
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-hover);
    font-size: 12px;
    font-weight: 700;
    padding: 1px 8px;
}

.dri-parichay__tab:hover {
    border-color: var(--brand-action);
    color: var(--brand-action);
}

.dri-parichay__tab.is-active {
    background: var(--brand-action);
    border-color: var(--brand-action);
    color: #fff;
    box-shadow: 0 8px 18px rgba(var(--brand-rgb), .3);
}

.dri-parichay__tab.is-active span {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.dri-parichay__search {
    position: relative;
    flex: 0 1 320px;
    margin: 0;
}

.dri-parichay__search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-muted);
    font-size: 13px;
    pointer-events: none;
}

.dri-parichay__search input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    background: var(--brand-surface);
    color: var(--brand-ink);
    font-size: 14px;
    padding: 0 16px 0 40px;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.dri-parichay__search input:focus {
    background: #fff;
    border-color: var(--brand-action);
    box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .15);
}

/* ---------- Cards ---------- */
.dri-parichay__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.dri-cms__content a.dri-parichay__card,
.dri-parichay__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--brand-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(44, 26, 14, .06);
    color: var(--brand-ink);
    text-align: center;
    text-decoration: none;
    padding: 26px 20px 20px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.dri-parichay__card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 92px;
    background:
        radial-gradient(circle at 50% 120%, rgba(var(--brand-rgb), .28) 0%, rgba(var(--brand-rgb), 0) 60%),
        linear-gradient(180deg, var(--brand-surface) 0%, #fff 100%);
}

.dri-parichay__card.is-aryika::before {
    background:
        radial-gradient(circle at 50% 120%, rgba(170, 120, 60, .22) 0%, rgba(170, 120, 60, 0) 60%),
        linear-gradient(180deg, #fbf6ee 0%, #fff 100%);
}

.dri-parichay__card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--brand-rgb), .55);
    box-shadow: 0 20px 40px rgba(44, 26, 14, .14);
}

.dri-parichay__ribbon {
    position: absolute;
    top: 16px;
    right: -38px;
    z-index: 2;
    width: 140px;
    transform: rotate(45deg);
    background: var(--brand-plum);
    color: var(--brand-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 4px 0;
    text-align: center;
}

.dri-parichay__avatar {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(from 180deg, var(--brand-light), var(--brand-action), #f7dfae, var(--brand-light));
    box-shadow: 0 10px 24px rgba(var(--brand-rgb), .35);
    margin-bottom: 14px;
}

.dri-parichay__avatar img,
.dri-parichay__initial {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
}

.dri-parichay__initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fff7ea 0%, #f3dcb5 100%);
    color: var(--brand-hover);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
}

.dri-parichay__card.is-samadhi .dri-parichay__avatar {
    background: conic-gradient(from 180deg, #d9c6a8, #8a6a45, #e8dcc6, #d9c6a8);
}

.dri-parichay__honorific {
    position: relative;
    color: var(--brand-action);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: 2px;
}

.dri-parichay__name {
    position: relative;
    color: var(--brand-plum);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 14px;
}

.dri-cms__content .dri-parichay__facts,
.dri-parichay__facts {
    display: grid;
    gap: 8px;
    width: 100%;
    list-style: none;
    margin: 0 0 16px;
    padding: 14px 0 0;
    border-top: 1px dashed var(--brand-border);
    text-align: left;
}

.dri-cms__content .dri-parichay__facts li,
.dri-parichay__facts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: var(--brand-ink);
    font-size: 14px;
    line-height: 1.5;
}

.dri-parichay__facts i {
    flex: 0 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand-action);
    font-size: 11px;
    margin-top: 1px;
}

.dri-parichay__facts small {
    display: block;
    color: var(--brand-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
}

.dri-parichay__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-hover);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    transition: background .2s ease, color .2s ease;
}

.dri-parichay__more i {
    transition: transform .2s ease;
}

.dri-parichay__card:hover .dri-parichay__more {
    background: var(--brand-action);
    color: #fff;
}

.dri-parichay__card:hover .dri-parichay__more i {
    transform: translateX(3px);
}

.dri-parichay__card[hidden],
.dri-parichay__none[hidden] {
    display: none !important;
}

.dri-parichay__none,
.dri-parichay__empty {
    border: 1px dashed var(--brand-border);
    border-radius: 16px;
    background: var(--brand-surface);
    color: var(--brand-muted);
    padding: 26px 20px;
    text-align: center;
}

/* ---------- Detail page (front.parichay.show) ---------- */
.dri-pd {
    background: #fff;
    padding: 44px 0 96px;
}

.dri-pd__container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 16px;
}

.dri-pd__hero {
    position: relative;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    overflow: hidden;
    border-radius: 26px;
    padding: 40px 44px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 30%, rgba(var(--brand-rgb), .4) 0%, rgba(var(--brand-rgb), 0) 45%),
        radial-gradient(circle at 100% 100%, rgba(var(--brand-rgb), .22) 0%, rgba(var(--brand-rgb), 0) 45%),
        var(--brand-plum);
    box-shadow: 0 26px 60px rgba(44, 26, 14, .25);
}

.dri-pd__hero.is-samadhi {
    background:
        radial-gradient(circle at 12% 30%, rgba(214, 190, 150, .3) 0%, rgba(214, 190, 150, 0) 45%),
        radial-gradient(circle at 100% 100%, rgba(var(--brand-rgb), .18) 0%, rgba(var(--brand-rgb), 0) 45%),
        #2a2018;
}

.dri-pd__portrait {
    display: flex;
    justify-content: center;
}

.dri-pd__avatar.dri-parichay__avatar {
    width: 210px;
    height: 210px;
    padding: 6px;
    margin: 0;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, .05), 0 18px 40px rgba(0, 0, 0, .35);
}

.dri-pd__avatar .dri-parichay__initial {
    font-size: 82px;
    border-width: 5px;
}

.dri-pd__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.dri-pd__chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
    font-weight: 700;
    padding: 5px 13px;
}

.dri-pd__chip.is-brand {
    background: rgba(var(--brand-rgb), .3);
    border-color: transparent;
    color: var(--brand-light);
}

.dri-pd__chip.is-dark {
    background: rgba(255, 255, 255, .1);
    border-color: transparent;
    color: #eadbc3;
}

.dri-pd__honorific {
    display: block;
    color: var(--brand-light);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 4px;
}

.dri-pd__name {
    color: #fff;
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 22px;
}

.dri-pd__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
}

.dri-pd__facts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    padding: 12px 14px;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
}

.dri-pd__facts i {
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(var(--brand-rgb), .3);
    color: var(--brand-light);
    font-size: 13px;
}

.dri-pd__facts small {
    display: block;
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
    font-weight: 700;
}

.dri-pd__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dri-pd__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    transition: all .2s ease;
}

.dri-pd__btn:hover {
    background: #fff;
    color: var(--brand-plum);
}

.dri-pd__btn.is-primary {
    background: var(--brand-action);
    border-color: var(--brand-action);
    box-shadow: 0 10px 22px rgba(var(--brand-rgb), .35);
}

.dri-pd__btn.is-primary:hover {
    background: #fff;
    border-color: #fff;
    color: var(--brand-plum);
}

.dri-pd__layout {
    margin-top: 36px;
}

.dri-pd__card {
    border: 1px solid var(--brand-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(var(--brand-rgb), .10);
    padding: 30px 34px;
    scroll-margin-top: 110px;
}

.dri-pd__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--brand-plum);
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 18px;
}

.dri-pd__heading i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-action);
    font-size: 16px;
}

.dri-pd__details {
    margin: 0;
}

.dri-pd__row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid #f3e8d8;
}

.dri-pd__row:last-child {
    border-bottom: 0;
}

.dri-pd__row:nth-child(odd) {
    background: linear-gradient(90deg, #fffaf2 0%, rgba(255, 250, 242, 0) 100%);
}

.dri-pd__row dt {
    color: var(--brand-hover);
    font-size: 15px;
    font-weight: 700;
    padding-left: 12px;
}

.dri-pd__row dd {
    color: var(--brand-ink);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.dri-pd__special {
    display: flex;
    gap: 16px;
    border: 1px solid #f0d9b4;
    border-left: 4px solid var(--brand-action);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff8ec 0%, #fdf0dc 100%);
    padding: 20px 24px;
    margin-top: 24px;
}

.dri-pd__special > i {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-action);
    color: #fff;
}

.dri-pd__special strong {
    display: block;
    color: var(--brand-plum);
    font-size: 17px;
    margin-bottom: 4px;
}

.dri-pd__special p {
    color: var(--brand-ink);
    font-size: 16px;
    line-height: 1.75;
    margin: 0;
}

.dri-pd__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.dri-pd__nav a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--brand-border);
    border-radius: 16px;
    background: #fff;
    color: var(--brand-plum);
    font-weight: 700;
    padding: 16px 20px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.dri-pd__nav a:hover {
    border-color: var(--brand-action);
    box-shadow: 0 12px 26px rgba(44, 26, 14, .1);
    transform: translateY(-2px);
}

.dri-pd__nav small {
    color: var(--brand-action);
    font-size: 13px;
}

.dri-pd__nav .is-next {
    grid-column: 2;
    text-align: right;
}

.dri-pd__related {
    margin-top: 56px;
}

.dri-pd__related-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.dri-pd__related-head h2 {
    color: var(--brand-plum);
    font-size: 26px;
    font-weight: 800;
    margin: 0;
}

.dri-pd__related-head a {
    color: var(--brand-action);
    font-weight: 700;
    white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .dri-parichay__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .dri-pd__hero {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 34px 26px;
    }

    .dri-pd__chips,
    .dri-pd__actions {
        justify-content: center;
    }

    .dri-pd__facts {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .dri-pd {
        padding: 28px 0 70px;
    }

    .dri-pd__hero {
        border-radius: 20px;
        padding: 28px 18px;
    }

    .dri-pd__avatar.dri-parichay__avatar {
        width: 160px;
        height: 160px;
    }

    .dri-pd__avatar .dri-parichay__initial {
        font-size: 62px;
    }

    .dri-pd__facts {
        grid-template-columns: 1fr;
    }

    .dri-pd__btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .dri-pd__card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .dri-pd__row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .dri-pd__row dt {
        padding-left: 0;
        font-size: 13px;
    }

    .dri-pd__nav {
        grid-template-columns: 1fr;
    }

    .dri-pd__nav .is-next {
        grid-column: auto;
    }
}

@media (max-width: 991px) {
    .dri-parichay__hero {
        grid-template-columns: 1fr;
    }

    .dri-cms__content .dri-parichay__stats,
    .dri-parichay__stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .dri-parichay__hero {
        padding: 22px 18px;
        border-radius: 18px;
    }

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

    .dri-parichay__search {
        flex-basis: 100%;
    }

    .dri-parichay__tabs {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .dri-parichay__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
