/* ==========================================================================
   About page

     hero + facts rail      <x-uowa.pages.hero-feature> + stat-rail, styled by
                            uowa-pages.css — the same opening as الحياة في
                            الجامعة and التسجيل, by design
     vision                 president (editorial split, compact portrait)
     presidency (cards)     colleges summary      establishment · council
     portal (kind cards)    departments (chips from uowa-pages.css)
     identity (dark)        accreditation         rankings · history
     campus (dark)          explore (photo tiles) CTA (dark)

   Page-scoped: pushed once from resources/views/university/about.blade.php
   and linked nowhere else.

   The register is editorial rather than "cards": headings set to the start
   edge with a gold index number, figures as numerals on hairlines, portraits
   without boxes, photography for every dark band. Chrome is deliberately
   scarce — one hairline colour, one shadow, gold as a thin accent — because
   restraint is what reads as institutional.

   Palette is the site's own: navy --ul-primary and gold --ul-c3, which
   resolve per locale (#0b254e/#febe35 under style.css, #041C33/#fec619 under
   en.css), so one file serves Arabic and English. Direction is handled with
   logical properties; the only ltr/rtl branch is letter-spacing, because
   Arabic is a connected script and negative tracking pulls the joins apart.
   ========================================================================== */

:root {
  --ab-ink: var(--ul-primary);
  --ab-gold: var(--ul-c3);
  --ab-band: var(--ul-primary);

  --ab-paper: #fff;
  --ab-paper-alt: #f6f7f9;

  --ab-body: rgba(4, 28, 51, 0.7);
  --ab-muted: rgba(4, 28, 51, 0.5);
  --ab-on-dark: rgba(255, 255, 255, 0.78);
  --ab-on-dark-soft: rgba(255, 255, 255, 0.55);

  --ab-hairline: rgba(4, 28, 51, 0.1);
  --ab-hairline-dark: rgba(255, 255, 255, 0.16);

  --ab-shadow: 0 30px 60px -20px rgba(4, 28, 51, 0.22);

  --ab-r: 6px;
  --ab-r-lg: 12px;

  --ab-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ab-ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
  --ab-pattern: url('../img/3bg.png');

  /* One section rhythm for the whole page. */
  --ab-band-y: clamp(72px, 8.5vw, 140px);

  counter-reset: ab-section;
}

/* ==========================================================================
   Shared type
   ========================================================================== */

html[lang='en'] .ul-about-title,
html[lang='en'] .ul-about-stat-value,
html[lang='en'] .ul-about-quote {
  letter-spacing: -0.025em;
}

html[lang='ar'] .ul-about-title,
html[lang='ar'] .ul-about-stat-value,
html[lang='ar'] .ul-about-quote {
  letter-spacing: normal;
}

.ul-about-band {
  position: relative;
  padding-top: var(--ab-band-y);
  padding-bottom: var(--ab-band-y);
}

.ul-about-vision,
.ul-about-leadership,
.ul-about-timeline {
  background: var(--ab-paper-alt);
}

/* Hairline between adjacent light bands, so the rhythm never depends on a
   colour change alone. */
.ul-about-band + .ul-about-band {
  border-top: 1px solid var(--ab-hairline);
}

/* --------------------------------------------------------------------------
   Section head — gold index + title, start-aligned
   -------------------------------------------------------------------------- */
.ul-about-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 1.8vw, 28px);
  margin-bottom: clamp(36px, 4vw, 64px);
}

/* A `ch` CAP ON THE HEAD IS A CAP ON THE TITLE, AND IT IS MEASURED WRONG.
   `ch` resolves against the element's own font size — body size here, ~8px a
   character — while the title above it is set as large as 52px. 76ch came out
   around 610px, and "Institutional University Portal" needs nearer 780px at
   that size, so the English headings broke onto a second line with the band
   half empty beside them. Arabic never hit it: «بوابة الجامعة المؤسسية» is
   shorter and fits either way.

   The cap was only ever there so a standfirst would not run the full width of
   the page, so it belongs on the standfirst. The title takes the room it
   needs and shrinks with the viewport through its own clamp. */
.ul-about-head-text {
  min-width: 0;
}

.ul-about-head-tight {
  margin-bottom: clamp(20px, 2vw, 32px);
}

.ul-about-head-stack {
  max-width: none;
}

/* The index counts only sections that actually render, so a CMS category
   left empty never leaves a hole in the numbering. */
.ul-about-index {
  flex: 0 0 auto;
  counter-increment: ab-section;
  /* Centred against the title's FIRST LINE. `0.55em` was measured against
     this element's own 12-14px, not the title's 28-52px, so the number rode
     high above the name beside it. Half the difference between that line box
     and this one puts the two on the same level at every width. */
  padding-top: calc((clamp(28px, 3.2vw, 52px) * 1.18 - 1em) / 2);
  font-size: clamp(12px, 0.8vw, 14px);
  font-weight: 700;
  line-height: 1;
  color: var(--ab-gold);
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

.ul-about-index::before {
  content: counter(ab-section, decimal-leading-zero);
}

.ul-about-index::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  margin-top: 8px;
  background: var(--ab-gold);
}

.ul-about-head-text {
  min-width: 0;
}

.ul-about-title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 52px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ab-ink);
  /* `balance` splits a name that would fit on one line into two even halves;
     `pretty` only tidies the last line, so a section name stays on one line
     until the width genuinely runs out. */
  text-wrap: pretty;
  /* A single very long word — a URL, a compound — shortens the line rather
     than pushing the band sideways. */
  overflow-wrap: break-word;
}

.ul-about-title-light {
  color: #fff;
}


/* The section title as a link, and NOTHING ELSE. It was underlined as the
   pointer crossed it; the heading is meant to read as the heading it is,
   not to answer the mouse. The only state left is the focus ring, which is
   not decoration — it is how a keyboard tells you where it is. */
.ul-about-title-link,
.ul-about-title .ul-about-title-link,
.ul-about-title-light .ul-about-title-link {
  /* TWO CLASSES DEEP ON PURPOSE. `a { color: var(--black) }` in the locale
     stylesheet is weaker than this on specificity, but the heading it sits
     in is white on the dark bands and the link must follow it — scoped like
     this there is no sheet and no order in which it can lose. */
  color: inherit;
  text-decoration: none;
}

.ul-about-sub {
  /* The cap that used to sit on .ul-about-head, where it also squeezed the
     title. Here it is measured against the standfirst's own size, which is
     what `ch` is for. */
  max-width: 68ch;
  margin: clamp(10px, 1vw, 16px) 0 0;
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.85;
  color: var(--ab-body);
}

.ul-about-head-light .ul-about-title {
  color: #fff;
}

.ul-about-head-light .ul-about-sub {
  color: var(--ab-on-dark);
}

.ul-about-eyebrow {
  margin: 0 0 clamp(6px, 0.6vw, 10px);
  font-size: clamp(12px, 0.85vw, 14px);
  font-weight: 700;
  color: var(--ab-muted);
}

/* Latin only: spacing the letters of a joined script breaks the word. */
[dir="ltr"] .ul-about-eyebrow {
  letter-spacing: 0.04em;
}

.ul-about-eyebrow-light {
  color: var(--ab-gold);
}

