/* ==========================================================================
   The members directory (Views/HamaraSamaj/Index.cshtml; Docs/website-cms-map.md, "Members, redesigned"), laid out
   like the business directory and News: one search box with the state list, the order, one list
   of member cards that line up row by row, the short pager, and a member's details in a box over the list.
   Flat: thin lines, no shadows or gradients. Builds on css/shaadi.css (.sh colours, buttons, pager, empty message);
   everything here is prefixed mb-.
   ========================================================================== */

/* ---------- search, then the list ---------- */
.mb-page { padding: 30px 0 70px; background: var(--sh-bg); }
.mb-find { display: grid; grid-template-columns: minmax(0, 1fr) 250px auto; gap: 6px; max-width: 880px; margin: 0 auto 28px; padding: 6px; border: 1px solid var(--sh-line); border-radius: 999px; background: #fff; }
.mb-find label { position: relative; display: flex; align-items: center; margin: 0; }
.mb-find-q > i { position: absolute; left: 18px; font-size: 17px; color: var(--sh-muted); pointer-events: none; }
.mb-find input { width: 100%; height: 48px; padding: 0 14px 0 46px; border: 0; border-radius: 999px; background: transparent; font-size: 15.5px; color: var(--sh-ink); }
.mb-find input:focus { outline: none; background: var(--sh-field); }
.mb-find select { width: 100%; height: 48px; padding: 0 14px; border: 0; border-left: 1px solid var(--sh-line); border-radius: 0; background-color: transparent; font-size: 14.5px; color: var(--sh-ink); cursor: pointer; }
.mb-find select:focus { outline: none; }
.mb .mb-find .sh-btn { align-self: center; }   /* the regular primary button */
.mb-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 16px; }
.mb-head-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.mb-head h2 { margin: 0; font-family: var(--primary-font); font-size: 20px; font-weight: 800; }
/* Members and Public profiles: the search, 52 px high (40 px fields in a 5 px padding and a 1 px edge), alone in the
   centre at most 760 px wide (the owner's requests of 5 Dec 2026), with breathing space before the list. */
.mb-bar { margin: 0 0 26px; }
.sh .mb-bar-clear { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--vs-btn-text); }
.sh .mb-bar-clear:hover { color: var(--vs-btn-text-hover); }
.mb-bar .mb-find { width: 100%; max-width: none; margin: 0; padding: 5px; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px; }
.mb-bar .mb-find input, .mb-bar .mb-find select { height: 40px; }
.mb-bar .mb-find select { width: auto; max-width: 230px; padding: 0 10px 0 16px; }
.mb .mb-bar .mb-find .sh-btn { height: 40px; padding: 0 24px; }
/* Members: Sort as its own control just before the search bar (search and sort stay separate, the owner's request of
   5 Dec 2026), in the same white pill: 52 px high, thin edge */
