/* ═════════════════════════════════════════════════════════════════════
   TEAM — archive + single (Omran Center)

   Per docs/superpowers/specs/2026-04-29-team-template-design.md
   Consumes design tokens from style.css (:root). Sharp edges throughout
   (--radius: 0). Format-color accent via --fmt-color set inline per dept.
   ═════════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────────
   LOCAL TOKENS
   ──────────────────────────────────────────────────────────────────── */

:root {
    --rule-hairline: 1px solid #C9BFB5;
    --rule-hairline-warm: 1px solid #E5DDD3;
}

/* ──────────────────────────────────────────────────────────────────────
   ARCHIVE — page shell
   ──────────────────────────────────────────────────────────────────── */

/* GP sets .site-content to display:flex which makes the archive wrapper a
   flex item with default flex: 0 1 auto — it takes its natural content
   width and aligns to the reading-start (right in RTL), leaving the left
   side empty. Switch back to block layout for team archive contexts so
   .omran-archive-team fills the parent naturally. */
body.post-type-archive-team_member .site-content,
body.post-type-archive-team_member #content,
body.tax-team_department .site-content,
body.tax-team_department #content,
body.single-team_member .site-content,
body.single-team_member #content {
    display: block !important;
}

.omran-archive-team {
    width: 100%;
    padding-block-end: var(--space-64);
    counter-reset: dept-section;
}

.omran-team-archive-body {
    max-width: var(--container-content);
    margin-inline: auto;
    padding-inline: var(--space-24);
}

/* ──────────────────────────────────────────────────────────────────────
   ARCHIVE — leadership-led hero spread
   ──────────────────────────────────────────────────────────────────── */

.omran-team-archive-hero {
    background: linear-gradient(180deg, #fff 0%, var(--color-bg-warm) 100%);
    border-block-end: var(--rule-hairline);
    margin: 0 0 var(--space-48);
    padding: var(--space-64) 0 var(--space-48);
    position: relative;
    overflow: hidden;
}

.omran-team-archive-hero::before {
    /* Subtle masthead rule along the top edge. */
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 4px;
    background: var(--color-primary);
}

/* Watermark mark in the empty inline-end half of the hero (the left
   side in RTL). Decorative only — pointer-events disabled so it never
   blocks the breadcrumb / lede / stats. */
.omran-team-archive-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    inset-inline-end: clamp(-120px, -8vw, -40px);
    transform: translateY(-50%);
    width: clamp(360px, 38vw, 560px);
    aspect-ratio: 1 / 1;
    background-image: url('img/omran-mark.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

/* Keep hero content above the watermark. */
.omran-team-archive-hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-content);
    margin-inline: auto;
    padding-inline: var(--space-24);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.omran-team-archive-hero-eyebrow,
.omran-team-archive-hero-featured-eyebrow {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    text-transform: none;
    margin: 0 0 var(--space-16);
    display: inline-block;
    padding-block-end: 6px;
    border-block-end: 2px solid var(--color-primary);
}

.omran-team-archive-hero-title {
    font-family: var(--font-primary);
    font-size: clamp(42px, 5.5vw, 66px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--color-text);
    margin: 0 0 var(--space-24);
}
.omran-team-archive-hero-title span {
    color: var(--color-primary);
    font-weight: 500;
}

.omran-team-archive-hero-lede {
    font-size: 20px;
    line-height: 1.75;
    color: var(--color-text);
    max-width: 52ch;
    margin: 0 0 var(--space-32);
}

.omran-team-archive-hero-stats {
    display: flex;
    gap: var(--space-64);
    margin: 0;
    padding-block-start: var(--space-24);
    border-block-start: var(--rule-hairline);
    width: 100%;
    max-width: 720px;
}
.omran-team-archive-hero-stats > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.omran-team-archive-hero-stats dt {
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    text-transform: none;
    order: 2;
}
.omran-team-archive-hero-stats dd {
    font-family: var(--font-primary);
    font-size: 44px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    line-height: 1;
    order: 1;
    letter-spacing: -0.01em;
}


/* ──────────────────────────────────────────────────────────────────────
   ARCHIVE — sticky compact filter rail (chip nav as nav, not buttons)
   ──────────────────────────────────────────────────────────────────── */

.omran-team-controls {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-16);
    align-items: center;
    justify-content: space-between;
    margin: 0 0 var(--space-48);
    padding: 12px max(var(--space-24), calc((100% - var(--container-content)) / 2 + var(--space-24)));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-block-end: var(--rule-hairline);
}