.ul-about-prose {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(15px, 0.98vw, 18px);
  line-height: 2;
  color: var(--ab-body);
}

/* --------------------------------------------------------------------------
   Text link with a travelling arrow — the page's only "button" outside the
   CTA band. Reads as editorial, not as a form control.
   -------------------------------------------------------------------------- */
.ul-about-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(22px, 2vw, 34px);
  padding: 0 0 6px;
  background: none;
  border: none;
  border-bottom: 1.5px solid var(--ab-gold);
  font-size: clamp(14px, 0.92vw, 16px);
  font-weight: 700;
  color: var(--ab-ink);
  cursor: pointer;
  transition: gap 0.4s var(--ab-ease), color 0.3s var(--ab-ease);
}

.ul-about-link i {
  font-size: 12px;
  color: var(--ab-gold);
  transition: transform 0.4s var(--ab-ease);
}

.ul-about-link:hover {
  gap: 18px;
}

/* --------------------------------------------------------------------------
   Buttons — CTA band only
   -------------------------------------------------------------------------- */
.ul-about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 1.1vw, 18px) clamp(28px, 2.4vw, 40px);
  border: 1.5px solid var(--ab-gold);
  border-radius: var(--ab-r);
  font-size: clamp(14px, 0.9vw, 16px);
  font-weight: 700;
  color: var(--ab-ink);
  background: var(--ab-gold);
  text-decoration: none;
  transition:
    background-color 0.35s var(--ab-ease),
    border-color 0.35s var(--ab-ease),
    color 0.35s var(--ab-ease),
    transform 0.35s var(--ab-ease);
}

.ul-about-btn:hover {
  color: var(--ab-ink);
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

.ul-about-btn-ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

.ul-about-btn-ghost:hover {
  color: var(--ab-ink);
  background: #fff;
  border-color: #fff;
}

/* --------------------------------------------------------------------------
   Opening band — the facts rail alone. On الحياة في الجامعة the muted band
   that carries the rail goes on to hold content, so its bottom padding and
   the rail's end margin are earned. Here the band holds only the rail (the
   vision block inside it is empty until the CMS is filled), and those two
   spacings added up to ~120px of bare grey under the numbers. The president
   band that follows supplies the rhythm instead.
   -------------------------------------------------------------------------- */
/* Two classes, not one: `.ul-page-section.is-muted` (uowa-pages.css) paints
   this band grey and would outrank a lone `.ul-about-open`, leaving a grey
   strip either side of the rail below the hero's edge. */
.ul-page-section.ul-about-open {
  padding-bottom: 0;
  background: transparent;
}

.ul-about-open .ul-statrail-wrap {
  margin-block-end: 0;
}

/* Only when the vision block actually renders does the band need room. */
.ul-about-open .ul-about-vision {
  margin-top: clamp(40px, 5vw, 72px);
}

/* ==========================================================================
   §03 Vision — three columns of text on hairlines, no cards
   ========================================================================== */

.ul-about-vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.ul-about-vision-item {
  padding: clamp(6px, 1vw, 16px) clamp(24px, 2.6vw, 44px);
  border-inline-start: 1px solid var(--ab-hairline);
}

.ul-about-vision-item:first-child {
  padding-inline-start: 0;
  border-inline-start: none;
}

.ul-about-vision-title {
  margin: 0 0 clamp(12px, 1vw, 18px);
  font-size: clamp(18px, 1.3vw, 24px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ab-ink);
}

.ul-about-vision-title::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  margin-bottom: clamp(14px, 1.2vw, 20px);
  background: var(--ab-gold);
}

.ul-about-vision-text {
  margin: 0;
  font-size: clamp(14px, 0.92vw, 16px);
  line-height: 1.95;
  color: var(--ab-body);
}

/* ==========================================================================
   §04 President — editorial split
   ========================================================================== */

.ul-about-president-grid {
  display: grid;
  /* 4/8 rather than 5/7 and a hard cap on the media column: the portrait
     was carrying the section; it should sit beside the message, not lead it.
     Centred vertically so the text block sits in the portrait's middle band
     rather than hanging off its top edge. */
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}

.ul-about-president-media {
  max-width: 340px;
}

.ul-about-president-media {
  position: relative;
  margin: 0;
  padding-block-start: clamp(28px, 3vw, 48px);
  padding-inline-end: clamp(28px, 3vw, 48px);
}

/* Navy slab behind and offset from the portrait, so the light band still
   carries the brand colour and the photograph reads as mounted. */
.ul-about-president-media::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-block-end: clamp(28px, 3vw, 48px);
  inset-inline-start: clamp(28px, 3vw, 48px);
  inset-inline-end: 0;
  background: var(--ab-band);
  border-radius: var(--ab-r-lg);
}

.ul-about-president-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--ab-r-lg);
  box-shadow: var(--ab-shadow);
}

/* Gold hairline just inside the photo edge. */
.ul-about-president-media::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset-block-start: calc(clamp(28px, 3vw, 48px) + 10px);
  inset-block-end: 10px;
  inset-inline-start: 10px;
  inset-inline-end: calc(clamp(28px, 3vw, 48px) + 10px);
  border: 1px solid rgba(254, 190, 53, 0.7);
  border-radius: calc(var(--ab-r-lg) - 4px);
  pointer-events: none;
}

/* A soft panel: the message reads as a letter, not as loose text beside a
   photograph. Gold rule at the leading edge marks it as a voice. */
.ul-about-president-body {
  min-width: 0;
  padding: clamp(24px, 2.6vw, 44px) clamp(24px, 2.8vw, 48px);
  background: var(--ab-paper-alt);
  border-inline-start: 3px solid var(--ab-gold);
  border-radius: var(--ab-r-lg);
}

/* Inside the panel the index sits above the eyebrow rather than in a side
   column: the column cost the name ~50px of measure, which is the difference
   between one line and an ugly two in the wider fallback font. */
.ul-about-president-body .ul-about-head {
  display: block;
  margin-bottom: clamp(16px, 1.6vw, 26px);
}

.ul-about-president-body .ul-about-index {
  display: inline-block;
  padding-top: 0;
  margin-bottom: 10px;
}

/* The name is a person, not a section title: two sizes down from the page
   title scale, no balancing (which split it into two even halves), and a
   measure wide enough that it stays on one line on a desktop. */
.ul-about-president-name {
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.3;
  text-wrap: pretty;
}

.ul-about-president-role {
  margin: 8px 0 0;
  font-size: clamp(12.5px, 0.85vw, 14.5px);
  font-weight: 700;
  color: var(--ab-muted);
}

.ul-about-president-body .ul-about-prose {
  max-width: none;
  font-size: clamp(15px, 1vw, 18px);
}

/* --------------------------------------------------------------------------
   University council — photographic band on the About page (.ul-cl-*)

   Full width. The Karbala skyline sits under a navy gradient that is solid
   behind the text (reading-start side) and thins toward the far edge so the
   gold dome shows through, with a warm gold glow. Content: eyebrow, title,
   bio, a stack of member portraits with the count, and a gold button to
   /council.
   -------------------------------------------------------------------------- */
