/* Gyanodaya Herald 2083 staff / governance presentation */
.herald-inner-hero p{max-width:760px;margin:18px 0 0;color:rgba(255,255,255,.82);font-size:1.04rem;line-height:1.7}
.herald-staff-page,.herald-committee-page{background:#f7f7f8}
.herald-source-note{display:flex;align-items:center;gap:18px;padding:18px 22px;margin-bottom:30px;background:#fff;border:1px solid #e7e3e5;border-left:4px solid #7b0b2e;border-radius:16px;box-shadow:0 8px 24px rgba(40,14,25,.05)}
.herald-source-note strong{color:#7b0b2e;white-space:nowrap}.herald-source-note span{color:#65606a;line-height:1.6}
.staff-level-section{margin:0 0 42px}.staff-level-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:0 0 18px;padding-bottom:13px;border-bottom:1px solid #ded9dc}.staff-level-heading span{display:block;color:#9a6b16;font-weight:800;font-size:.72rem;letter-spacing:.13em;text-transform:uppercase}.staff-level-heading h2{margin:4px 0 0;font-size:clamp(1.35rem,2.1vw,2rem);color:#240512}.staff-level-heading b{display:grid;place-items:center;min-width:42px;height:42px;padding:0 11px;border-radius:12px;background:#7b0b2e;color:#fff;font-size:.9rem}
.herald-people-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.herald-people-grid.is-featured{grid-template-columns:repeat(4,minmax(0,1fr));max-width:960px}
.herald-person-card{display:flex;align-items:center;gap:14px;min-width:0;padding:14px;background:#fff;border:1px solid #e6e2e4;border-radius:18px;box-shadow:0 7px 20px rgba(47,10,24,.045);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.herald-person-card:hover{transform:translateY(-3px);border-color:#d5bdc6;box-shadow:0 12px 30px rgba(47,10,24,.09)}
.herald-person-photo{width:82px;height:82px;flex:0 0 82px;overflow:hidden;border-radius:14px;background:linear-gradient(145deg,#f5e8ec,#fff);border:1px solid #e6d9de;display:grid;place-items:center;color:#7b0b2e;font-size:1.5rem;font-weight:800}.herald-person-photo img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}.herald-person-copy{min-width:0}.herald-person-copy h3{margin:0 0 5px;font-size:.98rem;line-height:1.28;color:#1e1720}.herald-person-copy p{margin:0;color:#7b0b2e;font-size:.79rem;font-weight:700;line-height:1.35}.herald-person-copy small{display:block;margin-top:7px;color:#6d6870;font-size:.74rem;line-height:1.45}
.committee-message-card{display:grid;grid-template-columns:180px 1fr;gap:28px;align-items:center;padding:26px;margin-bottom:32px;background:#fff;border:1px solid #e4dde0;border-radius:24px;box-shadow:0 14px 40px rgba(44,9,22,.07)}.committee-message-photo{width:180px;height:200px;border-radius:18px;overflow:hidden;background:#f1e8eb}.committee-message-photo img{width:100%;height:100%;object-fit:cover;object-position:center top}.committee-message-card h2{margin:5px 0 12px;font-size:1.7rem;color:#2c0715}.committee-message-card p{margin:0;color:#5f5961;line-height:1.75;font-size:1rem}
.committee-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.committee-person{text-align:center;padding:22px 16px;background:#fff;border:1px solid #e5dfe2;border-radius:20px;box-shadow:0 8px 24px rgba(44,9,22,.05)}.committee-avatar{width:112px;height:112px;margin:0 auto 13px;border-radius:18px;overflow:hidden;background:#f4e9ed;display:grid;place-items:center;color:#7b0b2e;font-size:2rem;font-weight:800}.committee-avatar img{width:100%;height:100%;object-fit:cover;object-position:center top}.committee-person h3{margin:0 0 6px;font-size:1rem;color:#21171b}.committee-person p{margin:0;color:#7b0b2e;font-size:.82rem;font-weight:700;line-height:1.4}
@media(max-width:1180px){.herald-people-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.committee-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.herald-people-grid,.herald-people-grid.is-featured{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none}.herald-person-card{display:block;text-align:center}.herald-person-photo{width:96px;height:96px;margin:0 auto 12px}.committee-message-card{grid-template-columns:140px 1fr}.committee-message-photo{width:140px;height:160px}}
@media(max-width:680px){.herald-source-note{display:block}.herald-source-note strong{display:block;margin-bottom:5px}.herald-people-grid,.herald-people-grid.is-featured{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.committee-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.committee-message-card{grid-template-columns:1fr;text-align:center}.committee-message-photo{margin:auto}.staff-level-heading{align-items:center}.herald-person-card{padding:13px 10px}.herald-person-copy h3{font-size:.91rem}.herald-person-copy p{font-size:.74rem}}
@media(max-width:390px){.herald-people-grid,.herald-people-grid.is-featured,.committee-grid{grid-template-columns:1fr}.herald-person-card{display:flex;text-align:left}.herald-person-photo{margin:0;width:76px;height:76px;flex-basis:76px}}


/* =========================================================
   v1.2.1 — Staff Directory desktop presentation refinement
   Desktop/tablet only. Mobile rules below 900px remain intact.
   ========================================================= */
@media (min-width: 901px) {
  .herald-staff-page {
    padding-top: 52px;
    padding-bottom: 72px;
  }

  .herald-staff-page .herald-source-note {
    margin-bottom: 42px;
    padding: 20px 24px;
    border-radius: 18px;
  }

  .herald-staff-page .staff-level-section {
    margin-bottom: 58px;
  }

  .herald-staff-page .staff-level-heading {
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .herald-staff-page .staff-level-heading span {
    font-size: .76rem;
    letter-spacing: .14em;
  }

  .herald-staff-page .staff-level-heading h2 {
    margin-top: 6px;
    font-size: clamp(1.7rem, 2vw, 2.25rem);
    line-height: 1.12;
  }

  .herald-staff-page .staff-level-heading b {
    min-width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 1rem;
    box-shadow: 0 8px 18px rgba(123, 11, 46, .14);
  }

  /* Four useful columns instead of the old cramped five-column layout. */
  .herald-staff-page .herald-people-grid,
  .herald-staff-page .herald-people-grid.is-featured {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
  }

  /* Portrait-first directory cards make the Herald photos visible and consistent. */
  .herald-staff-page .herald-person-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    min-height: 318px;
    padding: 24px 20px 22px;
    text-align: center;
    border-radius: 22px;
    border: 1px solid #e6dfe2;
    background: linear-gradient(180deg, #ffffff 0%, #fffdfd 100%);
    box-shadow: 0 10px 28px rgba(47, 10, 24, .055);
    overflow: hidden;
  }

  .herald-staff-page .herald-person-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #7b0b2e, #b27b18);
    opacity: 0;
    transition: opacity .2s ease;
  }

  .herald-staff-page .herald-person-card:hover {
    transform: translateY(-5px);
    border-color: #d9c4cc;
    box-shadow: 0 18px 40px rgba(47, 10, 24, .11);
  }

  .herald-staff-page .herald-person-card:hover::before {
    opacity: 1;
  }

  .herald-staff-page .herald-person-photo {
    width: 126px;
    height: 146px;
    flex: 0 0 auto;
    margin: 0 0 17px;
    border-radius: 18px;
    border: 1px solid #dfd1d7;
    background: #f6eef1;
    box-shadow: 0 8px 20px rgba(45, 13, 25, .09);
  }

  .herald-staff-page .herald-person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .herald-staff-page .herald-person-copy {
    width: 100%;
    min-width: 0;
  }

  .herald-staff-page .herald-person-copy h3 {
    margin: 0 0 7px;
    font-size: 1.08rem;
    line-height: 1.3;
    font-weight: 800;
    color: #1d1318;
    overflow-wrap: anywhere;
  }

  .herald-staff-page .herald-person-copy p {
    margin: 0 auto;
    max-width: 230px;
    color: #8a1037;
    font-size: .86rem;
    line-height: 1.45;
    font-weight: 750;
  }

  .herald-staff-page .herald-person-copy small {
    display: -webkit-box;
    max-width: 245px;
    margin: 10px auto 0;
    color: #706971;
    font-size: .78rem;
    line-height: 1.5;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Leadership gets slightly larger portraits without changing mobile. */
  .herald-staff-page .herald-people-grid.is-featured .herald-person-card {
    min-height: 348px;
    padding-top: 26px;
  }

  .herald-staff-page .herald-people-grid.is-featured .herald-person-photo {
    width: 146px;
    height: 168px;
  }

  .herald-staff-page .herald-people-grid.is-featured .herald-person-copy h3 {
    font-size: 1.18rem;
  }

  .herald-staff-page .herald-people-grid.is-featured .herald-person-copy p {
    font-size: .9rem;
  }
}

/* Mid-size laptops: 3 cards gives names and designations breathing room. */
@media (min-width: 901px) and (max-width: 1180px) {
  .herald-staff-page .herald-people-grid,
  .herald-staff-page .herald-people-grid.is-featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

/* Very wide desktops can show five regular staff cards efficiently,
   while leadership intentionally stays at four. */
@media (min-width: 1560px) {
  .herald-staff-page .herald-people-grid:not(.is-featured) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* =========================================================
   v1.2.2 — Herald 2083 exact hierarchy + portrait mapping
   Desktop only. Mobile behaviour below 900px stays unchanged.
   ========================================================= */
@media (min-width: 901px) {
  .herald-staff-page .container {
    width: min(1240px, calc(100% - 64px));
    max-width: 1240px;
  }

  .herald-staff-page .staff-level-section {
    margin-bottom: 64px;
  }

  .herald-staff-page .staff-level-heading {
    margin-bottom: 26px;
  }

  .herald-staff-page .staff-level-heading h2 {
    max-width: 920px;
    font-size: clamp(1.55rem, 1.8vw, 2.1rem);
    line-height: 1.2;
  }

  /* The Herald uses four portrait columns. Keep that hierarchy on desktop. */
  .herald-staff-page .herald-people-grid,
  .herald-staff-page .herald-people-grid.is-featured {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 22px !important;
    width: 100% !important;
    max-width: none !important;
    align-items: stretch;
  }

  .herald-staff-page .herald-person-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    min-width: 0;
    min-height: 272px !important;
    padding: 22px 18px 20px !important;
    text-align: center !important;
    border: 1px solid #e3dce0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(44, 12, 24, .055);
  }

  .herald-staff-page .herald-person-card:hover {
    transform: translateY(-4px);
    border-color: #cfb8c1;
    box-shadow: 0 18px 38px rgba(44, 12, 24, .10);
  }

  .herald-staff-page .herald-person-photo,
  .herald-staff-page .herald-people-grid.is-featured .herald-person-photo {
    width: 132px !important;
    height: 142px !important;
    flex: 0 0 142px !important;
    margin: 0 auto 16px !important;
    overflow: hidden;
    border-radius: 15px !important;
    border: 1px solid #dbcdd3;
    background: #f5f0f2;
    box-shadow: 0 7px 18px rgba(37, 13, 22, .08);
  }

  .herald-staff-page .herald-person-photo img,
  .herald-staff-page .herald-people-grid.is-featured .herald-person-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain !important;
    object-position: center center !important;
    background: #fff;
  }

  .herald-staff-page .herald-person-copy {
    width: 100%;
    min-width: 0;
  }

  .herald-staff-page .herald-person-copy h3,
  .herald-staff-page .herald-people-grid.is-featured .herald-person-copy h3 {
    margin: 0 0 6px !important;
    font-size: 1.03rem !important;
    line-height: 1.28 !important;
    font-weight: 800;
    color: #211319;
    overflow-wrap: break-word;
  }

  .herald-staff-page .herald-person-copy p,
  .herald-staff-page .herald-people-grid.is-featured .herald-person-copy p {
    margin: 0 auto !important;
    max-width: 240px;
    color: #8a1037;
    font-size: .84rem !important;
    line-height: 1.42 !important;
    font-weight: 750;
  }

  /* v1.2.2 intentionally removes generated bios from the Herald directory. */
  .herald-staff-page .herald-person-copy small {
    display: none !important;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .herald-staff-page .container {
    width: min(100% - 44px, 1040px);
  }
  .herald-staff-page .herald-people-grid,
  .herald-staff-page .herald-people-grid.is-featured {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}


/* v1.2.3 - resilient staff portrait rendering on cPanel */
.herald-person-photo{position:relative}
.herald-person-photo .herald-photo-fallback{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(145deg,#f5e8ec,#fff);color:#7b0b2e;font-size:1.6rem;font-weight:800;z-index:0}
.herald-person-photo img{position:relative;z-index:1;background:#fff}
.herald-person-photo.is-missing img{display:none!important}


/* v1.2.4 — cPanel-safe Herald portrait delivery */
.herald-person-photo{position:relative}
.herald-person-photo .herald-photo-fallback{position:absolute;inset:0;display:grid;place-items:center;z-index:0;color:#7b0b2e;font-weight:800;background:linear-gradient(145deg,#f5e8ec,#fff)}
.herald-person-photo img{position:relative;z-index:1;background:#fff}
.herald-person-photo:not(.is-missing) .herald-photo-fallback{visibility:hidden}
.herald-person-photo.is-missing .herald-photo-fallback{visibility:visible}

/* =========================================================
   v1.2.5 — Restore the preferred horizontal Herald staff cards
   Keep the verified v1.2.2 name/photo hierarchy; presentation only.
   ========================================================= */
@media (min-width: 901px) {
  .herald-staff-page {
    padding-top: 42px;
    padding-bottom: 70px;
  }

  .herald-staff-page .container {
    width: min(1320px, calc(100% - 56px));
    max-width: 1320px;
  }

  .herald-staff-page .staff-level-section {
    margin-bottom: 52px;
  }

  .herald-staff-page .staff-level-heading {
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
  }

  .herald-staff-page .staff-level-heading h2 {
    max-width: 980px;
    margin-top: 4px;
    font-size: clamp(1.55rem, 1.8vw, 2rem);
    line-height: 1.18;
  }

  /* This is the compact horizontal layout from the first version the school preferred. */
  .herald-staff-page .herald-people-grid,
  .herald-staff-page .herald-people-grid.is-featured {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: none !important;
    align-items: stretch;
  }

  .herald-staff-page .herald-person-card,
  .herald-staff-page .herald-people-grid.is-featured .herald-person-card {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    min-width: 0;
    min-height: 116px !important;
    padding: 14px !important;
    text-align: left !important;
    border: 1px solid #e5dfe2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(47,10,24,.045);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }

  .herald-staff-page .herald-person-card::before {
    display: none !important;
  }

  .herald-staff-page .herald-person-card:hover {
    transform: translateY(-3px);
    border-color: #d5bdc6;
    box-shadow: 0 12px 30px rgba(47,10,24,.09);
  }

  .herald-staff-page .herald-person-photo,
  .herald-staff-page .herald-people-grid.is-featured .herald-person-photo {
    width: 90px !important;
    height: 90px !important;
    flex: 0 0 90px !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 14px !important;
    border: 1px solid #e2d5da;
    background: #f5eef1;
    box-shadow: none;
  }

  .herald-staff-page .herald-person-photo img,
  .herald-staff-page .herald-people-grid.is-featured .herald-person-photo img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover !important;
    object-position: center top !important;
    background: #f5eef1;
  }

  .herald-staff-page .herald-person-copy {
    width: auto !important;
    flex: 1 1 auto;
    min-width: 0;
  }

  .herald-staff-page .herald-person-copy h3,
  .herald-staff-page .herald-people-grid.is-featured .herald-person-copy h3 {
    margin: 0 0 5px !important;
    font-size: 1rem !important;
    line-height: 1.28 !important;
    font-weight: 800;
    color: #181117;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .herald-staff-page .herald-person-copy p,
  .herald-staff-page .herald-people-grid.is-featured .herald-person-copy p {
    margin: 0 !important;
    max-width: none !important;
    color: #8a1037;
    font-size: .82rem !important;
    line-height: 1.34 !important;
    font-weight: 750;
  }

  .herald-staff-page .herald-person-copy small {
    display: none !important;
  }
}

/* Normal laptops: four cards so long Herald names still have room. */
@media (min-width: 1051px) and (max-width: 1280px) {
  .herald-staff-page .herald-people-grid,
  .herald-staff-page .herald-people-grid.is-featured {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Small laptops/tablets in landscape. Mobile rules below 900px remain untouched. */
@media (min-width: 901px) and (max-width: 1050px) {
  .herald-staff-page .container {
    width: min(100% - 36px, 1000px);
  }
  .herald-staff-page .herald-people-grid,
  .herald-staff-page .herald-people-grid.is-featured {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  .herald-staff-page .herald-person-photo,
  .herald-staff-page .herald-people-grid.is-featured .herald-person-photo {
    width: 84px !important;
    height: 84px !important;
    flex-basis: 84px !important;
  }
}
