/* College pages (wave 13, 2026-11-09, core/collegepage.py): department photo cards and programme level groups with the
   emblem level marks. Logical properties only, so RTL (Arabic) mirrors by itself; phones from 360 px. */

/* ---- department cards */
.w-dept-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2, 16px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)) }
.w-dept-card { padding: 0; overflow: hidden; display: flex; flex-direction: column }
.w-dept-card > a.w-cover-link { display: block }
.w-dept-card .w-cover { aspect-ratio: 4 / 3 }
.w-dept-body { padding: var(--s-2, 16px) var(--s-2, 16px) var(--s-2, 16px); display: flex; flex-direction: column; gap: 6px;
  flex: 1 1 auto }
.w-dept-name { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.4;
  color: var(--green-950, #072A1F); overflow-wrap: anywhere }
html[lang="ar"] .w-dept-name { font-size: 19px; font-weight: 700; line-height: 1.6 }
body.w .w-dept-name a { color: inherit; display: inline-flex; min-height: 44px; align-items: center }
body.w .w-dept-name a:hover { text-decoration: underline; text-decoration-color: var(--gold-500, #B08D3C) }
.w-dept-summary { margin: 0; color: var(--ink-2, #4A5B52) }
.w-dept-foot { margin-top: auto; padding-top: var(--s-1, 8px); border-top: 1px solid var(--line, #E6E1D4); display: flex;
  flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px }
body.w .w-dept-foot a.w-green-link { display: inline-flex; align-items: center; min-height: 40px }

/* ---- programme level groups */
.w-lv-icon { flex: none; display: inline-block; vertical-align: middle }
.w-lv-chips { display: flex; flex-wrap: wrap; gap: var(--s-1, 8px); margin: 0 0 var(--s-3, 24px) }
body.w .w-lv-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 8px;
  padding-inline: 8px 14px; border-radius: var(--pill, 999px); border: 1px solid var(--line-2, #D3CCB8);
  background: var(--surface, #fff); color: var(--green-950, #072A1F); font: 600 14px/1.3 var(--font-body);
  text-decoration: none; cursor: pointer }
body.w .w-lv-chip:hover { border-color: var(--gold-500, #B08D3C); background: var(--gold-50, #FBF6EA); text-decoration: none }
body.w .w-lv-chip:focus-visible { outline: 3px solid var(--focus, #B08D3C); outline-offset: 2px }
body.w .w-lv-chip[aria-current="true"], body.w .w-lv-chip[aria-pressed="true"] { background: var(--green-900, #0B3D2E);
  border-color: var(--green-900, #0B3D2E); color: #fff }
body.w .w-lv-chip[aria-current="true"] .w-lv-icon { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .9)) }
.w-lv-all { padding-inline: 14px }
body.w .w-lv-chip[hidden], .w-lv-group[hidden] { display: none }
.w-lv-n { display: inline-flex; min-width: 24px; justify-content: center; padding: 1px 7px; border-radius: var(--pill, 999px);
  background: var(--green-100, #E8F3EC); color: var(--green-900, #0B3D2E); font-size: 12px; font-weight: 700 }
.w-lv-group { scroll-margin-top: 90px }
.w-lv-group + .w-lv-group { margin-top: var(--s-5, 40px) }
.w-lv-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 var(--s-2, 16px);
  padding-bottom: 10px; border-bottom: 2px solid var(--gold-300, #E2C77E); font-family: var(--font-display);
  font-size: 21px; font-weight: 600; color: var(--green-950, #072A1F) }
html[lang="ar"] .w-lv-head { font-weight: 700 }
.w-lv-count { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--ink-2, #4A5B52) }
.w-lv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2, 16px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)) }
.w-lv-list > li { display: flex }
.w-lv-prog { width: 100% }
.w-lv-prog-name { margin: 0 }
.w-lv-prog.is-pinned { border-color: var(--gold-400, #C9A54C); box-shadow: 0 0 0 1px var(--gold-300, #E2C77E), var(--sh-1, none) }
.w-lv-pin { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: var(--pill, 999px);
  background: var(--gold-100, #F5EBD3); color: var(--gold-700, #7D5F17) }
.w-lv-short { color: var(--ink-2, #4A5B52) }

@media (max-width: 720px) {
  .w-dept-grid, .w-lv-list { grid-template-columns: 1fr }
  .w-lv-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: -4px; padding-inline: 4px;
    scrollbar-width: thin }
  body.w .w-lv-chip { flex: none }
  .w-lv-head { font-size: 19px }
}
@media (min-width: 480px) and (max-width: 720px) { .w-dept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (prefers-reduced-motion: reduce) { .w-lv-group { scroll-behavior: auto } }