.ul-cl {
  --cl-navy: var(--ul-primary, #0b254e);
  --cl-gold: var(--ul-c3, #febe35);
  --cl-ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  overflow: hidden;
  padding: clamp(80px, 9vw, 150px) 0;
  color: #fff;
  background-color: var(--cl-navy);
  isolation: isolate;
}

/* The photograph, slowly drifting in scale so the band feels alive. */
.ul-cl::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--cl-image) center 70% / cover no-repeat;
  animation: ul-cl-drift 24s ease-in-out infinite alternate;
}

@keyframes ul-cl-drift {
  from { transform: scale(1.02); }
  to   { transform: scale(1.1); }
}

/* Navy wash: solid on the text side, open on the far side; a warm gold glow
   near the dome; darker top and bottom edges for depth. */
.ul-cl::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 20% 75%, rgba(254, 190, 53, 0.22), transparent 60%),
    linear-gradient(to left, rgba(11, 37, 78, 0.97) 0%, rgba(11, 37, 78, 0.9) 38%, rgba(11, 37, 78, 0.45) 72%, rgba(11, 37, 78, 0.25) 100%),
    linear-gradient(to bottom, rgba(6, 18, 40, 0.55), transparent 30%, transparent 70%, rgba(6, 18, 40, 0.65));
}

[dir="ltr"] .ul-cl::after {
  background:
    radial-gradient(60% 80% at 80% 75%, rgba(254, 190, 53, 0.22), transparent 60%),
    linear-gradient(to right, rgba(11, 37, 78, 0.97) 0%, rgba(11, 37, 78, 0.9) 38%, rgba(11, 37, 78, 0.45) 72%, rgba(11, 37, 78, 0.25) 100%),
    linear-gradient(to bottom, rgba(6, 18, 40, 0.55), transparent 30%, transparent 70%, rgba(6, 18, 40, 0.65));
}

/* 620px fitted «مجلس الجامعة» and nothing longer: "University Council" sets
   to about 600px at the title's 64px, and the inline padding took the text
   box below that, so the English heading broke across two lines inside a band
   that was two-thirds empty beside it. The paragraph keeps its own 52ch
   measure below, so widening this block widens only the heading. */
.ul-cl-inner {
  position: relative;
  max-width: min(100%, 760px);
  padding-inline-start: clamp(22px, 2.4vw, 36px);
}

/* Gold rule down the reading-start edge of the text block. */
.ul-cl-inner::before {
  content: "";
  position: absolute;
  inset-block: 6px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--cl-gold), rgba(254, 190, 53, 0.1));
}

.ul-cl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: clamp(13px, 0.9vw, 15px);
  font-weight: 700;
  color: var(--cl-gold);
}

/* Latin only: spacing the letters of a joined script breaks the word. */
[dir="ltr"] .ul-cl-eyebrow {
  letter-spacing: 0.02em;
}

.ul-cl-eyebrow .ul-about-index {
  padding: 0;
  color: rgba(255, 255, 255, 0.55);
}

.ul-cl-eyebrow .ul-about-index::after {
  display: none;
}

.ul-cl-eyebrow .ul-about-index + span::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  margin-inline-end: 12px;
  vertical-align: middle;
  background: rgba(254, 190, 53, 0.6);
}

.ul-cl-title {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
  /* Only tidies the last line, so the name stays on one until the width
     genuinely runs out — `balance` would split a fitting name in half. */
  text-wrap: pretty;
}

.ul-cl-bio {
  margin: clamp(16px, 1.6vw, 24px) 0 0;
  max-width: 52ch;
  font-size: clamp(15.5px, 1.15vw, 19px);
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.82);
}

/* The portraits on one line and the button under them, not beside them: the
   stack of faces reads as the subject and the button as what to do about it,
   which is an order, not a pair. This is what the narrow layout already did;
   it is now what every width does. */
.ul-cl-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-top: clamp(30px, 3vw, 46px);
}

.ul-cl-people {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.ul-cl-faces {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ul-cl-faces li {
  width: 48px;
  height: 48px;
  margin-inline-start: -14px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--cl-navy);
  box-shadow: 0 0 0 1.5px rgba(254, 190, 53, 0.75);
  background: #fff;
  transition: transform 0.35s var(--cl-ease);
}

.ul-cl-faces li:first-child {
  margin-inline-start: 0;
}

.ul-cl-faces img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.ul-cl-people:hover .ul-cl-faces li {
  transform: translateY(-3px);
}

.ul-cl-people:hover .ul-cl-faces li:nth-child(2) { transition-delay: 0.04s; }
.ul-cl-people:hover .ul-cl-faces li:nth-child(3) { transition-delay: 0.08s; }
.ul-cl-people:hover .ul-cl-faces li:nth-child(4) { transition-delay: 0.12s; }
.ul-cl-people:hover .ul-cl-faces li:nth-child(5) { transition-delay: 0.16s; }

.ul-cl-count {
  font-size: 14.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

/* Same shape as the site's other buttons (10px, gold, navy label). */
.ul-cl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 1.7rem;
  border-radius: 10px;
  background: var(--cl-gold);
  color: var(--cl-navy);
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 16px 34px -18px rgba(254, 190, 53, 0.8);
  transition: background-color 0.3s var(--cl-ease), box-shadow 0.3s var(--cl-ease);
}

.ul-cl-btn i {
  font-size: 0.85em;
  transition: transform 0.3s var(--cl-ease);
}

.ul-cl-btn:hover,
.ul-cl-btn:focus-visible {
  background: #ffd166;
  color: var(--cl-navy);
  box-shadow: 0 18px 38px -16px rgba(254, 190, 53, 0.95);
}

[dir="rtl"] .ul-cl-btn:hover i { transform: translateX(-4px); }
[dir="ltr"] .ul-cl-btn:hover i { transform: translateX(4px); }

/* Narrow screens: the text runs full width, so the wash goes solid behind
   it and the photo shows through toward the bottom instead. */
@media screen and (max-width: 767px) {
  .ul-cl::after,
  [dir="ltr"] .ul-cl::after {
    background:
      radial-gradient(90% 50% at 50% 100%, rgba(254, 190, 53, 0.2), transparent 70%),
      linear-gradient(to bottom, rgba(11, 37, 78, 0.96) 0%, rgba(11, 37, 78, 0.88) 55%, rgba(11, 37, 78, 0.55) 100%);
  }
}

/* --------------------------------------------------------------------------
   President's message — navy letter panel (.ul-pm-*)

   Replaces the grey Bootstrap-like panel beside a floating portrait. One
   navy card: the portrait fills one side edge to edge and fades into the
   navy, the other side is the letter — eyebrow, big gold quote mark, the
   excerpt as a light pull-quote, and a signature block with a gold button.
   -------------------------------------------------------------------------- */
.ul-pm {
  --pm-navy: var(--ul-primary, #0b254e);
  --pm-gold: var(--ul-c3, #febe35);
  --pm-ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: clamp(420px, 36vw, 540px);
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(254, 190, 53, 0.10), transparent 55%),
    linear-gradient(160deg, #0f2d5c 0%, var(--pm-navy) 60%, #071a38 100%);
  box-shadow: 0 40px 80px -48px rgba(11, 37, 78, 0.7);
  isolation: isolate;
}

.ul-pm.is-textonly {
  grid-template-columns: 1fr;
}

/* Faint university-pattern texture on the letter side. */
.ul-pm::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 60%);
  mask-image: linear-gradient(to left, transparent, #000 60%);
}

/* A FIXED PORTRAIT. The figure used to stretch to the full height of its
   column, which was fine while the panel held only the excerpt. Opening the
   full message makes the column several screens tall, and a cover-fitted
   portrait stretched with it showed a narrow strip of the face. The photo now
   keeps the collapsed panel's height, sits at the top of its column, and fades
   into the navy below so the rest of the column reads as the letter paper. */
.ul-pm-photo {
  position: relative;
  margin: 0;
  align-self: start;
  height: clamp(420px, 36vw, 540px);
}

.ul-pm-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* The photo melts into the navy on its inner edge instead of stopping at a
   hard line. */
.ul-pm-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 72%, var(--pm-navy) 100%),
    linear-gradient(to left, transparent 55%, var(--pm-navy) 100%);
}