.mb-bar.is-solo.has-sort { gap: 12px; }
.mb-sortbox.sh-sort { flex: none; height: 52px; gap: 4px; padding: 0 8px 0 20px; border: 1px solid var(--sh-line); border-radius: 999px; background: #fff; font-size: 13px; color: var(--sh-muted); }
.mb-sortbox.sh-sort:focus-within { border-color: var(--vs-card-line-hover); }
.mb-sortbox.sh-sort select { height: 40px; padding: 0 10px 0 4px; border: 0; border-radius: 999px; background: transparent; font-size: 14.5px; color: var(--sh-ink); cursor: pointer; }
.mb-sortbox.sh-sort select:focus { outline: none; background: var(--sh-field); }
/* Under the search, a centred line (how many were found while searching; Sort on Members), and the dark first card
   ("Add a new profile" on Public profiles, "Join the samaj" or "Your listing" on Members) */
.mb-bar.is-solo { display: flex; justify-content: center; margin-bottom: 46px; }   /* breathing space before the list */
.mb-bar.is-solo .mb-find { width: 100%; max-width: 760px; }
.sh .mb-results { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; margin: -30px 0 34px; font-size: 14px; color: var(--sh-muted); }
/* the "Add a new profile" card in the dark slate of the title band: a lighter band, white text and the red plus */
.mb-card.pp-add-card { border-color: var(--vs-band, #2b211b); background: var(--vs-band, #2b211b); }
.mb-card.pp-add-card:hover { border-color: var(--vs-band, #2b211b); background: var(--vs-band-hover, #382b23); }
.pp-add-card .mb-card-band { background: rgba(255, 255, 255, .07); }
.mb-av.pp-add-av { border-color: var(--vs-band, #2b211b); background: var(--vs-btn-primary); color: #fff; font-size: 32px; }
.pp-add-card:hover .mb-av.pp-add-av { border-color: var(--vs-band-hover, #382b23); background: var(--vs-btn-primary-hover); }
.mb .pp-add-card .mb-card-name a, .mb .pp-add-card:hover .mb-card-name a { color: #fff; }
.pp-add-card .pp-card-meta { color: rgba(255, 255, 255, .62); }
.pp-add-card .pp-card-about { color: rgba(255, 255, 255, .85); }
.mb-card.pp-add-card .mb-view { background: transparent; color: #fff; }
.mb-card.pp-add-card:hover .mb-view { background: transparent; color: #fff; }   /* tertiary: text and an arrow only */

/* four cards a row on a computer, three on small laptops, two on tablets and phones */
.mb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

/* ---------- a member card: the same rhythm in every card ---------- */
.mb-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 0 0 16px; overflow: hidden; border: 1px solid var(--sh-line); border-radius: var(--vs-card-radius); background: #fff; text-align: center; cursor: pointer; transition: border-color .15s; }
.mb-card:hover { border-color: var(--vs-card-line-hover); }
.mb-card:has(a:focus-visible) { outline: 2px solid var(--sh-ink); outline-offset: 2px; }
.mb-card-band { align-self: stretch; height: 64px; background: var(--sh-field); }
.mb-av { position: relative; display: inline-grid; flex: none; place-items: center; width: 80px; height: 80px; margin-top: -40px; overflow: hidden; border: 3px solid #fff; border-radius: 50%; background: #f1ece5; background: color-mix(in srgb, var(--c, #868e96) 16%, #fff); color: var(--c, #6b7680); font-size: 24px; font-weight: 800; letter-spacing: .02em; }
.mb-av img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.mb-card-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2em * 1.3); margin: 4px 0 0; padding: 0 14px; font-family: var(--primary-font); font-size: 16px; font-weight: 800; line-height: 1.3; }
.mb .mb-card-name a { color: var(--sh-ink); }
.mb .mb-card-name a:focus-visible { outline: none; }
.mb .mb-card:hover .mb-card-name a { color: var(--sh-red-ink); }
.mb-card-line { display: flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; min-height: 20px; padding: 0 14px; overflow: hidden; font-size: 13px; color: var(--sh-ink-2); white-space: nowrap; }
.mb-card-line span { overflow: hidden; text-overflow: ellipsis; }
.mb-card-line i { flex: none; color: var(--sh-muted); }
.mb-faint { color: var(--sh-muted); }
.mb-view { display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: stretch; height: var(--vs-card-btn-h); margin: 8px 14px 0; border-radius: 999px; background: var(--vs-card-btn-bg); font-size: 13.5px; font-weight: 700; color: var(--vs-btn-text); transition: color .15s; }   /* tertiary: text and an arrow */
.mb-card:hover .mb-view { background: var(--vs-card-btn-bg-hover); color: var(--vs-btn-text-hover); }

/* ---------- privacy note under the list ---------- */
.mb-privacy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; max-width: 880px; margin: 34px auto 0; padding: 16px 18px; border: 1px solid var(--sh-line); border-radius: var(--vs-card-radius); background: #fff; font-size: 14px; color: var(--sh-ink-2); }
.mb-privacy > i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sh-field); font-size: 18px; color: var(--sh-ink); }
.mb-privacy > div { flex: 1 1 320px; min-width: 0; }
.mb-privacy b { color: var(--sh-ink); }

/* ---------- a member, in a box over the list ---------- */
html.mb-noscroll { overflow: hidden; }
.mb-modal { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--sh-ink); overflow: hidden; }
.mb-modal[open] { display: flex; flex-direction: column; }
.mb-modal::backdrop { background: rgba(21, 40, 51, .55); }
.mb-modal-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.mb .mb-modal-close { position: absolute; right: 14px; top: 14px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(21, 40, 51, .35); border-radius: 50%; background: #fff; color: var(--sh-ink); font-size: 17px; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.mb .mb-modal-close:hover { border-color: var(--sh-ink); background: var(--sh-ink); color: #fff; }
.mb-loading { padding: 70px 24px; text-align: center; color: var(--sh-muted); }
.mb-box { padding-bottom: 22px; }
.mb-box-band { height: 92px; background: var(--sh-field); }
.mb-box-head { display: flex; flex-direction: column; align-items: center; padding: 0 22px; text-align: center; }
.mb-av.is-big { width: 112px; height: 112px; margin-top: -56px; border-width: 4px; font-size: 34px; }
.mb-box-name { margin: 10px 0 0; font-family: var(--primary-font); font-size: 24px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.mb-box-sub { margin: 4px 0 0 !important; font-size: 14px; color: var(--sh-muted); }
.mb-facts { display: grid; gap: 0; margin: 18px 22px 0; padding: 0; list-style: none; border-top: 1px solid var(--sh-line); }
.mb-facts li { display: grid; grid-template-columns: 22px 100px minmax(0, 1fr); align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px dashed var(--sh-line); font-size: 14.5px; }
.mb-facts li:last-child { border-bottom: 0; }
.mb-facts li > i { color: var(--sh-muted); }
.mb-facts li > span { color: var(--sh-muted); }
.mb-facts b { font-weight: 700; color: var(--sh-ink); overflow-wrap: anywhere; }
.mb-box-note { display: flex; gap: 12px; margin: 16px 22px 0; padding: 14px; border-radius: var(--vs-card-inner); background: var(--sh-bg); font-size: 14px; color: var(--sh-ink-2); }
.mb-box-note > i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; font-size: 16px; color: var(--sh-red); }
.mb-box-note b { color: var(--sh-ink); }
.mb-box-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mb-box-foot { display: flex; align-items: center; gap: 8px; margin: 16px 22px 0 !important; font-size: 13.5px; color: var(--sh-muted); }

/* the home page's "Pride of the samaj": the Public profiles cards, one row of them (two rows of two on phones) */
.vs-home-pp { margin: 0; background: transparent; }
@media (min-width: 992px) and (max-width: 1199px) {
    .vs-home-pp .mb-grid > :nth-child(n + 4) { display: none; }   /* three a row here: no half-empty second row */
}

/* ---------- smaller screens ---------- */
@media (max-width: 1199px) {
    .mb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .mb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mb-bar.is-solo.has-sort { flex-wrap: wrap; }   /* tablets: Sort on its own line just above the search bar */
    .mb-bar.is-solo.has-sort .mb-find { flex-basis: 100%; }
}
@media (max-width: 767px) {
    .mb-page { padding: 18px 0 60px; }
    .mb-find { grid-template-columns: minmax(0, 1fr) auto; border-radius: 22px; }
    .mb-find-q { grid-column: 1 / -1; }
    .mb-find select { border-left: 0; border-top: 1px solid var(--sh-line); border-radius: 0 0 0 16px; }
    .mb-head h2 { font-size: 18px; }
    .mb-bar { gap: 12px 16px; margin-bottom: 18px; }
    .mb-bar.is-solo { margin-bottom: 30px; }
    .sh .mb-results { margin: -16px 0 22px; }
    .mb-bar .mb-find { grid-template-columns: minmax(0, 1fr) auto; padding: 6px; }
    .mb-bar .mb-find input, .mb-bar .mb-find select, .mb .mb-bar .mb-find .sh-btn { height: 44px; }
    .mb-bar .mb-find select { width: 100%; max-width: none; }
    /* phones: Sort on its own line above the search bar */
    .mb-bar.is-solo.has-sort { flex-direction: column; align-items: stretch; gap: 10px; }
    .mb-sortbox.sh-sort { height: 44px; justify-content: space-between; padding: 0 6px 0 18px; }
    .mb-sortbox.sh-sort select { flex: 1; height: 36px; text-align: right; }
    .mb-grid { gap: 10px; }
    .mb-card-band { height: 50px; }
    .mb-av { width: 64px; height: 64px; margin-top: -32px; font-size: 20px; }
    .mb-card-name { font-size: 14.5px; padding: 0 10px; }
    .mb-card-line { padding: 0 10px; font-size: 12px; }
    .mb-view { margin: 6px 10px 0; font-size: 12.5px; }
    .mb-modal { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; margin: 0; border-radius: 0; }
}

/* ---------- Public profiles (Views/PublicProfile): the list's cards, built on the member cards ---------- */
.mb-card .vs-badge { margin-top: 2px; }
.pp-card-about { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2em * 1.45); margin: 4px 0 0 !important; padding: 0 16px; font-size: 13px; line-height: 1.45; color: var(--sh-ink-2); }
.pp-card-meta { max-width: 100%; min-height: 1.4em; margin: 0 !important; padding: 0 14px; overflow: hidden; font-size: 12.5px; color: var(--sh-muted); text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.pp-card .mb-view { margin-top: auto; }   /* "View profile" at the foot of every card, in line across a row */
.pp-card-link { color: inherit; }
.pp-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* the name's link covers the whole card */
.pp-card .mb-av img, .mb-av.pp-head-av img, .mb-av.pp-mini-av img { object-position: center 22%; }   /* faces sit high in portrait photos */

/* ---------- A profile's own page (Views/PublicProfile/Details.cshtml; the owner's requests of 4 Dec 2026) ----------
   The title band like every page; in the white panel, like a news story: the portrait, the field (red kicker), the
   name, what they are known for, the years and place, and Share between thin lines; then the story. Beside it the
   facts, more from the same field and "Suggest a profile" (under it on phones). Flat: thin lines, no shadows. */
.pp-head { display: flex; align-items: center; gap: 26px; }
.mb-av.pp-head-av { width: 132px; height: 132px; margin: 0; border: 0; font-size: 42px; }
.pp-head-text { min-width: 0; }
.sh .pp-kicker { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--sh-red-ink); }
.sh .pp-kicker:hover { text-decoration: underline; }
.sh .pp-name { margin: 6px 0 0; font-family: var(--primary-font); font-size: 36px; font-weight: 800; line-height: 1.25; color: var(--sh-ink); overflow-wrap: anywhere; }
.sh .pp-known { margin: 8px 0 0; font-size: 17px; line-height: 1.5; color: var(--sh-ink-2); }
.pp-byline { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-size: 14px; color: var(--sh-muted); }
.pp-byline span { display: inline-flex; align-items: center; gap: 7px; }
.pp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 28px; padding: 14px 0; border-top: 1px solid var(--sh-line); border-bottom: 1px solid var(--sh-line); }
.pp-share .bi-whatsapp { color: #1fa855; }
.pp-share .pp-back { margin-left: auto; padding: 0 4px; }

.pp-page { padding: 34px 0 80px; background: var(--sh-bg); }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto auto auto 1fr;
           grid-template-areas: "main glance" "main more" "main suggest" "main ."; gap: 20px 30px; align-items: start; }
.pp-main { grid-area: main; min-width: 0; padding: 36px 44px 32px; border: 1px solid var(--sh-line); border-radius: var(--vs-card-radius); background: #fff; }
.pp-glance { grid-area: glance; }
.pp-more { grid-area: more; }
.pp-suggest { grid-area: suggest; }
.sh .pp-sec-title { margin: 0 0 16px; font-family: var(--primary-font); font-size: 22px; font-weight: 800; line-height: 1.3; }
.sh .pp-sec-gap { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--sh-line); }
.sh .pp-story { max-width: 72ch; font-size: 17px; line-height: 1.8; color: #2b3a44; }
.sh .pp-story p { margin: 0 0 1.1em; }
.sh .pp-story p:last-child { margin-bottom: 0; }
.pp-src { margin: 0; padding-left: 24px; }
.pp-src li { margin: 0 0 12px; padding-left: 4px; color: var(--sh-muted); }
.pp-src li:last-child { margin-bottom: 0; }
.pp-src li::marker { font-weight: 700; }
.sh .pp-src a { font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--sh-ink); }
.sh .pp-src a:hover { color: var(--vs-btn-text); }
.pp-src a i { margin-left: 6px; font-size: 12px; color: var(--sh-muted); }
.pp-src-host { display: block; font-size: 13px; color: var(--sh-muted); }
.pp-notes { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--sh-line); }
.sh .pp-notes p { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: var(--sh-muted); }
.sh .pp-notes p:last-child { margin-bottom: 0; }
.pp-notes i { flex: none; margin-top: 2px; }
.sh .pp-notes a { color: var(--sh-ink); text-decoration: underline; text-underline-offset: 2px; }
.pp-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.sh .pp-step { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border: 1px solid var(--sh-line); border-radius: var(--vs-card-inner); color: var(--sh-ink); transition: border-color .15s; }
.sh .pp-step:hover { border-color: var(--vs-card-line-hover); color: var(--sh-ink); }
.pp-step.is-next { justify-content: flex-end; text-align: right; }
.pp-step-text { min-width: 0; }
.pp-step small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--sh-muted); }
.pp-step.is-next small { justify-content: flex-end; }
.pp-step b { display: block; overflow: hidden; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.mb-av.pp-mini-av { width: 44px; height: 44px; margin: 0; border: 0; font-size: 15px; }

.pp-panel { padding: 22px 22px 20px; border: 1px solid var(--sh-line); border-radius: var(--vs-card-radius); background: #fff; }
.sh .pp-panel-title { margin: 0 0 14px; font-family: var(--primary-font); font-size: 12.5px; font-weight: 800; line-height: 1.4; letter-spacing: .07em; text-transform: uppercase; color: var(--sh-muted); }
.pp-glance dl { margin: 0; }
.pp-glance dl > div { padding: 10px 0; border-top: 1px solid var(--sh-line); }
.pp-glance dl > div:first-child { padding-top: 0; border-top: 0; }
.pp-glance dl > div:last-child { padding-bottom: 0; }
.pp-glance dt { font-size: 12.5px; font-weight: 700; color: var(--sh-muted); }
.pp-glance dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--sh-ink); }
.sh .pp-glance dd a { color: var(--vs-btn-text); }
.sh .pp-glance dd a:hover { color: var(--vs-btn-text-hover); }
.pp-more ul { margin: 0; padding: 0; list-style: none; }
.pp-more li + li { border-top: 1px solid var(--sh-line); }
.sh .pp-more-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; color: var(--sh-ink); }
.pp-more li:first-child .pp-more-item { padding-top: 0; }
.pp-more-text { min-width: 0; }
.pp-more-item b { display: block; font-size: 14.5px; line-height: 1.35; transition: color .15s; }
.sh .pp-more-item:hover b { color: var(--vs-btn-text); }
.pp-more-item small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--sh-muted); }
.pp-more .pp-more-all { margin-top: 12px; padding: 0; }
.sh .pp-suggest p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--sh-ink-2); }