.omran-team-dept-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
    flex: 1 1 auto;
    align-items: center;
}

.omran-team-dept-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-muted);
    background: transparent;
    border: 0;
    border-block-end: 2px solid transparent;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.omran-team-dept-chip:hover,
.omran-team-dept-chip:focus-visible {
    color: var(--color-text);
    border-block-end-color: var(--fmt-color, var(--color-primary));
    outline: none;
}

.omran-team-dept-chip[aria-current="true"],
.omran-team-dept-chip.is-active {
    color: var(--color-text);
    border-block-end-color: var(--fmt-color, var(--color-primary));
    background: transparent;
}

.omran-team-dept-chip--all {
    color: var(--color-primary);
    border-block-end-color: var(--color-primary);
}

.omran-team-controls-right {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    flex: 0 1 auto;
}

.omran-team-search {
    display: flex;
    align-items: center;
    border: 0;
    border-block-end: 1px solid var(--color-border);
    background: transparent;
    padding: 0 8px;
    height: 32px;
    min-width: 200px;
}

.omran-team-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* GP's parent stylesheet sets a 1px solid border on input[type="search"]
   with specificity (0,0,1,1). A bare `.omran-team-search-input` selector
   loses that battle, so we scope the reset under the controls bar to
   bump specificity to (0,0,2,0) and win. */
.omran-team-controls .omran-team-search-input {
    border: 0;
    outline: 0;
    background: transparent;
    flex: 1;
    font: inherit;
    font-size: 16px;
    color: var(--color-text);
    padding: 0;
    box-shadow: none;
}

.omran-team-search-input::placeholder {
    color: var(--color-text-muted);
}

.omran-team-view-toggle {
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
    height: 32px;
    font-size: 13px;
    color: var(--color-link);
    background: transparent;
    border: 0;
    border-block-end: 1px dashed var(--color-link);
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
    letter-spacing: 0.02em;
}

.omran-team-view-toggle:hover,
.omran-team-view-toggle:focus-visible {
    color: var(--color-link-hover);
    border-block-end-color: var(--color-link-hover);
    outline: none;
}

.omran-team-view-toggle.is-active {
    color: var(--color-primary);
    border-block-end-color: var(--color-primary);
    border-block-end-style: solid;
}

/* ──────────────────────────────────────────────────────────────────────
   ARCHIVE — dept sections (numbered chapter style)
   ──────────────────────────────────────────────────────────────────── */

.omran-team-dept-section {
    margin-block-end: var(--space-64);
    counter-increment: dept-section;
    scroll-margin-top: 100px;
}

.omran-team-dept-header {
    display: flex;
    align-items: baseline;
    gap: var(--space-16);
    padding-block-end: var(--space-16);
    margin-block-end: var(--space-32);
    border-block-end: 0;
    position: relative;
    flex-wrap: wrap;
}

/* Chapter mark — leading numeral */
.omran-team-dept-header::before {
    content: counter(dept-section, decimal-leading-zero);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--fmt-color, var(--color-primary));
    align-self: center;
    padding-inline-end: var(--space-12);
    border-inline-end: 1px solid var(--fmt-color, var(--color-primary));
    line-height: 1;
}

.omran-team-dept-title {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--color-text);
    margin: 0;
    line-height: 1.1;
}