[dir="ltr"] .ul-pm-photo::after {
  background:
    linear-gradient(to bottom, transparent 72%, var(--pm-navy) 100%),
    linear-gradient(to right, transparent 55%, var(--pm-navy) 100%);
}

.ul-pm-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 1.8vw, 28px);
  padding: clamp(36px, 4.5vw, 72px) clamp(28px, 4.5vw, 76px);
  color: #fff;
}

.ul-pm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: clamp(13px, 0.9vw, 15px);
  font-weight: 700;
  color: var(--pm-gold);
}

/* Latin only: spacing the letters of a joined script breaks the word. */
[dir="ltr"] .ul-pm-eyebrow {
  letter-spacing: 0.02em;
}

.ul-pm-eyebrow .ul-about-index {
  padding: 0;
  color: rgba(255, 255, 255, 0.55);
}

.ul-pm-eyebrow .ul-about-index::after {
  display: none;
}

.ul-pm-eyebrow .ul-about-index + span::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  margin-inline-end: 12px;
  vertical-align: middle;
  background: rgba(254, 190, 53, 0.6);
}

.ul-pm-mark {
  font-size: clamp(40px, 3.6vw, 60px);
  line-height: 1;
  color: var(--pm-gold);
  opacity: 0.9;
}

[dir="ltr"] .ul-pm-mark {
  transform: scaleX(-1);
  align-self: flex-start;
}

.ul-pm-motto {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
}

.ul-pm-quote {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 400;
  line-height: 2;
  color: rgba(255, 255, 255, 0.86);
}

.ul-pm-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px 32px;
  margin-top: clamp(4px, 1vw, 12px);
  padding-top: clamp(20px, 2vw, 30px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ul-pm-sign {
  position: relative;
  padding-inline-start: 18px;
}

.ul-pm-sign::before {
  content: "";
  position: absolute;
  inset-block: 4px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--pm-gold);
}

.ul-pm-name {
  margin: 0;
  font-size: clamp(19px, 1.6vw, 26px);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.ul-pm-role {
  margin: 6px 0 0;
  font-size: clamp(13px, 0.9vw, 15px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

/* Same shape as the site's other buttons (10px, gold, navy label). */
/* THE MESSAGE OPENS IN PLACE. A checkbox the reader never sees drives it,
   so the panel expands with the stylesheet alone — no script, and the
   keyboard gets it for free because the control is a real form control with
   a <label>. The row trick (0fr → 1fr) animates to the content's own height,
   which a max-height guess cannot do. */
.ul-pm-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ul-pm-full {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--pm-ease, ease);
}

.ul-pm-full-inner {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 2.1;
}

.ul-pm-full-inner > *:first-child {
  margin-top: 0;
}

.ul-pm-full-inner p {
  margin: 0 0 14px;
}

.ul-pm-toggle:checked ~ .ul-pm-full {
  grid-template-rows: 1fr;
}

/* The excerpt is a stand-in for the message; once the message is open it is
   the same words a second time. */
.ul-pm-toggle:checked ~ .ul-pm-quote {
  display: none;
}

.ul-pm-toggle:focus-visible ~ .ul-pm-foot .ul-pm-expand {
  outline: 2px solid var(--pm-gold);
  outline-offset: 3px;
}

/* One button, two labels. */
.ul-pm-expand {
  cursor: pointer;
  user-select: none;
}

.ul-pm-more-close,
.ul-pm-toggle:checked ~ .ul-pm-foot .ul-pm-more-open {
  display: none;
}

.ul-pm-toggle:checked ~ .ul-pm-foot .ul-pm-more-close {
  display: inline;
}

.ul-pm-toggle:checked ~ .ul-pm-foot .ul-pm-expand i {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .ul-pm-full {
    transition: none;
  }
}

.ul-pm-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.95rem 1.6rem;
  border-radius: 10px;
  background: var(--pm-gold);
  color: var(--pm-navy);
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.3s var(--pm-ease);
}

.ul-pm-more i {
  font-size: 0.85em;
  transition: transform 0.3s var(--pm-ease);
}

.ul-pm-more:hover,
.ul-pm-more:focus-visible {
  background: #ffd166;
  color: var(--pm-navy);
}

[dir="rtl"] .ul-pm-more:hover i { transform: translateX(-4px); }
[dir="ltr"] .ul-pm-more:hover i { transform: translateX(4px); }

@media screen and (max-width: 991px) {
  .ul-pm {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ul-pm-photo {
    height: clamp(280px, 60vw, 420px);
  }

  .ul-pm-photo img {
    object-position: center 18%;
  }

  /* Stacked, the photo fades down into the letter instead of sideways. */
  .ul-pm-photo::after,
  [dir="ltr"] .ul-pm-photo::after {
    background: linear-gradient(to bottom, transparent 50%, var(--pm-navy) 100%);
  }
}

@media screen and (max-width: 575px) {
  .ul-pm {
    border-radius: 20px;
  }

  .ul-pm-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .ul-pm-more {
    justify-content: center;
  }
}

/* The motto as a true pull-quote: large, no box, a gold opening mark bled
   into the margin, hairlines above and below. */
.ul-about-quote {
  position: relative;
  margin: clamp(22px, 2.4vw, 40px) 0;
  padding: clamp(20px, 2vw, 32px) 0 clamp(20px, 2vw, 32px) 0;
  padding-inline-start: clamp(36px, 3.4vw, 56px);
  border-block: 1px solid var(--ab-hairline);
  font-size: clamp(18px, 1.5vw, 27px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--ab-ink);
  text-wrap: balance;
}

.ul-about-quote::before {
  content: '\201C';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: clamp(10px, 1vw, 18px);
  font-size: clamp(56px, 5vw, 84px);
  line-height: 1;
  color: var(--ab-gold);
}

html[lang='ar'] .ul-about-quote::before {
  content: '\201D';
}

.ul-about-president-full p {
  margin-bottom: clamp(13px, 1vw, 19px);
}

.ul-about-president-full h2,
.ul-about-president-full h3,
.ul-about-president-full h4,
.ul-about-president-full strong,
.ul-about-president-full b {
  color: var(--ab-ink);
}

.ul-about-president-full img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ab-r-lg);
}

/* Bootstrap sets display on many elements; `hidden` has to win. */
.ul-about-president-full[hidden],
.ul-about-prose[hidden] {
  display: none !important;
}

/* ==========================================================================
   Presidency — cards: portrait, name, post and profiles as one unit
   ========================================================================== */

.ul-about-people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 28px);
}

