/* ==========================================================================
   SFR Group - Group module stylesheet (About page, leadership, milestones, offices, awards, Sister Concern pages).
   One file, two audiences. Loaded AFTER tokens.css + site.css (public) or admin.css (staff); it only adds new class names and never
   restyles a shared one, so it can sit next to either shell. Colours, fonts, radii, shadows come from tokens.css (--srf-*).

   PUBLIC  grp-*   jump nav .grp-jump | story .grp-story .grp-glance | purpose .grp-purpose .grp-pillar .grp-values
                   chairman .grp-chairman | leader card .grp-leader | timeline picture .grp-timeline__img
                   offices .grp-office | awards .grp-award | sector chips .grp-chip | slim concern list .grp-compact
                   concern hero .grp-chero | profile body .grp-detail .grp-block .grp-highlight .grp-gallery .grp-shot
                   contact + facts cards .grp-contact .grp-facts | media viewer modal skin (#mediaViewerModal)
   STAFF   grpa-*  .grpa-stack .grpa-person .grpa-thumb | inline items (<details>) .grpa-item | gallery cards .grpa-photo
                   upload previews .grpa-previews | icon field .grpa-icon
   Rules: mobile first (375px), tap targets >= 44px, no horizontal scroll, Bengali never uppercased / letter-spaced.
   ========================================================================== */

/* ==========================================================================
   PUBLIC
   ========================================================================== */

/* ---------- jump navigation under the About hero ---------- */
.grp-jump { background: var(--srf-paper); border-bottom: 1px solid var(--srf-line); }
.grp-jump__list { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin-block: 0; padding-block: .8rem; list-style: none; }   /* also .srf-container: keep its auto side margins */
.grp-jump__link {
  display: inline-flex; align-items: center; min-height: var(--srf-tap); padding: .3rem .95rem;
  border: 1px solid var(--srf-line-strong); border-radius: var(--srf-radius-pill); background: var(--srf-ivory);
  color: var(--srf-navy-900); font: 600 .9rem/1.2 var(--srf-font-ui); text-decoration: none;
  transition: background-color var(--srf-dur-1) var(--srf-ease), border-color var(--srf-dur-1) var(--srf-ease);
}
html[lang="bn"] .grp-jump__link { font-size: 1rem; }
.grp-jump__link:hover { border-color: var(--srf-gold-500); background: var(--srf-gold-100); color: var(--srf-navy-900); }

/* ---------- story + "at a glance" ---------- */
.grp-story__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) {
  .grp-story__grid.has-glance { grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); }
  .grp-glance { position: sticky; top: calc(var(--srf-header-h) + 1.5rem); }
}
.grp-story__prose { max-width: 64ch; margin-top: 1.25rem; }