.omran-team-dept-count {
    font-size: 14px;
    color: var(--color-text-muted);
    background: transparent;
    border: 0;
    padding: 0;
    letter-spacing: 0.06em;
    text-transform: none;
    align-self: center;
}
.omran-team-dept-count::after {
    content: ' عضواً';
    color: var(--color-text-muted);
}

/* ──────────────────────────────────────────────────────────────────────
   ARCHIVE — grid + member cards (name-led, photo demoted)
   ──────────────────────────────────────────────────────────────────── */

/* Border-block-start scoped to the archive (and dept-taxonomy) views.
   The single template also uses `.omran-team-grid` as its 8fr/4fr
   reading-grid wrapper — it must NOT pick up this hairline rule, or it
   shows up as an orphan line in the gap between hero and body. */
.omran-archive-team .omran-team-grid,
.omran-team-flat-section .omran-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-block-start: var(--rule-hairline);
}

.omran-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

/* Vertical column rule between paired cards */
.omran-team-grid > .omran-team-member-card:nth-child(odd) {
    border-inline-end: var(--rule-hairline-warm);
}

.omran-team-grid--flat {
    grid-template-columns: repeat(3, 1fr);
}
.omran-team-grid--flat > .omran-team-member-card:nth-child(odd) {
    border-inline-end: 0;
}
.omran-team-grid--flat > .omran-team-member-card:not(:nth-child(3n)) {
    border-inline-end: var(--rule-hairline-warm);
}

.omran-team-member-card {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: var(--space-20, 20px);
    padding: var(--space-24);
    background: #fff;
    border: 0;
    border-block-end: var(--rule-hairline-warm);
    align-items: start;
    text-decoration: none;
    color: inherit;
    transition: background 0.18s ease;
}

.omran-team-member-card:hover,
.omran-team-member-card:focus-visible {
    background: var(--color-bg-warm);
    outline: none;
}

.omran-team-member-card.is-hidden {
    display: none;
}

.omran-team-member-card-photo {
    width: 120px;
    height: 120px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-bg-warm);
    order: 2;
    filter: grayscale(1) contrast(1.04);
    transition: filter 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.omran-team-member-card:hover .omran-team-member-card-photo {
    filter: grayscale(0) contrast(1);
}

.omran-team-member-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.omran-team-member-card-photo-fallback {
    font-family: var(--font-primary);
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    background: var(--color-primary);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.omran-team-member-card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    order: 1;
    min-width: 0;
}

.omran-team-member-card-name {
    font-family: var(--font-primary);
    font-size: 21px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 4px;
    line-height: 1.3;
}

.omran-team-member-card-role {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.5;
}

.omran-team-member-card-edu {
    font-size: 15px;
    color: var(--color-text-muted);
    margin: 2px 0 0;
    line-height: 1.5;
}

/* ──────────────────────────────────────────────────────────────────────
   ARCHIVE — empty states
   ──────────────────────────────────────────────────────────────────── */