.ul-about-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(24px, 2.2vw, 36px) clamp(18px, 1.8vw, 28px) clamp(22px, 2vw, 30px);
  text-align: center;
  background: var(--ab-paper);
  border: 1px solid var(--ab-hairline);
  border-radius: var(--ab-r-lg);
  transition:
    transform 0.4s var(--ab-ease),
    border-color 0.4s var(--ab-ease),
    box-shadow 0.4s var(--ab-ease);
}

.ul-about-person:hover {
  transform: translateY(-4px);
  border-color: rgba(254, 190, 53, 0.5);
  box-shadow: var(--ab-shadow);
}

/* A modest square portrait — the card, not the photograph, is the unit. */
.ul-about-person-photo {
  width: clamp(104px, 8.5vw, 128px);
  height: clamp(104px, 8.5vw, 128px);
  margin: 0 0 clamp(14px, 1.3vw, 20px);
  overflow: hidden;
  border-radius: 14px;
  background: rgba(4, 28, 51, 0.06);
  box-shadow: 0 0 0 4px var(--ab-paper), 0 0 0 5px rgba(254, 190, 53, 0.55);
}

.ul-about-person-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.ul-about-person-name {
  margin: 0 0 6px;
  font-size: clamp(15px, 1.05vw, 19px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ab-ink);
  text-wrap: balance;
}

.ul-about-person-role {
  margin: 0;
  padding: 4px 14px;
  font-size: clamp(11.5px, 0.78vw, 13px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--ab-ink);
  background: rgba(254, 190, 53, 0.16);
  border-radius: 999px;
}

.ul-about-profiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: clamp(12px, 1.1vw, 18px) 0 0;
  padding: 0;
  list-style: none;
}

.ul-about-profiles a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 14px;
  color: var(--ab-ink);
  background: rgba(4, 28, 51, 0.05);
  border: 1px solid var(--ab-hairline);
  border-radius: 50%;
  text-decoration: none;
  transition:
    background-color 0.3s var(--ab-ease),
    border-color 0.3s var(--ab-ease),
    transform 0.3s var(--ab-ease);
}

.ul-about-profiles a:hover {
  background: var(--ab-gold);
  border-color: var(--ab-gold);
  transform: translateY(-2px);
}

/* ==========================================================================
   Dark photographic bands — identity, and campus
   ========================================================================== */

.ul-about-identity,
.ul-about-campus {
  position: relative;
  padding-top: var(--ab-band-y);
  padding-bottom: var(--ab-band-y);
  overflow: hidden;
  background: var(--ab-band);
  color: var(--ab-on-dark);
  isolation: isolate;
}

.ul-about-identity-media,
.ul-about-campus-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ul-about-identity-media img,
.ul-about-campus-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ul-about-identity-media::after,
.ul-about-campus-media::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Same rule as the hero: no logical directions in gradients. A flat base
     here so the band is never bare if the branches below fail to match. */
  background: rgba(4, 28, 51, 0.86);
}

/* Denser at the reading edge, where the text sits, lighter behind the
   tiles — mirrored per locale because gradients take physical directions. */
html[lang='ar'] .ul-about-identity-media::after,
html[lang='ar'] .ul-about-campus-media::after {
  background: linear-gradient(to left, rgba(4, 28, 51, 0.96) 0%, rgba(4, 28, 51, 0.88) 55%, rgba(4, 28, 51, 0.62) 100%);
}

html[lang='en'] .ul-about-identity-media::after,
html[lang='en'] .ul-about-campus-media::after {
  background: linear-gradient(to right, rgba(4, 28, 51, 0.96) 0%, rgba(4, 28, 51, 0.88) 55%, rgba(4, 28, 51, 0.62) 100%);
}

.ul-about-identity .ul-container,
.ul-about-campus .ul-container {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Identity layout — the statement alone, at the reading edge where the
   photo's overlay is densest.
   -------------------------------------------------------------------------- */
.ul-about-identity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.ul-about-identity-inner {
  min-width: 0;
}

.ul-about-identity-mark {
  display: block;
  width: clamp(52px, 4.4vw, 68px);
  height: auto;
  margin-bottom: clamp(16px, 1.6vw, 26px);
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.ul-about-identity-text {
  max-width: 52ch;
  margin: clamp(14px, 1.4vw, 22px) 0 0;
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.95;
  color: var(--ab-on-dark);
}

/* The ministerial order, set small and quiet: it is the proof line, not
   the message. */
.ul-about-identity-order {
  max-width: 52ch;
  margin: clamp(12px, 1.2vw, 18px) 0 0;
  padding-inline-start: 14px;
  border-inline-start: 2px solid var(--ab-gold);
  font-size: clamp(12.5px, 0.82vw, 14px);
  line-height: 1.8;
  color: var(--ab-on-dark-soft);
}

/* ==========================================================================
   Values — icon, name and one line, on white with no cards. Three to a row
   on desktop, two below.
   ========================================================================== */

.ul-about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 72px);
  row-gap: clamp(40px, 4.4vw, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ul-about-value {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.ul-about-value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(64px, 5.4vw, 84px);
  height: clamp(64px, 5.4vw, 84px);
  margin-bottom: clamp(18px, 1.8vw, 26px);
  font-size: clamp(34px, 3vw, 46px);
  color: var(--ab-gold);
}

.ul-about-value-icon i {
  transition: transform 0.4s var(--ab-ease), color 0.3s var(--ab-ease);
}

.ul-about-value:hover .ul-about-value-icon i {
  transform: translateY(-3px);
}

.ul-about-value-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ul-about-value-name {
  margin: 0 0 clamp(10px, 1vw, 14px);
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ab-ink);
}

.ul-about-value-text {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(14px, 0.95vw, 16px);
  line-height: 1.9;
  color: var(--ab-body);
}

/* ==========================================================================
   §07 Accreditation — light, two columns: lead on one side, seal cards on
   the other. Text is clamped and expands in place.
   ========================================================================== */

.ul-about-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}

.ul-about-split-lead .ul-about-head {
  margin-bottom: 0;
}

/* Sticky lead so the heading keeps company with a tall stack of cards. */
@media screen and (min-width: 992px) {
  .ul-about-split-lead {
    position: sticky;
    top: 140px;
  }
}

.ul-about-credentials {
  display: grid;
  gap: clamp(14px, 1.6vw, 24px);
}

.ul-about-credential {
  display: flex;
  gap: clamp(18px, 2vw, 32px);
  padding: clamp(24px, 2.4vw, 40px);
  background: var(--ab-paper);
  border: 1px solid var(--ab-hairline);
  border-radius: var(--ab-r-lg);
  transition: border-color 0.4s var(--ab-ease), box-shadow 0.4s var(--ab-ease);
}

.ul-about-credential:hover {
  border-color: rgba(254, 190, 53, 0.5);
  box-shadow: var(--ab-shadow);
}