/* "Add a public profile" (Views/PublicProfile/Add.cshtml): the form beside a narrow column, like a profile page */
.pp-add { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.pp-add-main { min-width: 0; }
.pp-add-side { position: sticky; top: 96px; display: grid; gap: 18px; min-width: 0; }   /* stays in view beside the long form */
.pp-add-note { margin-bottom: 18px; }
.sh .pp-add-note .sh-status-main h2 { line-height: 1.35; }
.pp-add .sh-step > legend .pp-add-opt { font-size: 17px; font-style: normal; color: var(--sh-muted); }
.pp-add-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.pp-add-pic { flex: none; display: grid; place-items: center; width: 104px; height: 104px; overflow: hidden; border: 1px dashed var(--vs-card-line-hover); border-radius: 50%; background: var(--sh-bg); font-size: 34px; color: var(--sh-muted); }
.pp-add-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.pp-add-photo-act { flex: 1 1 260px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.pp-add-photo-act .sh-hint { flex-basis: 100%; margin: 4px 0 0; }
.pp-add-pick { cursor: pointer; }
.pp-add-pick:focus-within { outline: 3px solid rgba(225, 29, 46, .25); outline-offset: 2px; }
.sh .pp-add-who { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--sh-line); font-size: 14px; line-height: 1.5; color: var(--sh-muted); }
.pp-add-who i { flex: none; margin-top: 2px; color: var(--sh-ink); }
.pp-add-who b { color: var(--sh-ink); }
.pp-terms { margin: 0 0 18px; padding-left: 22px; font-size: 14.5px; line-height: 1.6; color: var(--sh-ink-2); }
.pp-terms li { margin: 0 0 9px; padding-left: 4px; }
.pp-terms li::marker { font-weight: 700; color: var(--sh-muted); }
.pp-terms b { color: var(--sh-ink); }
.pp-add-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 4px; }
.pp-add-how ol, .pp-add-how ul { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.55; color: var(--sh-ink-2); }
.pp-add-how li + li { margin-top: 8px; }
.pp-add-how ol li { list-style: decimal; }
.pp-add-how ul li { list-style: disc; }
.pp-terms li { list-style: decimal; }
.sh .pp-add-not { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--sh-line); font-size: 13.5px; line-height: 1.5; color: var(--sh-muted); }
.pp-sent ul { margin: 0; padding: 0; list-style: none; }
.pp-sent li { display: flex; flex-direction: column; gap: 3px; padding: 11px 0; border-top: 1px solid var(--sh-line); }
.pp-sent li:first-child { padding-top: 0; border-top: 0; }
.pp-sent li:last-child { padding-bottom: 0; }
.pp-sent b { font-size: 14.5px; line-height: 1.35; color: var(--sh-ink); }
.sh .pp-sent a b { color: var(--vs-btn-text); }
.pp-sent-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--sh-muted); }
.pp-sent-status.is-pending { color: #b35c00; }
.pp-sent-status.is-live { color: var(--sh-ok); }
.pp-sent-status.is-declined { color: var(--sh-red-ink); }
.pp-sent-note { font-size: 13px; line-height: 1.45; color: var(--sh-muted); }

@media (max-width: 991px) {
    .pp-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "main" "glance" "more" "suggest"; }
    .pp-add { grid-template-columns: minmax(0, 1fr); }
    .pp-add-side { position: static; }
}
@media (max-width: 767px) {
    .pp-card-about { padding: 0 10px; font-size: 12.5px; }
    .pp-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .mb-av.pp-head-av { width: 96px; height: 96px; font-size: 32px; }
    .sh .pp-name { font-size: 26px; }
    .sh .pp-known { font-size: 16px; }
    .pp-share { margin: 18px 0 22px; }
    .pp-share .pp-back { margin-left: 0; }   /* wraps under the two buttons: start it at the left */
    .pp-page { padding: 16px 0 56px; }
    .pp-main { padding: 24px 18px 22px; }
    .sh .pp-sec-title { font-size: 20px; }
    .sh .pp-story { font-size: 16px; line-height: 1.75; }
    .pp-steps { grid-template-columns: minmax(0, 1fr); }
    .pp-steps > span:empty { display: none; }
    .pp-add .sh-step { padding: 20px 16px; }
    .pp-add .sh-fields { grid-template-columns: minmax(0, 1fr); }
}