.omran-team-empty,
.omran-team-search-empty {
    text-align: center;
    padding: var(--space-48) var(--space-24);
    background: var(--color-bg-warm);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.omran-team-search-empty p {
    margin: 0 0 var(--space-16);
    font-size: 18px;
}

.omran-team-search-clear {
    background: var(--color-primary);
    color: #fff;
    border: 0;
    padding: 8px 18px;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.omran-team-search-clear:hover {
    background: var(--color-primary-dark);
}

/* ──────────────────────────────────────────────────────────────────────
   SINGLE — page shell + breadcrumb
   ──────────────────────────────────────────────────────────────────── */

.omran-single-team-member {
    max-width: var(--container-wide);
    margin-inline: auto;
    padding-block-end: var(--space-64);
}

/* Breadcrumb already styled by the shared .omran-breadcrumbs. We just
   keep the spacing consistent inside this container. */
.omran-single-team-member .omran-breadcrumbs {
    max-width: var(--container-content);
    margin-inline: auto;
    padding-inline: var(--space-24);
}

/* ──────────────────────────────────────────────────────────────────────
   SINGLE — hero band
   ──────────────────────────────────────────────────────────────────── */

.omran-team-hero {
    background: var(--color-bg-warm);
    padding-block: var(--space-48);
    margin-block-end: var(--space-32);
    border-block-start: 4px solid var(--fmt-color, var(--color-primary));
}

.omran-team-hero-inner {
    max-width: var(--container-content);
    margin-inline: auto;
    padding-inline: var(--space-24);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-48);
    align-items: center;
}

.omran-team-hero-photo {
    width: 300px;
    height: 300px;
    overflow: hidden;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(45, 45, 45, 0.1);
}

.omran-team-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.omran-team-hero-photo-fallback {
    font-family: var(--font-primary);
    font-size: 80px;
    font-weight: 700;
    color: #fff;
}

/* Apply unified photo register on single hero too. */
.omran-team-hero-photo img {
    filter: grayscale(1) contrast(1.04);
    transition: filter 0.4s ease;
}
.omran-team-hero:hover .omran-team-hero-photo img,
.omran-team-hero:focus-within .omran-team-hero-photo img {
    filter: grayscale(0) contrast(1);
}

.omran-team-hero-meta {
    min-width: 0;
}

.omran-team-hero-name {
    font-family: var(--font-primary);
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--color-text);
    margin: 0 0 var(--space-12);
}

.omran-team-hero-role {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-primary);
    margin: 0 0 var(--space-16);
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.omran-team-hero-rule {
    display: block;
    width: 80px;
    height: 2px;
    background: var(--fmt-color, var(--color-primary));
    margin-block-end: var(--space-16);
}

.omran-team-hero-langs {
    list-style: none;
    margin: 0 0 var(--space-16);
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.omran-team-hero-langs li {
    font-size: 13px;
    color: var(--color-text);
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 3px 10px;
}

.omran-team-hero-socials {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--space-8);
}

.omran-team-hero-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-text-muted);
    background: #fff;
    border: 1px solid var(--color-border);
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.omran-team-hero-social:hover,
.omran-team-hero-social:focus-visible {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: var(--color-bg-warm);
    outline: none;
}

/* ──────────────────────────────────────────────────────────────────────
   SINGLE — body 8:4 grid
   ──────────────────────────────────────────────────────────────────── */

/* Single-column reading container. Wider than --reading-width so the
   bibliography below can hold its dense list, but the bio inside
   self-constrains via .omran-team-bio { max-width: --reading-width }. */
.omran-team-body {
    max-width: var(--container-content);
    margin-inline: auto;
    padding-inline: var(--space-24);
}

.omran-team-content-column {
    min-width: 0;
}

/* ──────────────────────────────────────────────────────────────────────
   SINGLE — bio prose

   Editorial accent: vertical dept-color hairline on the inline-start
   (right in RTL) and reading-grade typography (18px / 1.9). Echoes the
   dept-colored rule already on the hero top edge; the same accent tying
   the page together is a small editorial signal that says Omran rather
   than generic-Bootstrap. Numbered counter on `<strong>` headings inside
   the bio adds a subtle chapter-mark cadence — same device used on the
   /team/ archive's dept sections.
   ──────────────────────────────────────────────────────────────────── */

.omran-team-bio {
    position: relative;
    font-size: 18px;
    line-height: 1.9;
    color: var(--color-text);
    margin-block-end: var(--space-48);
    padding-inline-start: var(--space-24);
    border-inline-start: 2px solid var(--fmt-color, var(--color-primary));
}

/* Force justify on bio prose. The K2-imported bios carry inline
   `style="text-align: right;"` from the source CMS, which leaves the
   column visibly underfilled on short paragraphs. !important wins over
   the inline attribute. text-align-last keeps the final line of each
   paragraph reading-start aligned (no awkward stretched last lines). */
.omran-team-bio p,
.omran-team-bio ul,
.omran-team-bio ol,
.omran-team-bio li {
    text-align: justify !important;
    text-align-last: start;
}