/* The seal: a gold ring around the award mark, sized to read as a stamp. */
.ul-about-credential-seal {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(64px, 5vw, 84px);
  height: clamp(64px, 5vw, 84px);
  font-size: clamp(24px, 1.9vw, 32px);
  color: var(--ab-ink);
  background: rgba(254, 190, 53, 0.14);
  border: 2px solid var(--ab-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(254, 190, 53, 0.12);
}

.ul-about-credential-seal img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.ul-about-credential-body {
  min-width: 0;
}

.ul-about-credential-title {
  margin: 0 0 clamp(8px, 0.8vw, 12px);
  font-size: clamp(17px, 1.25vw, 23px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ab-ink);
  text-wrap: balance;
}

/* Clamped to four lines until expanded. The clamp sits on the paragraph,
   not the card, so the seal and title never move when it opens. */
.ul-about-credential-text {
  margin: 0;
  font-size: clamp(14px, 0.92vw, 16px);
  line-height: 1.9;
  color: var(--ab-body);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.ul-about-credential.is-open .ul-about-credential-text {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.ul-about-link-sm {
  margin-top: clamp(12px, 1.1vw, 18px);
  font-size: clamp(13px, 0.85vw, 15px);
}

.ul-about-credential.is-open .ul-about-link-sm i {
  transform: rotate(180deg);
}

/* ==========================================================================
   Colleges summary — two figures and one way onward, not a listing
   ========================================================================== */

.ul-about-summary {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  padding: clamp(28px, 3vw, 52px);
  background: var(--ab-paper);
  border: 1px solid var(--ab-hairline);
  border-radius: var(--ab-r-lg);
}

.ul-about-summary-lead .ul-about-head {
  margin-bottom: clamp(18px, 1.8vw, 28px);
}

/* Navy button variant for a light surface (the gold one lives on dark). */
.ul-about-btn-ink {
  gap: 10px;
  color: #fff;
  background: var(--ab-ink);
  border-color: var(--ab-ink);
}

.ul-about-btn-ink:hover {
  color: var(--ab-ink);
  background: var(--ab-gold);
  border-color: var(--ab-gold);
}

.ul-about-summary-figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
  margin: 0;
}

.ul-about-summary-figure {
  padding: clamp(18px, 1.8vw, 28px) clamp(14px, 1.4vw, 22px);
  text-align: center;
  background: var(--ab-paper-alt);
  border-radius: var(--ab-r-lg);
}

.ul-about-summary-figure dd {
  margin: 0 0 6px;
  font-size: clamp(34px, 3.6vw, 58px);
  font-weight: 700;
  line-height: 1;
  color: var(--ab-ink);
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

.ul-about-summary-figure dt {
  font-size: clamp(12.5px, 0.85vw, 14.5px);
  font-weight: 700;
  color: var(--ab-muted);
}

/* ==========================================================================
   Establishment — photograph beside prose
   ========================================================================== */

.ul-about-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4.5vw, 80px);
  align-items: center;
}

.ul-about-feature.is-textonly {
  grid-template-columns: 1fr;
}

.ul-about-feature-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--ab-r-lg);
  box-shadow: var(--ab-shadow);
}

.ul-about-feature-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ==========================================================================
   Council — round portraits on white, no cards. Three to a row on desktop,
   two below.
   ========================================================================== */

.ul-about-council {
  background: var(--ab-paper);
}

/* Flex rather than grid so a short last row (17 members) sits centred. */
.ul-about-council-grid {
  --ab-council-cols: 3;
  --ab-council-gap: clamp(24px, 3.4vw, 64px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: var(--ab-council-gap);
  row-gap: clamp(44px, 4.6vw, 76px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ul-about-member {
  flex: 0 0 calc((100% - (var(--ab-council-cols) - 1) * var(--ab-council-gap)) / var(--ab-council-cols));
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.ul-about-member-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(150px, 14vw, 200px);
  aspect-ratio: 1;
  margin: 0 0 clamp(18px, 1.8vw, 26px);
  overflow: hidden;
  background: var(--ab-ink);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--ab-paper), 0 0 0 6px rgba(254, 190, 53, 0.45);
  transition: box-shadow 0.4s var(--ab-ease);
}

.ul-about-member:hover .ul-about-member-photo {
  box-shadow: 0 0 0 5px var(--ab-paper), 0 0 0 7px var(--ab-gold);
}

.ul-about-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* No portrait on file: the university mark on navy, as a placeholder that
   reads as intentional rather than missing. */
.ul-about-member-photo img.ul-about-member-mark {
  width: 46%;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.ul-about-member-name {
  margin: 0 0 8px;
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ab-ink);
}

.ul-about-member-rank {
  margin: 0 0 6px;
  font-size: clamp(13px, 0.88vw, 15px);
  font-weight: 700;
  color: var(--ab-gold);
}

.ul-about-member-role {
  max-width: 30ch;
  margin: 0;
  font-size: clamp(13px, 0.88vw, 15px);
  line-height: 1.75;
  color: var(--ab-body);
}

/* ==========================================================================
   Portal — cards of three kinds (page / external link / file)
   ========================================================================== */

.ul-about-portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ul-about-portal-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.2vw, 18px);
  height: 100%;
  padding: clamp(18px, 1.6vw, 24px);
  text-decoration: none;
  background: var(--ab-paper);
  border: 1px solid var(--ab-hairline);
  border-radius: var(--ab-r-lg);
  transition:
    transform 0.35s var(--ab-ease),
    border-color 0.35s var(--ab-ease),
    box-shadow 0.35s var(--ab-ease);
}

.ul-about-portal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(254, 190, 53, 0.5);
  box-shadow: var(--ab-shadow);
}

.ul-about-portal-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 18px;
  color: var(--ab-ink);
  background: rgba(254, 190, 53, 0.16);
  border-radius: 12px;
}

.ul-about-portal-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.ul-about-portal-body {
  flex: 1 1 auto;
  min-width: 0;
  padding-block-end: 28px;
}

.ul-about-portal-name {
  display: block;
  font-size: clamp(14.5px, 1vw, 17px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ab-ink);
}