/* ---------- vision / mission / values ---------- */
.grp-purpose__grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .grp-purpose__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grp-pillar--values, .grp-purpose__grid > .grp-pillar:only-child { grid-column: 1 / -1; }
}
@supports selector(:has(*)) {                     /* vision or mission alone above the values card: use the full row */
  @media (min-width: 768px) {
    .grp-purpose__grid:has(> .grp-pillar:nth-child(2):last-child.grp-pillar--values) > .grp-pillar:first-child { grid-column: 1 / -1; }
  }
}
.grp-pillar {
  position: relative; display: flex; flex-direction: column; gap: .75rem; overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.1rem); background: var(--srf-paper);
  border: 1px solid var(--srf-line); border-radius: var(--srf-radius-lg); box-shadow: var(--srf-shadow-1);
}
.grp-pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--srf-gold-500); }
.grp-pillar__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: var(--srf-gold-100); color: var(--srf-gold-800); font-size: 1.45rem;
}
.grp-pillar__title { margin: 0; font-size: 1.35rem; }
.grp-pillar__text { margin: 0; font-size: 1.08rem; line-height: 1.75; color: var(--srf-ink-2); }
.grp-pillar--vision { background: var(--srf-navy-900); border-color: transparent; box-shadow: var(--srf-shadow-3); }
.grp-pillar--vision .grp-pillar__icon { background: rgba(255, 255, 255, .1); color: var(--srf-gold-300); }
.grp-pillar--vision .grp-pillar__title { color: #fff; }
.grp-pillar--vision .grp-pillar__text { color: rgba(255, 255, 255, .88); }
.grp-pillar--mission { background: var(--srf-gold-100); border-color: var(--srf-gold-200); }
.grp-pillar--mission .grp-pillar__icon { background: #fff; }
/* values come as a list: show each entry as a small tile */
.grp-values { max-width: none; }
.grp-values ul { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.grp-values li { margin: 0; padding: 1rem 1.15rem; background: var(--srf-ivory); border: 1px solid var(--srf-line); border-radius: var(--srf-radius-md); }
.grp-values > :last-child { margin-bottom: 0; }

/* ---------- chairman (navy band) ---------- */
.grp-chairman__grid { display: grid; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .grp-chairman__grid { grid-template-columns: minmax(200px, .55fr) minmax(0, 1.45fr); } }
.grp-chairman__figure { width: min(100%, 300px); margin: 0 auto; justify-self: center; }
.grp-chairman__photo {
  display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--srf-navy-800);
  border: 6px solid rgba(255, 255, 255, .08); outline: 1.5px solid var(--srf-gold-500); outline-offset: 9px; box-shadow: var(--srf-shadow-3);
}
.grp-chairman__mono { font: 600 clamp(3rem, 10vw, 4.75rem)/1 var(--srf-font-heading); color: var(--srf-gold-300); }
.grp-chairman__mark { display: block; margin-bottom: .35rem; font-size: 3.2rem; line-height: 1; color: var(--srf-gold-500); }
.grp-chairman__text { max-width: 62ch; font-size: clamp(1.05rem, 1.7vw, 1.22rem); line-height: 1.85; color: rgba(255, 255, 255, .92); }
.grp-chairman__text > :first-child { margin-top: 0; }
.grp-chairman__text p { margin: 0 0 1.1rem; }
.grp-chairman__text a { color: var(--srf-gold-300); }
.grp-chairman__text :is(h2, h3, h4) { color: #fff; }
.grp-chairman__text li::marker { color: var(--srf-gold-300); }
.grp-chairman__sign { display: grid; gap: .1rem; margin: 1.5rem 0 0; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .2); }
.grp-chairman__name { color: #fff; font: 600 1.2rem/1.3 var(--srf-font-heading); }
.grp-chairman__role { color: var(--srf-gold-300); font: 600 .92rem/1.4 var(--srf-font-ui); }

/* ---------- leadership card ---------- */
.grp-leader { display: flex; flex-direction: column; gap: 1.1rem; }
.grp-leader__photo {
  display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--srf-navy-50);
  border: 1px solid var(--srf-line); box-shadow: var(--srf-shadow-2);
}
.grp-leader__photo img { transition: transform 1s var(--srf-ease); }
.grp-leader__mono { font: 600 clamp(2.4rem, 6vw, 3.2rem)/1 var(--srf-font-heading); color: var(--srf-navy-700); }
.grp-leader__body { padding-inline: .25rem; text-align: center; }
.grp-leader__name { margin: 0; font-size: 1.2rem; }
.grp-leader__role { margin: .2rem 0 0; color: var(--srf-gold-800); font: 600 .92rem/1.4 var(--srf-font-ui); }
.grp-leader__bio { margin: .65rem 0 0; color: var(--srf-muted); font-size: .95rem; white-space: pre-line; }
@media (hover: hover) { .grp-leader:hover .grp-leader__photo img { transform: scale(1.04); } }

/* ---------- timeline picture (the timeline itself is .srf-timeline in site.css) ---------- */
.grp-timeline__img {
  display: block; width: min(100%, 360px); aspect-ratio: 3 / 2; margin-top: .9rem; object-fit: cover;
  border-radius: var(--srf-radius-md); box-shadow: var(--srf-shadow-2);
}
@media (min-width: 992px) { .srf-timeline--center .srf-timeline__item:nth-child(odd) .grp-timeline__img { margin-left: auto; } }

/* ---------- offices ---------- */
.grp-offices__grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .grp-offices__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grp-offices__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grp-office {
  display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem 1.5rem; background: var(--srf-paper);
  border: 1px solid var(--srf-line); border-radius: var(--srf-radius-lg); box-shadow: var(--srf-shadow-1);
}
.grp-office--head { border-top: 3px solid var(--srf-gold-500); box-shadow: var(--srf-shadow-2); }
.grp-office__head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.grp-office__name { margin: 0; font-size: 1.25rem; }
.grp-office__list { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.grp-office__list li { display: flex; align-items: center; gap: .75rem; min-height: var(--srf-tap); overflow-wrap: anywhere; }
.grp-office__list i { flex: 0 0 auto; color: var(--srf-gold-700); }
.grp-office__list a { display: inline-flex; align-items: center; min-height: var(--srf-tap); color: var(--srf-navy-900); font-weight: 600; text-decoration-color: var(--srf-gold-500); }
.grp-office .srf-link-arrow { margin-top: auto; }

/* ---------- awards ---------- */
.grp-awards__list { display: grid; gap: clamp(.9rem, 2vw, 1.25rem); margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.grp-award {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; background: var(--srf-paper);
  border: 1px solid var(--srf-line); border-radius: var(--srf-radius-lg); box-shadow: var(--srf-shadow-1);
}
.grp-award__media {
  display: grid; place-items: center; flex: 0 0 64px; width: 64px; height: 64px; overflow: hidden;
  border-radius: var(--srf-radius-md); background: var(--srf-gold-100); color: var(--srf-gold-800); font-size: 1.7rem;
}
.grp-award__media img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.grp-award__body { min-width: 0; }
.grp-award__title { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.grp-award__issuer { margin: .15rem 0 0; color: var(--srf-muted); font-size: .9rem; }
.grp-award__year { margin: .25rem 0 0; color: var(--srf-gold-800); font: 700 .85rem/1.2 var(--srf-font-ui); }

.grp-sharebar { border-top: 1px solid var(--srf-line); }

/* ---------- sector chips (/concerns) ---------- */
.grp-filter { background: var(--srf-paper); border-bottom: 1px solid var(--srf-line); }
.grp-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 0; padding-block: .9rem; list-style: none; }   /* also .srf-container */
.grp-chip {
  display: inline-flex; align-items: center; gap: .5rem; min-height: var(--srf-tap); padding: .35rem 1rem;
  border: 1px solid var(--srf-line-strong); border-radius: var(--srf-radius-pill); background: var(--srf-ivory);
  color: var(--srf-navy-900); font: 600 .92rem/1.2 var(--srf-font-ui); text-decoration: none;
  transition: background-color var(--srf-dur-1) var(--srf-ease), border-color var(--srf-dur-1) var(--srf-ease), color var(--srf-dur-1) var(--srf-ease);
}
html[lang="bn"] .grp-chip { font-size: 1rem; }
.grp-chip i { color: var(--srf-gold-700); }
.grp-chip__count {
  display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .4rem; border-radius: var(--srf-radius-pill);
  background: var(--srf-navy-50); color: var(--srf-navy-800); font-size: .78rem; font-variant-numeric: lining-nums;
}
.grp-chip:hover { border-color: var(--srf-gold-500); background: var(--srf-gold-100); color: var(--srf-navy-900); }
.grp-chip.is-active { background: var(--srf-navy-900); border-color: var(--srf-navy-900); color: #fff; }
.grp-chip.is-active i { color: var(--srf-gold-300); }
.grp-chip.is-active .grp-chip__count { background: rgba(255, 255, 255, .16); color: #fff; }
.grp-filter__reset { margin: 1.5rem 0 0; }

/* ---------- slim Sister Concern list ("compact" cards, "other concerns") ---------- */
.grp-compact { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.grp-compact__item {
  --accent: var(--srf-navy-900);
  display: flex; align-items: center; gap: .9rem; min-height: 72px; padding: .75rem 1rem;
  background: var(--srf-paper); border: 1px solid var(--srf-line); border-left: 4px solid var(--accent); border-radius: var(--srf-radius-md);
  color: var(--srf-navy-900); text-decoration: none;
  transition: translate var(--srf-dur-2) var(--srf-ease), box-shadow var(--srf-dur-2) var(--srf-ease), border-color var(--srf-dur-2) var(--srf-ease);
}
.grp-compact__mark {
  display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; overflow: hidden;
  border: 1px solid var(--srf-line); border-radius: 12px; background: #fff;
}
.grp-compact__mark img { width: 100%; height: 100%; object-fit: contain; }
.grp-compact__mono { font: 600 1rem/1 var(--srf-font-heading); color: var(--srf-navy-800); }
.grp-compact__text { display: grid; flex: 1 1 auto; gap: .1rem; min-width: 0; }
.grp-compact__name { font: 600 1rem/1.3 var(--srf-font-ui); overflow-wrap: anywhere; }
.grp-compact__type { display: inline-flex; align-items: center; gap: .4rem; color: var(--srf-muted); font-size: .84rem; }
.grp-compact__go { flex: 0 0 auto; color: var(--srf-gold-700); transition: translate var(--srf-dur-2) var(--srf-ease); }
.grp-compact__item:hover { color: var(--srf-navy-900); }
@media (hover: hover) {
  .grp-compact__item:hover { translate: 0 -3px; box-shadow: var(--srf-shadow-2); border-color: color-mix(in srgb, var(--accent) 45%, var(--srf-line)); border-left-color: var(--accent); }
  .grp-compact__item:hover .grp-compact__go { translate: 4px 0; }
}

/* ---------- Sister Concern profile: hero ---------- */
.grp-chero {
  --accent: var(--srf-navy-900);
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background:
    radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 62%),
    linear-gradient(135deg, var(--srf-navy-900), var(--srf-navy-800));
  border-bottom: 3px solid var(--srf-gold-500);
}
.grp-chero__bg { position: absolute; inset: 0; z-index: -2; }
.grp-chero__bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.grp-chero--photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 19, 39, .66) 0%, rgba(7, 19, 39, .66) 38%, rgba(7, 19, 39, .93) 100%);      /* the top band holds the breadcrumb: .5 over a bright sky gave white text only 3.3:1, .66 gives 6:1 even over pure white */
}
.grp-chero__arcs { position: absolute; z-index: -1; right: -10%; top: -40%; width: min(620px, 90vw); pointer-events: none; }
@media (max-width: 575.98px) { .grp-chero__arcs { display: none; } }
.grp-chero .srf-motif--arcs .m-navy { fill: #fff; fill-opacity: .05; }
.grp-chero .srf-motif--arcs .m-navy-s { stroke: #fff; stroke-opacity: .14; }
.grp-chero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-content: start; padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(2rem, 6vw, 3.75rem); }
.grp-chero--photo .grp-chero__inner { align-content: space-between; min-height: clamp(360px, 52vw, 540px); }
.grp-chero__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: .95rem; max-width: 46rem; }
.grp-chero__main > * { min-width: 0; }
.grp-chero__brand { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }
.grp-chero__logo {
  display: grid; place-items: center; width: 76px; height: 76px; padding: .45rem; background: #fff;
  border-radius: 18px; box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.grp-chero__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.grp-chero__mono {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--srf-navy-900);
  border: 3px solid var(--accent); font: 600 1.7rem/1 var(--srf-font-heading); box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.grp-chero .srf-chip--accent { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); }
.grp-chero .srf-chip--accent i { color: var(--srf-gold-300); }
.grp-chero__title { margin: 0; color: #fff; font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.1; overflow-wrap: anywhere; }
html[lang="bn"] .grp-chero__title { line-height: 1.3; }
.grp-chero__tag { margin: 0; max-width: 40rem; color: rgba(255, 255, 255, .9); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.grp-chero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .45rem; }
/* the shared breadcrumb is drawn for light grounds: recolour it for the dark hero */
.grp-chero .srf-crumbs, .grp-chero .srf-crumbs a { color: #fff; }       /* solid white (it was .85 alpha: 4.0:1 over a bright photo) */
.grp-chero .srf-crumbs a:hover { color: #fff; text-decoration-color: var(--srf-gold-300); }
.grp-chero .srf-crumbs li:not(:last-child)::after { color: var(--srf-gold-300); }
.grp-chero .srf-crumbs [aria-current="page"] span { color: #fff; }

/* ---------- Sister Concern profile: body ---------- */
.grp-detail__grid { display: grid; gap: clamp(1.75rem, 4vw, 3.25rem); align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) {
  .grp-detail__grid.has-aside { grid-template-columns: minmax(0, 1.75fr) minmax(300px, .8fr); }
  .grp-detail__aside { position: sticky; top: calc(var(--srf-header-h) + 1.25rem); }
}
.grp-detail__main { min-width: 0; }
.grp-detail__main > * + * { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.grp-detail__lead {
  max-width: 46rem; margin: 0; padding-left: 1.1rem; border-left: 3px solid var(--srf-gold-500);
  color: var(--srf-navy-900); font-size: clamp(1.12rem, 2vw, 1.4rem); line-height: 1.65;
}
.grp-detail__aside { display: grid; gap: 1rem; min-width: 0; }
.grp-block__title { margin: 0 0 1.1rem; }

.grp-highlights { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grp-highlight {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1.2rem; background: var(--srf-paper);
  border: 1px solid var(--srf-line); border-radius: var(--srf-radius-lg); box-shadow: var(--srf-shadow-1);
}
.grp-highlight__icon {
  display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px;
  background: var(--srf-gold-100); color: var(--srf-gold-800); font-size: 1.35rem;
}
.grp-highlight__body { min-width: 0; }
.grp-highlight__title { margin: 0; font-size: 1.08rem; }
.grp-highlight__text { margin: .35rem 0 0; color: var(--srf-muted); font-size: .95rem; }

.grp-gallery { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grp-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grp-shot {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden;
  border: 0; border-radius: var(--srf-radius-md); background: var(--srf-navy-50); cursor: zoom-in;
}
.grp-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--srf-ease); }
.grp-shot__zoom {
  position: absolute; right: .6rem; bottom: .6rem; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(11, 32, 66, .78); color: #fff; font-size: .85rem; opacity: 0;
  transition: opacity var(--srf-dur-2) var(--srf-ease);
}
.grp-shot:hover .grp-shot__zoom, .grp-shot:focus-visible .grp-shot__zoom { opacity: 1; }
@media (hover: none) { .grp-shot__zoom { opacity: 1; } }
@media (hover: hover) { .grp-shot:hover img { transform: scale(1.05); } }
.grp-shot__caption { margin: .4rem .1rem 0; color: var(--srf-muted); font-size: .88rem; }

.grp-contact__title { margin: 0 0 1rem; font-size: 1.25rem; }
.grp-contact__list { display: grid; gap: .25rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.grp-contact__list li { display: flex; align-items: center; gap: .8rem; min-height: var(--srf-tap); overflow-wrap: anywhere; }
.grp-contact__list li > i:first-child {
  display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--srf-gold-100); color: var(--srf-gold-800);
}
.grp-contact__list a {
  display: inline-flex; align-items: center; gap: .35rem; min-height: var(--srf-tap);
  color: var(--srf-navy-900); font-weight: 600; text-decoration-color: var(--srf-gold-500);
}
.grp-contact__ext { color: var(--srf-gold-700); font-size: .8em; }
.grp-facts__list { display: grid; gap: .7rem; margin: 0; }
.grp-facts__list > div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--srf-line); }
.grp-facts__list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.grp-facts__list dt { color: var(--srf-muted); font-size: .9rem; font-weight: 500; }
.grp-facts__list dd { margin: 0; color: var(--srf-navy-900); font-weight: 600; text-align: right; }

/* ---------- media viewer modal on public pages (admin.css skins it for staff pages) ---------- */
body:not(.srf-admin) #mediaViewerModal .modal-content { border: 0; border-radius: var(--srf-radius-lg); overflow: hidden; }
body:not(.srf-admin) #mediaViewerModal .modal-title { color: var(--srf-navy-900); font-family: var(--srf-font-heading); font-size: 1.1rem; }
body:not(.srf-admin) #mediaViewerModal .srf-modal-media { display: grid; place-items: center; max-height: 78vh; overflow: auto; background: var(--srf-navy-50); }
body:not(.srf-admin) #mediaViewerModal .srf-modal-media img { max-height: 78vh; object-fit: contain; }
body:not(.srf-admin) #mediaViewerModal .srf-modal-frame { display: block; width: 100%; height: 75vh; border: 0; background: var(--srf-navy-50); }
@media (max-width: 575.98px) {
  body:not(.srf-admin) #mediaViewerModal .srf-modal-media, body:not(.srf-admin) #mediaViewerModal .srf-modal-media img { max-height: calc(100vh - 8.5rem); }
  body:not(.srf-admin) #mediaViewerModal .srf-modal-frame { height: calc(100vh - 8.5rem); }
}

/* Bengali: roomier lines for the display headings of this module */
html[lang="bn"] .grp-pillar__title, html[lang="bn"] .grp-leader__name, html[lang="bn"] .grp-office__name,
html[lang="bn"] .grp-award__title, html[lang="bn"] .grp-highlight__title, html[lang="bn"] .grp-chairman__name { line-height: 1.4; }

/* ==========================================================================
   STAFF (admin shell)
   ========================================================================== */

.grpa-stack { display: grid; gap: var(--srf-space-4); align-content: start; min-width: 0; }

/* people / award / milestone rows in the list tables */
.grpa-person { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.grpa-person__text { min-width: 0; }
.grpa-thumb {
  flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--srf-line-cool); border-radius: 50%;
  background: var(--srf-navy-50); object-fit: cover;
}
.grpa-thumb--wide { flex-basis: 64px; width: 64px; border-radius: 8px; }
.grpa-thumb--contain { border-radius: 10px; background: #fff; object-fit: contain; }
.grpa-thumb--ph { display: inline-grid; place-items: center; color: var(--srf-navy-700); font-size: .9rem; font-weight: 700; }
.grpa-tips { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--srf-ink-2); font-size: .9rem; }
.grpa-tips li { margin-bottom: .45rem; }

/* concern content: company picker, notes */
.grpa-picker { display: flex; flex: 1 1 320px; align-items: center; gap: .75rem; min-width: 0; }
.grpa-picker .form-label { margin: 0; white-space: nowrap; }
.grpa-picker .form-select { min-width: 0; max-width: 460px; }
.grpa-note { margin-bottom: 1rem; }
@media (max-width: 575.98px) { .grpa-picker { flex-wrap: wrap; } .grpa-picker .form-select { max-width: none; width: 100%; } }

/* inline items: native <details> */
.grpa-list { display: grid; gap: .6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.grpa-item { background: var(--srf-paper); border: 1px solid var(--srf-line-cool); border-radius: var(--srf-radius-md); }
.grpa-item[open] { border-color: var(--srf-gold-300); box-shadow: var(--srf-shadow-1); }
.grpa-item--add { background: #FFFBF2; border-style: dashed; border-color: var(--srf-gold-300); }
.grpa-item__sum { display: flex; align-items: center; gap: .85rem; min-height: 56px; padding: .6rem 1rem; list-style: none; cursor: pointer; }
.grpa-item__sum::-webkit-details-marker { display: none; }
.grpa-item__sum:focus-visible { outline: 3px solid var(--srf-focus); outline-offset: -3px; border-radius: var(--srf-radius-md); }      /* solid navy (--srf-focus); the translucent gold measured 1.7:1 */
.grpa-item__icon {
  display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px;
  background: var(--srf-gold-100); color: var(--srf-gold-800); font-size: 1.15rem;
}
.grpa-item__title { flex: 1 1 auto; min-width: 0; color: var(--srf-ink); font-weight: 600; overflow-wrap: anywhere; }
.grpa-item__sub { display: block; margin-top: 2px; color: var(--srf-muted); font-size: .8125rem; font-weight: 400; }
.grpa-item__badges { display: inline-flex; flex: 0 0 auto; flex-wrap: wrap; gap: .35rem; }
.grpa-item__chev { flex: 0 0 auto; color: var(--srf-muted); transition: rotate var(--srf-dur-2) var(--srf-ease); }
.grpa-item[open] > .grpa-item__sum .grpa-item__chev { rotate: 180deg; }
.grpa-item__body { padding: 1rem; border-top: 1px solid var(--srf-line-cool); }
.grpa-item__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }
@media (max-width: 575.98px) { .grpa-item__actions .btn { flex: 1 1 auto; } .grpa-item__badges { display: none; } }
.grpa-none { margin: 1rem 0 0; color: var(--srf-muted); }
.grpa-form .srf-form-grid { gap: .9rem 1rem; }

/* icon field with live preview */
.grpa-icon { display: flex; align-items: center; gap: .6rem; }
.grpa-icon .form-control { min-width: 0; }
.grpa-icon__preview {
  display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--srf-line-strong);
  border-radius: 12px; background: var(--srf-gold-100); color: var(--srf-gold-800); font-size: 1.25rem;
}

/* gallery: upload previews + photo cards */
.grpa-previews { display: grid; gap: .6rem; margin-top: .9rem; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.grpa-previews:empty { display: none; }
.grpa-preview { margin: 0; min-width: 0; }
.grpa-preview img { display: block; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--srf-line-cool); border-radius: 10px; object-fit: cover; }
.grpa-preview figcaption { margin-top: .25rem; overflow: hidden; color: var(--srf-muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.grpa-gallery { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.grpa-photo {
  display: flex; flex-direction: column; gap: .6rem; min-width: 0; padding: .7rem;
  background: var(--srf-paper); border: 1px solid var(--srf-line-cool); border-radius: var(--srf-radius-md);
}
.grpa-photo.is-hidden { background: #FAFBFD; }
.grpa-photo.is-hidden .grpa-photo__img { opacity: .55; }
.grpa-photo__img {
  display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden;
  border: 0; border-radius: 10px; background: var(--srf-navy-50); cursor: zoom-in;
}
.grpa-photo__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.grpa-photo__meta { display: flex; flex-wrap: wrap; gap: .35rem; }
.grpa-photo__caption { margin: 0; color: var(--srf-ink-2); font-size: .875rem; overflow-wrap: anywhere; }
.grpa-photo__more > summary { display: inline-flex; list-style: none; cursor: pointer; }
.grpa-photo__more > summary::-webkit-details-marker { display: none; }
.grpa-photo__more .grpa-form { margin-top: .8rem; }
.grpa-photo__fields { display: grid; gap: .75rem; }
@supports selector(:has(*)) { .grpa-photo:has(> .grpa-photo__more[open]) { grid-column: 1 / -1; } }