.omran-team-bio p {
    margin: 0 0 var(--space-16);
}

.omran-team-bio p:empty {
    display: none;
}

.omran-team-bio strong {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 17px;
    display: inline-block;
    padding-block: 4px;
}

.omran-team-bio ul,
.omran-team-bio ol {
    margin: 0 0 var(--space-24);
    padding-inline-start: var(--space-24);
}

.omran-team-bio ul li,
.omran-team-bio ol li {
    margin-block-end: var(--space-8);
    line-height: 1.7;
}

.omran-team-bio--empty {
    color: var(--color-text-muted);
    font-style: italic;
}

.omran-team-no-outputs {
    padding: var(--space-32);
    background: var(--color-bg-warm);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    text-align: center;
    font-size: 15px;
}

/* ──────────────────────────────────────────────────────────────────────
   SINGLE — tabbed output feed
   ──────────────────────────────────────────────────────────────────── */

.omran-team-tabs {
    margin-block-start: var(--space-48);
}

.omran-team-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-block-end: 2px solid var(--color-border);
    margin-block-end: var(--space-24);
    overflow-x: auto;
    scrollbar-width: thin;
}

/* GeneratePress applies its own background/border to native <button>
   elements (including a dark hover fill). Reset with !important so the
   tab reads as a flat text-only control with only the primary-color
   underline as state, the same way GP-button overrides are forced
   elsewhere in this theme. */
.omran-team-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent !important;
    border: 0 !important;
    border-block-end: 3px solid transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-block-end: -2px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.omran-team-tab:hover,
.omran-team-tab:focus {
    background: transparent !important;
    color: var(--color-primary);
    border-block-end-color: rgba(92, 45, 14, 0.35) !important;
}

.omran-team-tab[aria-selected="true"],
.omran-team-tab.is-active {
    background: transparent !important;
    color: var(--color-primary);
    border-block-end-color: var(--color-primary) !important;
    font-weight: 600;
}

.omran-team-tab:focus-visible {
    outline: 2px solid var(--color-link);
    outline-offset: 2px;
}

.omran-team-tab-count {
    font-size: 12px;
    color: var(--color-text-muted);
    background: var(--color-bg-warm);
    padding: 2px 6px;
    line-height: 1;
}

.omran-team-tab[aria-selected="true"] .omran-team-tab-count {
    color: var(--color-primary);
    background: #fff;
}

.omran-team-tabpanel[hidden] {
    display: none;
}

.omran-team-tabpanel-footer {
    margin-block-start: var(--space-32);
    text-align: start;
}

.omran-team-show-all {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    background: transparent;
    border: 1px solid var(--color-primary);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    letter-spacing: 0.01em;
}

.omran-team-show-all::after {
    content: '←';
    font-size: 16px;
    line-height: 1;
    transition: transform 0.18s ease;
}

.omran-team-show-all:hover,
.omran-team-show-all:focus-visible {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    outline: none;
}

.omran-team-show-all:hover::after,
.omran-team-show-all:focus-visible::after {
    transform: translateX(-3px);
}

/* ──────────────────────────────────────────────────────────────────────
   SINGLE — bibliography list (used in tab panels)

   Editorial pattern matching peer institutions (Brookings / Carnegie /
   Belfer): year on the inline-end as a typographic anchor, title leading
   the body, type + full date as a single muted meta line. Hairline
   between rows; no card chrome; no thumbnails (those belong on a
   discovery archive, not on a known-author/known-type filtered list).
   ──────────────────────────────────────────────────────────────────── */

.omran-team-output-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-block-start: 1px solid var(--color-border);
}

.omran-team-output-entry {
    border-block-end: 1px solid var(--color-border);
}