.ul-about-portal-text {
  display: block;
  margin-top: 4px;
  font-size: clamp(12.5px, 0.82vw, 14px);
  line-height: 1.7;
  color: var(--ab-body);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* The kind badge sits in the card's bottom corner, out of the text's way,
   and reads differently per kind so the affordance is visible at a glance. */
.ul-about-portal-kind {
  position: absolute;
  inset-block-end: 14px;
  inset-inline-end: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: var(--t-meta);
  font-weight: 700;
  color: var(--ab-muted);
  background: var(--ab-paper-alt);
  border-radius: 999px;
}

.ul-about-portal-card.is-external .ul-about-portal-kind {
  color: var(--ab-ink);
  background: rgba(254, 190, 53, 0.18);
}

.ul-about-portal-card.is-file .ul-about-portal-kind {
  color: #8a1c1c;
  background: rgba(138, 28, 28, 0.08);
}

/* Departments reuse the college-chip grid and heading from uowa-pages.css;
   the band supplies the vertical rhythm, so the chip section adds none. */
.ul-about-departments .ul-colleges-links {
  padding-top: 0;
  padding-bottom: 0;
}

/* Departments — a quiet index rather than a grid of boxes.

   Three columns of rows divided by hairlines, with generous space between the
   columns so they read as lists. No tiles, no icon wells: each row is a gold
   icon, the name, and an arrow that only appears on hover. The rule on the
   first row is pulled up and clipped, so lines sit only BETWEEN rows. */
.ul-about-departments .ul-colleges-grid {
  gap: 0 clamp(28px, 4vw, 64px);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  overflow: hidden;
}

.ul-about-departments .ul-colleges-grid > li {
  margin-top: -1px;
  border-top: 1px solid rgba(11, 37, 78, 0.09);
}

.ul-about-departments .ul-college-chip {
  height: 100%;
  gap: 16px;
  padding: 22px 2px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.ul-about-departments .ul-college-chip:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}

.ul-about-departments .ul-college-chip-icon {
  width: 22px;
  height: 22px;
  background: none;
  border-radius: 0;
  color: var(--ul-c3);
  font-size: 18px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ul-about-departments .ul-college-chip-name {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ul-primary);
  transition: color 0.25s ease;
}

.ul-about-departments .ul-college-chip-go {
  color: var(--ul-primary);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

[dir="ltr"] .ul-about-departments .ul-college-chip-go {
  transform: translateX(-6px);
}

.ul-about-departments .ul-college-chip:hover .ul-college-chip-icon {
  transform: scale(1.12);
}

.ul-about-departments .ul-college-chip:hover .ul-college-chip-name {
  color: #b8862a;
}

.ul-about-departments .ul-college-chip:hover .ul-college-chip-go,
.ul-about-departments .ul-college-chip:focus-visible .ul-college-chip-go {
  opacity: 1;
  transform: none;
}

/* Touch has no hover, so the arrow stays visible there. */
@media (hover: none) {
  .ul-about-departments .ul-college-chip-go {
    opacity: .5;
    transform: none;
  }
}
/* ==========================================================================
   Rankings — logo tiles linking out
   ========================================================================== */

.ul-about-rankings {
  background: var(--ab-paper-alt);
}

.ul-about-rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ul-about-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.1vw, 16px);
  height: 100%;
  padding: clamp(20px, 1.8vw, 28px) clamp(14px, 1.2vw, 18px);
  text-align: center;
  background: var(--ab-paper);
  border: 1px solid var(--ab-hairline);
  border-radius: var(--ab-r-lg);
  text-decoration: none;
  transition:
    border-color 0.35s var(--ab-ease),
    box-shadow 0.35s var(--ab-ease),
    transform 0.35s var(--ab-ease);
}

/* THE HOVER BELONGS TO EVERY TILE, NOT ONLY THE LINKED ONES. The logos are
   gold-washed at rest and come back to their own colours under the pointer —
   that is the whole gesture, and it was scoped to `a`, so a ranking body with
   no address filed sat there inert and the band looked broken.

   What stays scoped to the link is the part that PROMISES a click: the lift
   and the pointer. A tile with nowhere to go colours under the pointer and
   does nothing else. */
.ul-about-rank:hover {
  border-color: rgba(254, 190, 53, 0.5);
  box-shadow: var(--ab-shadow);
}

a.ul-about-rank:hover,
a.ul-about-rank:focus-visible {
  transform: translateY(-3px);
}

/* A plain tile is not a control; the cursor should not suggest it is. */
div.ul-about-rank {
  cursor: default;
}

.ul-about-rank-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(52px, 4.4vw, 68px);
  font-size: 26px;
  color: var(--ab-gold);
}

/* Logos are shown in their real colours (QS, U.S. News, Shanghai, AD
   Scientific Index each have a recognisable mark); the earlier gold tint made
   them unreadable. The hover only lifts the tile. */
.ul-about-rank-logo img {
  max-width: 82%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s var(--ab-ease);
}

.ul-about-rank:hover .ul-about-rank-logo img,
a.ul-about-rank:focus-visible .ul-about-rank-logo img {
  transform: scale(1.06);
}

.ul-about-rank-title {
  font-size: clamp(12.5px, 0.85vw, 14.5px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ab-ink);
}

/* ==========================================================================
   Campus — dark photographic band
   ========================================================================== */

.ul-about-campus-inner {
  max-width: 56ch;
}

.ul-about-campus-text {
  margin: clamp(14px, 1.4vw, 22px) 0 clamp(22px, 2.2vw, 34px);
  font-size: clamp(15px, 1.02vw, 19px);
  line-height: 1.9;
  color: var(--ab-on-dark);
}


/* The oldest three pictures in the category, under the two buttons. Small
   enough to be a trail into the page rather than a gallery of its own. */
.ul-about-campus-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.ul-about-campus-shot {
  position: relative;
  display: block;
  width: 168px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  text-decoration: none;
  transition: transform .35s var(--pm-ease, ease), border-color .35s ease;
}

.ul-about-campus-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--pm-ease, ease);
}

.ul-about-campus-shot:hover,
.ul-about-campus-shot:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(254, 190, 53, .6);
}

.ul-about-campus-shot:hover img {
  transform: scale(1.06);
}

/* The caption sits on the picture, on a gradient rather than a slab, so a
   dark photograph does not take a grey box across its foot. */
.ul-about-campus-shot-cap {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 18px 10px 8px;
  background: linear-gradient(to top, rgba(4, 28, 51, .85), transparent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}

@media (max-width: 575px) {
  .ul-about-campus-shot {
    width: calc(50% - 7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ul-about-campus-shot,
  .ul-about-campus-shot img {
    transition: none;
  }
}

.ul-about-campus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1vw, 16px);
}

/* ==========================================================================
   §08 History
   ========================================================================== */

.ul-about-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: clamp(16px, 2vw, 32px);
  margin: 0;
  padding: clamp(26px, 2.4vw, 40px) 0 0;
  list-style: none;
  border-top: 1px solid var(--ab-hairline);
}

.ul-about-milestone {
  position: relative;
  padding-top: clamp(14px, 1.2vw, 20px);
}

.ul-about-milestone::before {
  content: '';
  position: absolute;
  top: calc(-1 * clamp(26px, 2.4vw, 40px) - 4px);
  inset-inline-start: 0;
  width: 9px;
  height: 9px;
  background: var(--ab-gold);
  border-radius: 50%;
}

.ul-about-milestone-year {
  display: block;
  margin-bottom: clamp(8px, 0.8vw, 12px);
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 700;
  line-height: 1;
  color: var(--ab-ink);
  direction: ltr;
  unicode-bidi: isolate;
}

.ul-about-milestone-title {
  margin: 0 0 6px;
  font-size: clamp(15px, 1.02vw, 18px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ab-ink);
}

.ul-about-milestone-text {
  margin: 0;
  font-size: clamp(13px, 0.85vw, 15px);
  line-height: 1.85;
  color: var(--ab-body);
}

/* ==========================================================================
   §09 Explore — photographic tiles
   ========================================================================== */

.ul-about-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 28px);
}

.ul-about-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--ab-r-lg);
  background: var(--ab-band);
  text-decoration: none;
  isolation: isolate;
}

.ul-about-tile-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s var(--ab-ease-slow);
}

.ul-about-tile:hover .ul-about-tile-media {
  transform: scale(1.08);
}

/* Scrim rises from the bottom so the title always sits on navy. */
.ul-about-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(4, 28, 51, 0.94) 0%, rgba(4, 28, 51, 0.5) 45%, rgba(4, 28, 51, 0.1) 100%);
  transition: opacity 0.5s var(--ab-ease);
}

.ul-about-tile-body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(22px, 2.2vw, 36px);
}

