/* ==========================================================================
   Category page layouts

   One stylesheet per display type produced by App\Support\PageCategory:
   text · card · publication · inpage · tabs. Colours and radii follow the existing
   site tokens (--ul-primary / --ul-c3 / --ul-gray*) so a generated page is
   indistinguishable from a hand-built one.

   Direction-agnostic: logical properties throughout, so both the RTL
   (style.css) and LTR (en.css) shells are covered.
   ========================================================================== */

.ul-page-category {
  background: var(--white, #fff);
}

/* ==========================================================================
   Shared: empty state
   ========================================================================== */
.ul-pc-empty {
  padding: clamp(40px, 5vw, 90px) 20px;
  text-align: center;
  color: var(--ul-gray2, #5D6063);
}

.ul-pc-empty i {
  display: block;
  margin-bottom: 16px;
  font-size: clamp(38px, 3.5vw, 56px);
  color: var(--ul-gray3, #888A8D);
  opacity: 0.5;
}

.ul-pc-empty p {
  margin: 0;
  font-size: clamp(14px, 0.95vw, 17px);
  font-weight: 700;
}

/* AN EMPTY TAB IS NOT AN EMPTY PAGE. The measurements above are for a
   category that fills a page on its own; inside a tab panel — «رؤية القسم»
   under a department — the same block opened a void about four hundred
   pixels tall under a one-line heading, three times over. The panel is one
   small section of a page, so its empty state is sized like one. */
.ul-pc-tabs-body .ul-pc-empty,
.ul-syl-block .ul-pc-tabs-body .ul-pc-empty {
  padding: clamp(20px, 2vw, 32px) 16px;
}

.ul-pc-tabs-body .ul-pc-empty i {
  margin-bottom: 10px;
  font-size: clamp(24px, 1.9vw, 32px);
}

.ul-pc-tabs-body .ul-pc-empty p {
  font-size: clamp(13.5px, 0.9vw, 15px);
  font-weight: 600;
}

/* ==========================================================================
   section: text — sub-section chips + entry list
   ========================================================================== */
.ul-pc-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(26px, 2.4vw, 40px);
}

.ul-pc-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 2px solid #e8e9ea;
  border-radius: 25px;
  color: var(--ul-black, #0F0D1D);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ul-pc-subnav-link:hover {
  background: var(--ul-primary, #0b254e);
  border-color: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
  transform: translateY(-2px);
}

.ul-pc-subnav-link .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(11, 37, 78, 0.1);
  font-size: 11px;
  font-weight: 700;
}

.ul-pc-subnav-link:hover .count {
  background: rgba(255, 255, 255, 0.22);
}

.ul-pc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.ul-pc-list-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid #eceef0;
  border-radius: 12px;
  background: var(--white, #fff);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.ul-pc-list-link:hover {
  border-color: rgba(11, 37, 78, 0.35);
  box-shadow: 0 6px 20px rgba(15, 13, 29, 0.08);
  transform: translateY(-2px);
}

.ul-pc-list-marker {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--ul-c3, #febe35);
}

.ul-pc-list-body {
  flex: 1 1 auto;
  min-width: 0;
}

.ul-pc-list-title {
  display: block;
  color: var(--ul-black, #0F0D1D);
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 700;
  line-height: 1.5;
}

.ul-pc-list-link:hover .ul-pc-list-title {
  color: var(--ul-primary, #0b254e);
}

.ul-pc-list-excerpt {
  display: block;
  margin-top: 5px;
  color: var(--ul-gray2, #5D6063);
  font-size: clamp(12px, 0.85vw, 14px);
  font-weight: 400;
  line-height: 1.7;
}

.ul-pc-list-date {
  flex: 0 0 auto;
  color: var(--ul-gray3, #888A8D);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   section: card — sub-categories as destinations
   ========================================================================== */
.ul-pc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 1.4vw, 26px);
}

.ul-pc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid #eceef0;
  border-radius: 14px;
  background: var(--white, #fff);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(15, 13, 29, 0.05);
  transition: all 0.3s ease;
}

.ul-pc-card:hover {
  border-color: rgba(11, 37, 78, 0.3);
  box-shadow: 0 12px 28px rgba(15, 13, 29, 0.12);
  transform: translateY(-5px);
}

/* A FACT IS NOT A DESTINATION. «معلومات القسم» is a grid of these — مدة
   الدراسة, الدرجة الممنوحة, عدد الطلاب — and nothing is behind them. They
   keep the card's shape and lose everything that promises a click: the lift,
   the pointer and the arrow (which the view does not render for them). */
.ul-pc-card.is-static {
  cursor: default;
}

.ul-pc-card.is-static:hover {
  border-color: #eceef0;
  box-shadow: none;
  transform: none;
}

/* The value sits under its label, and reads as the answer rather than as a
   caption: a fact is the point of the card, not a footnote to its title. */
.ul-pc-card.is-static .ul-pc-card-bio {
  color: var(--ul-black, #0f0d1d);
  font-weight: 600;
}

.ul-pc-card-media {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a3a52 0%, #2c5f7f 100%);
  color: var(--white, #fff);
  font-size: 22px;
}

.ul-pc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ul-pc-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

/* A long title shows its first two lines and trails off; the full title
   is on the card's tooltip and on the page it opens. */
.ul-pc-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ul-black, #0F0D1D);
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 700;
  line-height: 1.4;
}

.ul-pc-card:hover .ul-pc-card-title {
  color: var(--ul-primary, #0b254e);
}

.ul-pc-card-bio {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px;
  color: var(--ul-gray2, #5D6063);
  font-size: 12.5px;
  line-height: 1.6;
}

.ul-pc-card-cue {
  flex: 0 0 auto;
  color: var(--ul-gray3, #888A8D);
  font-size: 13px;
  transition: color 0.25s ease, translate 0.25s ease;
}

.ul-pc-card:hover .ul-pc-card-cue {
  color: var(--ul-c3, #febe35);
}

/* ==========================================================================
   section: publication — image cards
   ========================================================================== */
.ul-pc-pubs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(16px, 1.4vw, 28px);
}

.ul-pc-pub {
  height: 100%;
}

.ul-pc-pub-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #eceef0;
  border-radius: 14px;
  background: var(--white, #fff);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(15, 13, 29, 0.05);
  transition: all 0.3s ease;
}

.ul-pc-pub-link:hover {
  box-shadow: 0 14px 32px rgba(15, 13, 29, 0.14);
  transform: translateY(-6px);
}

.ul-pc-pub-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ul-gray, #F2F2F2);
}

.ul-pc-pub-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ul-pc-pub-link:hover .ul-pc-pub-media img {
  transform: scale(1.05);
}

/* No image on the post — a calm placeholder rather than a gap */
.ul-pc-pub-media.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a3a52 0%, #2c5f7f 100%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 34px;
}

.ul-pc-pub-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 18px 20px 16px;
}

.ul-pc-pub-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--ul-black, #0F0D1D);
  font-size: clamp(15px, 1vw, 17px);
  font-weight: 700;
  line-height: 1.5;
}

.ul-pc-pub-link:hover .ul-pc-pub-title {
  color: var(--ul-primary, #0b254e);
}

.ul-pc-pub-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--ul-gray2, #5D6063);
  font-size: 13px;
  line-height: 1.75;
}

.ul-pc-pub-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 12px;
}

.ul-pc-pub-foot time {
  color: var(--ul-gray3, #888A8D);
  font-weight: 400;
}

.ul-pc-pub-more {
  color: var(--ul-primary, #0b254e);
  font-weight: 700;
}

/* ==========================================================================
   section: inpage — table of contents + stacked article bodies
   ========================================================================== */
.ul-pc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 2.4vw, 44px);
  padding: 18px 20px;
  border: 1px solid #eceef0;
  border-inline-start: 4px solid var(--ul-c3, #febe35);
  border-radius: 12px;
  background: #fafbfc;
}

.ul-pc-toc a {
  color: var(--ul-primary, #0b254e);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ul-pc-toc a:hover {
  text-decoration: underline;
}

.ul-pc-inpage-block {
  padding-bottom: clamp(28px, 2.6vw, 48px);
  margin-bottom: clamp(28px, 2.6vw, 48px);
  border-bottom: 1px solid #eceef0;
  scroll-margin-top: 110px;
}

.ul-pc-inpage-block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.ul-pc-inpage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.ul-pc-inpage-title {
  margin: 0;
  color: var(--ul-black, #0F0D1D);
  font-size: clamp(19px, 1.6vw, 27px);
  font-weight: 700;
  line-height: 1.4;
}

.ul-pc-inpage-head time {
  color: var(--ul-gray3, #888A8D);
  font-size: 12.5px;
  font-weight: 700;
}

/* Shrink-wrapped to the picture, so the rounded corners sit on it. */
.ul-pc-inpage-figure {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: 14px;
}

/* NEVER LARGER THAN IT WAS UPLOADED. `width: 100%` blew a 188×208 icon up to
   the full column, a thousand pixels of blur; a picture now fills the
   column only when it is that wide, and stops at a sane height. */
.ul-pc-inpage-figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
}

/* Body is editor-authored HTML — style the elements it can contain */
/* ONE DOCUMENT FILED INSIDE A SECTION. A sub-category under `inpage` or
   `tabs` may hold several posts — «رؤية القسم» holds the vision, «كيفية
   التقديم» the two stages — and each is rendered here in full rather than
   listed as a link out to the news archive. These rules only separate one
   from the next; the prose itself is .ul-pc-inpage-body below. */
.ul-pc-doc + .ul-pc-doc {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #eceef0;
}

/* A FILE OFFERED WHERE A PICTURE WAS EXPECTED. «نتاجات التعلم» is a post
   whose whole content is a PDF, uploaded into the image field; it used to
   render as a broken <img>. See components/page-category/document.blade.php. */
.ul-pc-doc-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid #eceef0;
  border-radius: 12px;
  background: #fbfcfd;
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.ul-pc-doc-file:hover,
.ul-pc-doc-file:focus-visible {
  border-color: rgba(254, 190, 53, .55);
  box-shadow: 0 10px 24px -16px rgba(4, 28, 51, .45);
  transform: translateY(-2px);
}

.ul-pc-doc-file-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(11, 37, 78, .06);
  color: var(--ul-primary, #0b254e);
  font-size: 20px;
}

.ul-pc-doc-file-text {
  flex: 1 1 auto;
  min-width: 0;
}

.ul-pc-doc-file-name {
  display: block;
  font-weight: 700;
  font-size: clamp(14px, 0.95vw, 16px);
  color: var(--ul-primary, #0b254e);
}

.ul-pc-doc-file-hint {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ul-gray3, #888a8d);
}

.ul-pc-doc-file-cue {
  flex: 0 0 auto;
  color: var(--ul-c3, #febe35);
  font-size: 16px;
}

.ul-pc-doc-title {
  margin: 0 0 12px;
  font-size: clamp(15px, 1.05vw, 17.5px);
  font-weight: 700;
  color: var(--ul-primary, #0b254e);
}

/* A post's subtitle (`sub_content`) and tags — components/page-category/
   post-head.blade.php, and the card, image-card and list layouts. The tag
   pills are the news article's (.tags-wrapper in style.css), smaller. */
.ul-pc-doc-title:has(+ .ul-pc-doc-sub) {
  margin-bottom: 4px;
}

.ul-pc-doc-sub {
  margin: 0 0 12px;
  color: var(--ul-gray2, #5D6063);
  font-size: clamp(14px, 0.95vw, 15.5px);
  font-weight: 600;
  line-height: 1.7;
}

.ul-pc-card-sub {
  display: block;
  margin-top: 3px;
  color: var(--ul-gray2, #5D6063);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.ul-pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.ul-pc-card-body .ul-pc-tags,
.ul-pc-pub-body .ul-pc-tags,
.ul-pc-list-body .ul-pc-tags {
  margin: 8px 0 0;
}

.ul-pc-tags > * {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  background-color: var(--ul-gray, #F2F2F2);
  color: var(--ul-primary, #0b254e);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.6;
}

.ul-pc-inpage-body {
  color: var(--ul-gray2, #5D6063);
  font-size: clamp(14px, 0.95vw, 16px);
  line-height: 2;
}

.ul-pc-inpage-body > *:first-child {
  margin-top: 0;
}

.ul-pc-inpage-body p {
  margin: 0 0 16px;
}

.ul-pc-inpage-body h2,
.ul-pc-inpage-body h3,
.ul-pc-inpage-body h4 {
  margin: 28px 0 12px;
  color: var(--ul-black, #0F0D1D);
  font-weight: 700;
  line-height: 1.5;
}

.ul-pc-inpage-body h2 { font-size: clamp(17px, 1.3vw, 22px); }
.ul-pc-inpage-body h3 { font-size: clamp(16px, 1.1vw, 19px); }
.ul-pc-inpage-body h4 { font-size: clamp(15px, 1vw, 17px); }

.ul-pc-inpage-body ul,
.ul-pc-inpage-body ol {
  margin: 0 0 16px;
  padding-inline-start: 22px;
}

.ul-pc-inpage-body li {
  margin-bottom: 8px;
}

.ul-pc-inpage-body a {
  color: var(--ul-primary, #0b254e);
  font-weight: 700;
  text-decoration: underline;
}

.ul-pc-inpage-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.ul-pc-inpage-body blockquote {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-inline-start: 4px solid var(--ul-c3, #febe35);
  border-radius: 8px;
  background: #fafbfc;
}

/* Wide CMS tables must scroll inside the block, never the page */
.ul-pc-inpage-body table {
  width: 100%;
  margin-bottom: 16px;
  border-collapse: collapse;
}

.ul-pc-inpage-body table td,
.ul-pc-inpage-body table th {
  padding: 10px 12px;
  border: 1px solid #eceef0;
}

.ul-pc-inpage-body table th {
  background: #fafbfc;
  font-weight: 700;
}

.ul-pc-inpage-body iframe,
.ul-pc-inpage-body video {
  max-width: 100%;
  border-radius: 10px;
}

.ul-pc-inpage-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.ul-pc-inpage-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.ul-pc-inpage-gallery a:hover img {
  transform: scale(1.04);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 767px) {
  .ul-pc-list-link {
    flex-wrap: wrap;
    padding: 15px 16px;
  }

  .ul-pc-list-date {
    width: 100%;
    padding-inline-start: 23px;
  }

  .ul-pc-cards,
  .ul-pc-pubs {
    grid-template-columns: 1fr;
  }

  .ul-pc-inpage-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}


/* ==========================================================================
   Entries that are sub-categories

   Every layout is fed the sub-categories where the category has them (see
   App\Support\PageCategory::entries()), so a list row, a card or a tab may be
   a category rather than a post. What differs is the trailing figure — how
   much is inside it, where a post would show its date — and, in the body
   layouts, the posts listed beneath its description.
   ========================================================================== */
.ul-pc-list-count {
  flex: 0 0 auto;
  min-width: 30px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(11, 37, 78, 0.07);
  color: var(--ul-primary, #0b254e);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ul-pc-list-link:hover .ul-pc-list-count {
  background: var(--ul-c3, #febe35);
  color: var(--ul-primary, #0b254e);
}

/* The posts inside a sub-category, under its description in a body layout. */
.ul-pc-entry-posts {
  margin-top: 18px;
}


/* ==========================================================================
   section: tabs

   One tab per post, switched with no JavaScript: a radio per post sits before
   the strip and the panels, and the `:checked` sibling selectors below reveal
   the matching panel. The pairs are written out up to 30 tabs, which is
   well past anything an editor files as a tab set; a longer category shows the
   first panel and every tab stays reachable because the radios still work —
   only the reveal rule runs out.
   ========================================================================== */
.ul-pc-tabs-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ul-pc-tabs-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eceef0;
}

.ul-pc-tabs-tab {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 10px 17px;
  border: 1px solid rgba(11, 37, 78, 0.14);
  border-radius: 999px;
  background: var(--white, #fff);
  color: var(--ul-primary, #0b254e);
  font-size: clamp(13px, 0.92vw, 14.5px);
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ul-pc-tabs-tab:hover {
  border-color: var(--ul-c3, #febe35);
}

/* Panels are hidden one rule at a time and one is brought back by the pairs
   below, so a stylesheet that loads without them still shows every panel
   rather than none. That is why :not(:first-of-type) is used here in place of
   a blanket hide. */
.ul-pc-tabs-panel:not(:first-of-type) {
  display: none;
}

.ul-pc-tabs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ul-pc-tabs-title {
  margin: 0;
  color: var(--ul-black, #0F0D1D);
  font-size: clamp(17px, 1.4vw, 23px);
  font-weight: 700;
  line-height: 1.45;
}

.ul-pc-tabs-head time {
  flex: 0 0 auto;
  color: var(--ul-gray3, #8a8f94);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.ul-pc-tabs-figure {
  margin: 0 0 18px;
}

/* Not upscaled past its own size — see .ul-pc-inpage-figure img. */
.ul-pc-tabs-figure img {
  width: auto;
  max-width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

@media (max-width: 767px) {
  .ul-pc-tabs-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* tab 1 */
.ul-pc-tabs-radio:nth-of-type(1):checked ~ .ul-pc-tabs-panel:nth-of-type(1) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(1):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(1)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(1):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(1) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 2 */
.ul-pc-tabs-radio:nth-of-type(2):checked ~ .ul-pc-tabs-panel:nth-of-type(2) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(2):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(2)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(2):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(2) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 3 */
.ul-pc-tabs-radio:nth-of-type(3):checked ~ .ul-pc-tabs-panel:nth-of-type(3) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(3):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(3)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(3):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(3) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 4 */
.ul-pc-tabs-radio:nth-of-type(4):checked ~ .ul-pc-tabs-panel:nth-of-type(4) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(4):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(4)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(4):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(4) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 5 */
.ul-pc-tabs-radio:nth-of-type(5):checked ~ .ul-pc-tabs-panel:nth-of-type(5) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(5):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(5)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(5):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(5) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 6 */
.ul-pc-tabs-radio:nth-of-type(6):checked ~ .ul-pc-tabs-panel:nth-of-type(6) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(6):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(6)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(6):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(6) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 7 */
.ul-pc-tabs-radio:nth-of-type(7):checked ~ .ul-pc-tabs-panel:nth-of-type(7) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(7):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(7)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(7):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(7) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 8 */
.ul-pc-tabs-radio:nth-of-type(8):checked ~ .ul-pc-tabs-panel:nth-of-type(8) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(8):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(8)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(8):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(8) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 9 */
.ul-pc-tabs-radio:nth-of-type(9):checked ~ .ul-pc-tabs-panel:nth-of-type(9) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(9):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(9)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(9):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(9) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 10 */
.ul-pc-tabs-radio:nth-of-type(10):checked ~ .ul-pc-tabs-panel:nth-of-type(10) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(10):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(10)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(10):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(10) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 11 */
.ul-pc-tabs-radio:nth-of-type(11):checked ~ .ul-pc-tabs-panel:nth-of-type(11) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(11):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(11)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(11):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(11) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 12 */
.ul-pc-tabs-radio:nth-of-type(12):checked ~ .ul-pc-tabs-panel:nth-of-type(12) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(12):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(12)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(12):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(12) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 13 */
.ul-pc-tabs-radio:nth-of-type(13):checked ~ .ul-pc-tabs-panel:nth-of-type(13) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(13):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(13)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(13):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(13) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 14 */
.ul-pc-tabs-radio:nth-of-type(14):checked ~ .ul-pc-tabs-panel:nth-of-type(14) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(14):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(14)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(14):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(14) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 15 */
.ul-pc-tabs-radio:nth-of-type(15):checked ~ .ul-pc-tabs-panel:nth-of-type(15) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(15):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(15)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(15):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(15) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 16 */
.ul-pc-tabs-radio:nth-of-type(16):checked ~ .ul-pc-tabs-panel:nth-of-type(16) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(16):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(16)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(16):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(16) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 17 */
.ul-pc-tabs-radio:nth-of-type(17):checked ~ .ul-pc-tabs-panel:nth-of-type(17) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(17):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(17)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(17):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(17) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 18 */
.ul-pc-tabs-radio:nth-of-type(18):checked ~ .ul-pc-tabs-panel:nth-of-type(18) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(18):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(18)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(18):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(18) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 19 */
.ul-pc-tabs-radio:nth-of-type(19):checked ~ .ul-pc-tabs-panel:nth-of-type(19) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(19):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(19)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(19):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(19) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 20 */
.ul-pc-tabs-radio:nth-of-type(20):checked ~ .ul-pc-tabs-panel:nth-of-type(20) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(20):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(20)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(20):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(20) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 21 */
.ul-pc-tabs-radio:nth-of-type(21):checked ~ .ul-pc-tabs-panel:nth-of-type(21) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(21):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(21)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(21):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(21) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 22 */
.ul-pc-tabs-radio:nth-of-type(22):checked ~ .ul-pc-tabs-panel:nth-of-type(22) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(22):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(22)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(22):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(22) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 23 */
.ul-pc-tabs-radio:nth-of-type(23):checked ~ .ul-pc-tabs-panel:nth-of-type(23) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(23):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(23)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(23):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(23) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 24 */
.ul-pc-tabs-radio:nth-of-type(24):checked ~ .ul-pc-tabs-panel:nth-of-type(24) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(24):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(24)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(24):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(24) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 25 */
.ul-pc-tabs-radio:nth-of-type(25):checked ~ .ul-pc-tabs-panel:nth-of-type(25) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(25):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(25)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(25):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(25) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 26 */
.ul-pc-tabs-radio:nth-of-type(26):checked ~ .ul-pc-tabs-panel:nth-of-type(26) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(26):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(26)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(26):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(26) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 27 */
.ul-pc-tabs-radio:nth-of-type(27):checked ~ .ul-pc-tabs-panel:nth-of-type(27) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(27):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(27)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(27):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(27) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 28 */
.ul-pc-tabs-radio:nth-of-type(28):checked ~ .ul-pc-tabs-panel:nth-of-type(28) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(28):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(28)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(28):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(28) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 29 */
.ul-pc-tabs-radio:nth-of-type(29):checked ~ .ul-pc-tabs-panel:nth-of-type(29) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(29):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(29)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(29):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(29) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* tab 30 */
.ul-pc-tabs-radio:nth-of-type(30):checked ~ .ul-pc-tabs-panel:nth-of-type(30) {
  display: block;
}

.ul-pc-tabs-radio:nth-of-type(30):checked ~ .ul-pc-tabs-panel:not(:nth-of-type(30)) {
  display: none;
}

.ul-pc-tabs-radio:nth-of-type(30):checked ~ .ul-pc-tabs-strip .ul-pc-tabs-tab:nth-child(30) {
  border-color: var(--ul-primary, #0b254e);
  background: var(--ul-primary, #0b254e);
  color: var(--white, #fff);
}

/* ==========================================================================
   section: special, with no bespoke design behind it

   An editor marked the category as having a page of its own and none has been
   built. This says so — the category exists, the design does not.
   ========================================================================== */
.ul-pc-nodesign {
  max-width: 62ch;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px);
  border: 1px solid #eceef0;
  border-radius: 16px;
  background: #fafbfc;
  text-align: center;
}

.ul-pc-nodesign-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(254, 190, 53, 0.16);
  color: var(--ul-c3, #febe35);
  font-size: 25px;
}

.ul-pc-nodesign-title {
  margin: 0 0 10px;
  color: var(--ul-black, #0F0D1D);
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 700;
  line-height: 1.5;
}

.ul-pc-nodesign-text {
  margin: 0;
  color: var(--ul-gray2, #5D6063);
  font-size: clamp(14px, 0.95vw, 16px);
  line-height: 1.9;
}

.ul-pc-nodesign-slug {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 13px;
  border-radius: 8px;
  background: rgba(11, 37, 78, 0.06);
  color: var(--ul-primary, #0b254e);
  font-size: 13px;
  font-weight: 700;
  direction: ltr;
}

/* ==========================================================================
   Categories that are links

   A sub-category whose slug or description is an address — a journal, an
   external system. Drawn as links under the page's own content rather than as
   tiles standing in for content they do not have.
   ========================================================================== */
.ul-pc-links {
  display: grid;
  gap: 10px;
  margin: clamp(24px, 3vw, 40px) 0 0;
  padding: 0;
  list-style: none;
}

.ul-pc-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid #eceef0;
  border-radius: 12px;
  background: #fafbfc;
  color: var(--ul-primary, #0b254e);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ul-pc-links a:hover,
.ul-pc-links a:focus-visible {
  border-color: var(--ul-c3, #febe35);
  background: var(--white, #fff);
}

.ul-pc-links-body {
  flex: 1;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ul-pc-links-label {
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 700;
  line-height: 1.5;
}

.ul-pc-links-text {
  color: var(--ul-gray2, #5D6063);
  font-size: 13.5px;
  line-height: 1.7;
}

.ul-pc-links i {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--ul-gray3, #8a8f94);
}

/* ==========================================================================
   Read more — a long text block folded to its first four lines

   Used by the department text on a college's syllabus page
   (components/uowa/syllabus/department-blocks.blade.php). read-more.js adds
   .ul-readmore-clamped only to a block that runs past the limit, and puts the
   toggle after it; a block that fits is never touched.
   ========================================================================== */
.ul-readmore-clamped {
  /* The height itself is set inline by read-more.js: the foot of the fourth
     rendered line, which no fixed value can know once lists and paragraph
     margins are in the text. */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.5em), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 1.5em), transparent);
}

.ul-readmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ul-primary, #0b254e);
  font-family: inherit;
  font-size: clamp(13px, 0.92vw, 14.5px);
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
}

.ul-readmore-btn[hidden] {
  display: none;
}

.ul-readmore-btn:hover,
.ul-readmore-btn:focus-visible {
  text-decoration: underline;
}

.ul-readmore-btn i {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.ul-readmore-btn[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* ==========================================================================
   Files a post carries — components/page-category/documents.blade.php and
   App\Support\Html::documentLinks(). Every one is the .ul-pc-doc-file card
   above; these rules only place it. Last in the sheet because the prose
   rules (.ul-pc-inpage-body a) would otherwise underline a card or a link.
   ========================================================================== */
.ul-pc-doc-files {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}

.news-detail-content > .ul-pc-doc-files {
  margin-top: 24px;
}

/* A link that stood alone on its line, drawn as the card in its place. */
.ul-rich-doc {
  margin: 0 0 16px;
}

.ul-rich-doc .ul-pc-doc-file {
  text-decoration: none;
}

/* A link inside a sentence: still a file, still in the sentence. */
a.ul-rich-pdf {
  padding: 1px 8px;
  border: 1px solid #eceef0;
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--ul-primary, #0b254e);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: border-color .25s ease;
}

a.ul-rich-pdf:hover,
a.ul-rich-pdf:focus-visible {
  border-color: rgba(254, 190, 53, .55);
}

a.ul-rich-pdf i {
  font-size: .95em;
}

/* An embedded PDF, framed like the card. */
.ul-rich-pdf-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(420px, 75vh, 820px);
  margin: 0 0 16px;
  border: 1px solid #eceef0;
  border-radius: 12px;
  background: #fbfcfd;
}