.omran-team-output-entry-link {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: var(--space-20, 20px);
    padding: var(--space-16) 0;
    align-items: baseline;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.omran-team-output-entry-link:hover,
.omran-team-output-entry-link:focus-visible {
    background: var(--color-bg-warm);
    outline: none;
    padding-inline: var(--space-12);
    margin-inline: calc(var(--space-12) * -1);
}

.omran-team-output-entry-link:hover .omran-team-output-entry-title,
.omran-team-output-entry-link:focus-visible .omran-team-output-entry-title {
    color: var(--color-primary);
}

/* Year — typographic anchor on the inline-end. Display weight,
   slightly smaller than title, primary-color, latin-numeric. */
.omran-team-output-entry-year {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: end;
    font-variant-numeric: tabular-nums;
    align-self: baseline;
}

.omran-team-output-entry-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.omran-team-output-entry-title {
    font-family: var(--font-primary);
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.45;
    transition: color 0.15s ease;
}

.omran-team-output-entry-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.omran-team-output-entry-sep {
    opacity: 0.5;
}

.omran-team-output-entry-type {
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ──────────────────────────────────────────────────────────────────────
   SINGLE — department peers rail (full-width band below the bibliography)

   Editorial pattern from peer institutions: after a researcher's profile
   ends, give the visitor an onward path within the same research unit.
   Treated as a typographic section header + a horizontal 3-up row, NOT a
   sidebar card. No card chrome; the section breathes the full content
   width and is anchored only by a top hairline.
   ──────────────────────────────────────────────────────────────────── */

.omran-team-other-in-dept {
    max-width: var(--container-content);
    margin: 0 auto;
    padding: var(--space-64) var(--space-24) var(--space-48);
    margin-block-start: var(--space-48);
    border-block-start: 1px solid var(--color-border);
}

.omran-team-other-in-dept-title {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-32);
    padding: 0;
    border: 0;
    text-transform: none;
}

/* Editorial leading numeral on the section header — matches the
   chapter-mark cadence used on the dept sections of the /team/ archive. */
.omran-team-other-in-dept-title::before {
    content: '01';
    color: var(--fmt-color, var(--color-primary));
    margin-inline-end: var(--space-12);
    padding-inline-end: var(--space-12);
    border-inline-end: 1px solid var(--fmt-color, var(--color-primary));
    font-weight: 600;
    letter-spacing: 0.08em;
}

/* Legacy sidebar cards no longer rendered — kept to preserve cascade if
   any other CPT picks them up. */
.omran-team-meta-sidebar,
.omran-team-output-counts {
    background: #fff;
    border: 1px solid var(--color-border);
    padding: var(--space-20, 20px);
}

.omran-team-meta-sidebar-title,
.omran-team-output-counts-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-16);
    padding-block-end: var(--space-8);
    border-block-end: 1px solid var(--color-border);
}

.omran-team-meta-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.omran-team-meta-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: var(--space-8);
    font-size: 14px;
    line-height: 1.5;
}

.omran-team-meta-row dt {
    color: var(--color-text-muted);
    font-weight: 500;
}

.omran-team-meta-row dd {
    margin: 0;
    color: var(--color-text);
    word-break: break-word;
}

.omran-team-meta-row dd a {
    color: var(--color-link);
}

.omran-team-output-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

.omran-team-output-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: var(--space-12);
    background: var(--color-bg-warm);
    border-inline-start: 3px solid var(--fmt-color, var(--color-primary));
    text-decoration: none;
    color: var(--color-text);
    transition: background 0.15s ease, transform 0.15s ease;
}

.omran-team-output-chip:hover,
.omran-team-output-chip:focus-visible {
    background: #fff;
    transform: translateX(-2px);
    outline: none;
}

.omran-team-output-chip-count {
    font-size: 18px;
    font-weight: 700;
    color: var(--fmt-color, var(--color-primary));
    line-height: 1;
}

.omran-team-output-chip-label {
    font-size: 12px;
    color: var(--color-text-muted);
}

.omran-team-other-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.omran-team-other-list > li {
    border-inline-end: 1px solid var(--color-border);
}