.ul-about-tile-title {
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

/* THE TEXT TAKES NO ROOM UNTIL IT IS WANTED.

   It was hidden with opacity alone, so the paragraph still occupied its full
   height and pushed the heading up the tile — and with a 590-character body
   behind it, up the whole tile. The heading belongs on the bottom edge at
   rest; hovering is what lifts it to make room.

   grid-template-rows 0fr → 1fr is the animatable collapse: the row has no
   height at all until the tile is hovered, and the inner span is what gets
   clipped, which is why the markup has one. */
.ul-about-tile-text {
  display: grid;
  grid-template-rows: 0fr;
  max-width: 34ch;
  margin: 0;
  font-size: clamp(13px, 0.88vw, 15px);
  line-height: 1.7;
  color: var(--ab-on-dark);
  opacity: 0;
  transition:
    grid-template-rows 0.5s var(--ab-ease),
    opacity 0.4s var(--ab-ease),
    margin 0.5s var(--ab-ease);
}

/* Three lines however long the post is, so one tile can never grow taller
   than the two beside it. The text is already cut to an opening sentence in
   About::linkCards(); this is the backstop for a long unbroken one. */
.ul-about-tile-text > span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.ul-about-tile:hover .ul-about-tile-text,
.ul-about-tile:focus-visible .ul-about-tile-text {
  grid-template-rows: 1fr;
  margin-block-start: 2px;
  opacity: 1;
}

/* No photograph filed: the band's own navy, with the faint motif the hero
   uses, rather than an empty frame. */
.ul-about-tile.is-plain {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(254, 190, 53, 0.16) 0%, transparent 55%),
    linear-gradient(160deg, #0b2b4d 0%, #041c33 100%);
}

.ul-about-tile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-top: 10px;
  color: var(--ab-ink);
  background: var(--ab-gold);
  border-radius: 50%;
  font-size: 14px;
  transition: transform 0.5s var(--ab-ease);
}

.ul-about-tile:hover .ul-about-tile-cta {
  transform: translateX(-6px);
}

html[lang='en'] .ul-about-tile:hover .ul-about-tile-cta {
  transform: translateX(6px);
}

/* ==========================================================================
   §10 CTA — light, split
   ========================================================================== */

.ul-about-cta {
  position: relative;
  /* The white explore band above already supplies the space; the inner's
     hairline is the divider. */
  padding-top: 0;
  padding-bottom: var(--ab-band-y);
  background: var(--ab-paper);
}

.ul-about-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 72px);
  padding-top: clamp(28px, 3vw, 48px);
  border-top: 1px solid var(--ab-hairline);
}

.ul-about-cta-copy {
  max-width: 52ch;
}

.ul-about-cta-text {
  margin: clamp(12px, 1.2vw, 20px) 0 0;
  font-size: clamp(14px, 0.98vw, 18px);
  line-height: 1.9;
  color: var(--ab-body);
}

/* The shared buttons are drawn for a dark ground; on this white band the
   hover turns navy and the ghost gets an ink outline. */
.ul-about-cta .ul-about-btn:hover {
  color: #fff;
  background: var(--ab-ink);
  border-color: var(--ab-ink);
}

.ul-about-cta .ul-about-btn-ghost {
  color: var(--ab-ink);
  border-color: rgba(4, 28, 51, 0.3);
}

.ul-about-cta-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1vw, 16px);
}

/* ==========================================================================
   Scroll reveal — hidden state applied by about-page.js at runtime only, so
   a script that fails to load leaves the page fully visible. No
   prefers-reduced-motion branch: see public/assets/css/motion.css.
   ========================================================================== */

.ab-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s var(--ab-ease),
    transform 0.9s var(--ab-ease);
  transition-delay: var(--ab-stagger, 0ms);
}

.ab-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Nothing scrolls on paper, so nothing would ever be revealed. */
@media print {
  .ab-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 1199px) {

  /* With two rows, the divider logic needs a horizontal rule too. */

}

@media screen and (max-width: 991px) {
  .ul-about-president-grid {
    grid-template-columns: 1fr;
    gap: clamp(36px, 6vw, 56px);
  }

  .ul-about-president-media {
    max-width: 380px;
  }

  /* Three items into two columns leaves one orphaned on its own row, which
     reads as a mistake. Keep three columns down to the phone breakpoint and
     let each get narrower instead. */
  .ul-about-people,
  .ul-about-tiles {
    gap: clamp(12px, 1.6vw, 20px);
  }

  .ul-about-vision-grid {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 40px);
  }

  .ul-about-vision-item,
  .ul-about-vision-item:first-child {
    padding-inline: 0;
    border-inline-start: none;
  }

  .ul-about-track {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 0;
    padding-top: 0;
    border-top: none;
  }

  .ul-about-milestone {
    padding: 0 0 clamp(24px, 4vw, 36px);
    padding-inline-start: clamp(24px, 4vw, 36px);
    border-inline-start: 1px solid var(--ab-hairline);
  }

  .ul-about-milestone::before {
    top: 6px;
    inset-inline-start: -5px;
  }

  .ul-about-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .ul-about-split,
  .ul-about-summary,
  .ul-about-feature {
    grid-template-columns: 1fr;
  }

  .ul-about-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ul-about-council-grid {
    --ab-council-cols: 2;
  }

  .ul-about-people {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  :root {
    --ab-band-y: clamp(56px, 12vw, 80px);
  }







  .ul-about-head {
    flex-direction: column;
    gap: 14px;
  }

  .ul-about-index {
    padding-top: 0;
  }

  .ul-about-people,
  .ul-about-tiles,
  .ul-about-vision-grid {
    grid-template-columns: 1fr;
  }

  .ul-about-president-body {
    padding: 20px 18px;
  }

  .ul-about-president-name {
    max-width: none;
  }

  /* Officer cards are compact, so they simply stack. */
  .ul-about-people {
    gap: 12px;
  }

  .ul-about-summary,
  .ul-about-feature {
    grid-template-columns: 1fr;
  }

  .ul-about-summary-figures {
    grid-template-columns: repeat(2, 1fr);
  }

  .ul-about-portal-grid {
    grid-template-columns: 1fr;
  }

  .ul-about-split {
    grid-template-columns: 1fr;
    gap: clamp(20px, 5vw, 32px);
  }

  .ul-about-credential {
    flex-direction: column;
  }

  .ul-about-rank-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ul-about-tile {
    aspect-ratio: 4 / 3;
  }

  /* No hover on touch, so the tile's supporting line is always shown. */
  .ul-about-tile-text {
    opacity: 1;
    transform: none;
  }

  .ul-about-btn {
    width: 100%;
  }

  .ul-about-cta-actions {
    width: 100%;
  }

  .ul-about-values {
    column-gap: 20px;
    row-gap: 36px;
  }

  .ul-about-value-icon {
    width: 56px;
    height: 56px;
    font-size: 30px;
    margin-bottom: 14px;
  }

  .ul-about-value-name {
    font-size: 16px;
  }

  .ul-about-value-text {
    font-size: 13.5px;
    line-height: 1.8;
  }

  .ul-about-council-grid {
    --ab-council-gap: 16px;
    row-gap: 40px;
  }

  .ul-about-member-photo {
    width: min(140px, 100%);
  }

  .ul-about-member-name {
    font-size: 15px;
  }

  .ul-about-member-rank,
  .ul-about-member-role {
    font-size: 13px;
  }
}