.omran-team-other-list > li:last-child {
    border-inline-end: 0;
}

.omran-team-other-row {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: var(--space-20, 20px);
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: var(--space-20, 20px) var(--space-24);
    transition: background 0.15s ease;
}

.omran-team-other-row:hover,
.omran-team-other-row:focus-visible {
    background: var(--color-bg-warm);
    outline: none;
}

.omran-team-other-thumb {
    width: 104px;
    height: 104px;
    aspect-ratio: 1 / 1;
    background: var(--color-bg-warm);
    color: var(--color-primary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    filter: grayscale(1) contrast(1.04);
    transition: filter 0.4s ease;
}

.omran-team-other-row:hover .omran-team-other-thumb {
    filter: grayscale(0) contrast(1);
}

.omran-team-other-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.omran-team-other-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.omran-team-other-name {
    font-size: 19px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
    transition: color 0.15s ease;
}

.omran-team-other-row:hover .omran-team-other-name {
    color: var(--color-primary);
}

.omran-team-other-role {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-block-start: 2px;
}

/* ──────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .omran-team-archive-hero-stats {
        gap: var(--space-32);
    }
    .omran-team-archive-hero-stats dd {
        font-size: 46px;
    }
    .omran-team-grid--flat {
        grid-template-columns: repeat(2, 1fr);
    }
    .omran-team-grid--flat > .omran-team-member-card:not(:nth-child(3n)) {
        border-inline-end: 0;
    }
    .omran-team-grid--flat > .omran-team-member-card:nth-child(odd) {
        border-inline-end: var(--rule-hairline-warm);
    }
    .omran-team-output-chips {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .omran-team-archive-hero {
        padding: var(--space-48) 0 var(--space-32);
    }
    .omran-team-archive-hero-title {
        font-size: clamp(34px, 9vw, 54px);
    }
    .omran-team-archive-hero-stats dd {
        font-size: 38px;
    }
    .omran-team-archive-hero-stats {
        gap: var(--space-24);
    }
    .omran-team-controls {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-12);
    }
    .omran-team-controls-right {
        width: 100%;
    }
    .omran-team-search {
        flex: 1;
        min-width: 0;
    }
    .omran-team-hero-inner {
        grid-template-columns: 1fr;
        text-align: start;
        gap: var(--space-32);
    }
    .omran-team-hero-photo {
        width: 200px;
        height: 200px;
    }
    .omran-team-hero-photo-fallback {
        font-size: 64px;
    }
    .omran-team-bio {
        font-size: 17px;
    }
    .omran-team-other-list {
        grid-template-columns: 1fr;
    }
    .omran-team-other-list > li {
        border-inline-end: 0;
        border-block-end: 1px solid var(--color-border);
    }
    .omran-team-other-list > li:last-child {
        border-block-end: 0;
    }
    .omran-team-output-entry-link {
        grid-template-columns: 48px 1fr;
        gap: var(--space-12);
        padding: var(--space-12) 0;
    }
    .omran-team-output-entry-year {
        font-size: 14px;
    }
    .omran-team-output-entry-title {
        font-size: 16px;
    }
    .omran-team-dept-title {
        font-size: 24px;
    }
}

@media (max-width: 540px) {
    .omran-team-grid,
    .omran-team-grid--flat {
        grid-template-columns: 1fr;
    }
    .omran-team-grid > .omran-team-member-card:nth-child(odd),
    .omran-team-grid--flat > .omran-team-member-card:nth-child(odd) {
        border-inline-end: 0;
    }
    .omran-team-member-card {
        grid-template-columns: 1fr 90px;
        padding: var(--space-20, 20px);
    }
    .omran-team-member-card-photo {
        width: 90px;
        height: 90px;
    }
    .omran-team-member-card-name {
        font-size: 19px;
    }
    .omran-team-output-chips {
        grid-template-columns: repeat(2, 1fr);
    }
    .omran-team-meta-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}
