/* Somali National University — brand details for the public websites (main site and faculty websites).
   The colours themselves are the SNU colour system in palette.css (generated by tools/colour-system/palette.mjs,
   see COLOUR-SYSTEM.md), loaded just before this file. This file only adds a few accents and readability rules. */

/* Primary buttons: step 700 of the website's own colour (Somali Blue, or the faculty's colour), 800 on hover */
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

/* Crimson accents, used sparingly: section-title underlines and timeline markers */
.block-title::after { background: var(--crimson); }
.tl-item::before { border-color: var(--crimson); }
/* The emblem's sky blue as a fine highlight under the hero kicker line */
.eyebrow::before { background: linear-gradient(90deg, var(--gold) 0 70%, var(--sky) 70% 100%); }
::selection { background: var(--gold-50); color: var(--navy-900); }

/* Breadcrumb separator chosen in Navigation › Standards & breadcrumbs (set on each trail as --crumb-sep) */
.breadcrumb li + li::before { content: var(--crumb-sep, "/"); }

/* "I am a…" menu (Navigation › Audience menus) */
.snu-aud { position: relative; }
.snu-aud > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.snu-aud > summary::-webkit-details-marker { display: none; }
.snu-aud > summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.snu-aud[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.snu-aud-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 90; width: max-content; max-width: min(960px, calc(100vw - 32px));
  padding: 22px 26px 18px; background: var(--white); color: var(--ink); border-top: 3px solid var(--gold); border-radius: 0 0 12px 12px; box-shadow: var(--shadow-lg);
  animation: snu-aud-in .22s cubic-bezier(.16, 1, .3, 1); text-align: left; }
.snu-aud-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, max-content); gap: 6px 32px; }   /* audiences side by side */
@media (max-width: 1100px) { .snu-aud-panel { width: min(640px, calc(100vw - 32px)); } .snu-aud-cols { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.snu-aud-title { margin: 0 0 8px; padding-bottom: 7px; border-bottom: 1px solid var(--line); font: 700 .78rem/1.2 var(--font-sans); letter-spacing: .07em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.snu-aud-col ul { list-style: none; margin: 0 0 10px; padding: 0; }
.snu-aud-col a { display: block; padding: 5px 0; color: var(--ink); font-size: .92rem; text-decoration: none; white-space: nowrap; }
.snu-aud-col a:hover, .snu-aud-col a:focus-visible { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@keyframes snu-aud-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .snu-aud-panel { animation: none; } .snu-aud > summary::after { transition: none; } }

/* Horizon header: keep the top row ("I am a…" + utility links) on one line at laptop widths.
   horizon.css loads after this file, so these selectors carry an extra .hz-header to win.
   Below 1181px the header switches to its Menu button and these rules do not apply. */
@media (min-width: 1181px) {
  .hz-header .hz-utility a, .hz-header .snu-aud-btn { white-space: nowrap; }
}
@media (min-width: 1181px) and (max-width: 1340px) {
  .hz-header .hz-inner { column-gap: 16px; }
  .hz-header .hz-utility, .hz-header .hz-utility .snu-utility { gap: 16px; }
}
@media (min-width: 1181px) and (max-width: 1279px) {
  .hz-header .hz-inner { padding-left: 20px; padding-right: 20px; column-gap: 12px; }
  .hz-header .hz-utility, .hz-header .hz-utility .snu-utility { gap: 12px; }
  .hz-header .hz-utility .snu-utility, .hz-header .snu-aud-btn { font-size: 13px; }
}
.mobile-nav .m-label { padding: 1rem 1.25rem .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); list-style: none; }

/* Scholarships page: categories (Scholarships › Categories) */
.sch-cat { margin: 0 0 2.6rem; }
.sch-cat .lead-text { margin-bottom: 1rem; }
.sch-facts { margin: 0 0 1.4rem; }
.sch-sub { margin: 1.4rem 0 .6rem; font-size: 1.05rem; color: var(--navy); }
.sch-rules td:first-child { white-space: nowrap; font-weight: 700; color: var(--navy); }
.table-scroll { overflow-x: auto; }

/* Research & centres (Research projects, Publications, a centre's page) */
.project-card .meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.project-card .meta .muted { font-size: .82rem; }
.badge-completed { background: var(--surface-2, #eef1f6); color: var(--muted); }
.badge-proposed { background: #FFF7E6; color: #8A5A00; }
.pub-list li { align-items: flex-start; }
.pub-body { display: grid; gap: .15rem; min-width: 0; }
.pub-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .8rem; }
.badge-oa { background: #E8F6EE; color: #17663A; }
.pub-summary { color: var(--muted); font-weight: 600; margin: 0 0 1rem; }
.pub-year { margin-top: 1.8rem; }
.centre-facts { margin: 1.2rem 0 1.6rem; }
.centre-facts .tag-list { margin-top: .1rem; }

/* Announcement banners (admin › Announcements: site-wide, home, admissions and student pages) */
.snu-notice { border-bottom: 1px solid rgba(0, 0, 0, .08); background: #EEF4FF; color: var(--navy, #0b1f3a); font-size: .92rem; }
.snu-notice[hidden] { display: none !important; }
.snu-notice-success { background: #E8F6EE; }
.snu-notice-warning { background: #FFF6DD; }
.snu-notice-urgent { background: #B4121B; color: #fff; }
.snu-notice-in { display: flex; align-items: center; gap: .75rem; padding-top: .6rem; padding-bottom: .6rem; }
.snu-notice-in > .bi { font-size: 1.1rem; flex: none; }
.snu-notice p { margin: 0; flex: 1; min-width: 0; line-height: 1.45; }
.snu-notice p span { opacity: .9; }
.snu-notice a { margin-left: .4rem; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.snu-notice-x { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.snu-notice-x:hover, .snu-notice-x:focus-visible { background: rgba(0, 0, 0, .08); }
.snu-notice-urgent .snu-notice-x:hover { background: rgba(255, 255, 255, .15); }
.event-register { margin-top: .9rem; }

/* Alumni (admin › Alumni): /alumni and /alumni/<web address> */
.alumni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.alumni-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.25rem; border: 1px solid var(--line, #e3e8ef); border-radius: 14px; background: #fff; }
.alumni-card.is-featured { border-color: var(--gold, #c9a227); box-shadow: 0 0 0 1px var(--gold, #c9a227) inset; }
.alumni-head { display: flex; align-items: center; gap: .85rem; }
.alumni-head h3 { margin: 0; font-size: 1.05rem; }
.alumni-head h3 a { color: inherit; text-decoration: none; }
.alumni-head h3 a:hover { text-decoration: underline; }
.alumni-head p { margin: .1rem 0 0; font-size: .85rem; }
.alumni-avatar { width: 56px; height: 56px; flex: none; }
.alumni-role { margin: 0; font-weight: 600; color: var(--navy, #0b1f3a); }
.alumni-quote { margin: 0; padding: 0 0 0 .9rem; border-left: 3px solid var(--gold, #c9a227); color: var(--ink, #1f2937); font-style: italic; }
.alumni-quote p { margin: 0; }
.alumni-card .link-arrow { margin-top: auto; }
.alumni-quote-lg { margin: 0 0 1.4rem; font-size: 1.2rem; }
.alumni-photo { margin: 0 0 1.4rem; max-width: 420px; }
.alumni-photo img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; }

/* University: governance and directors (Leadership), campus facilities, partner organisations */
.people-grid .leader-name { margin-bottom: .3rem; }
.campus-fac-title { margin: 1.1rem 0 .5rem; font-size: 1rem; color: var(--navy, #0b1f3a); }
.campus-facilities { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55rem; }
.campus-facilities li { display: grid; gap: .1rem; padding: .55rem .75rem; border-radius: 10px; background: var(--blue-50, #eef4ff); font-size: .92rem; }
.campus-facilities .muted { font-size: .82rem; }
.org-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.2rem; }
.org-group h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.02rem; }
.org-group h3 span { padding: .05rem .5rem; border-radius: 999px; background: var(--blue-50, #eef4ff); font-size: .78rem; }
.org-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.org-group li { display: grid; gap: .1rem; font-size: .92rem; }
.org-group .muted { font-size: .82rem; }

/* ------------------------------------------------------------------------------------------------------------------
   UI review (12 November 2026): readability and touch targets, measured on every page type of the main website and
   the faculty websites at 375, 768 and 1440 px (WCAG 2.2 AA: text 4.5:1, large text 3:1, targets at least 24 × 24 px).
   ------------------------------------------------------------------------------------------------------------------ */
/* (The light sky blue on dark areas and the label blue are part of palette.css.) */
/* the lighter faculty tiles need a paler tint for their small "Est." line */
.fac-tile-est { color: var(--c-sky-200); }
/* Large gold numbers on white cards: the darker wreath gold (5.4:1) */
.info-card .goal-num { color: var(--gold-700); }
/* The copyright line in the footer: 72% white (5.4:1 on the faculty websites' blue footer) */
.footer-bottom-inner { color: rgba(255, 255, 255, .72); }

/* Nothing smaller than 12 px */
.rail-date, .ann-date, .fac-tile-est, .fac-tile-go, .footer-cta-k, .site-footer .footer-quick a, .hero-thumbs span, .mag-kicker { font-size: max(.75rem, 12px); }
.quick-strip li a span { font-size: max(.75rem, 12px); }

/* Breadcrumb links: at least 24 px tall to tap */
.breadcrumb a { display: inline-block; padding-block: .2rem; }

@media (max-width: 767.98px) {
  /* Slide indicators on phones: the 6 px bar stays, the button around it is 24 px tall */
  .hero-thumbs button { height: 24px; background: linear-gradient(rgba(255, 255, 255, .45), rgba(255, 255, 255, .45)) center / 100% 6px no-repeat; border-radius: 0; }
  .hero-thumbs button[aria-selected="true"] { background: linear-gradient(var(--sky), var(--sky)) center / 100% 6px no-repeat; }
  /* Filter chips (news categories, magazine, search) scroll sideways in one row instead of filling the screen */
  .chip-row { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; margin-inline: -1rem; padding: 0 1rem .5rem; scrollbar-width: thin;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent); }
  .chip-row .chip { flex: none; scroll-snap-align: start; }
}
/* faculty websites: the header's pills and the "Somali National University" line of the lockup, 12 px at least */
.faculty-site .util-pill span { font-size: max(.75rem, 12px); }
.fac-brand .brand-uni { font-size: max(.66rem, 12px); letter-spacing: .02em; }
.fac-brand .brand-sub { font-size: max(.72rem, 12px); }

/* Running text: about 75 characters a line on wide screens (paragraphs that ran to 110 – 150) */
.pl-col > p, .pl-col > div:not([class]) > p, .program-row p.muted, .project-card > p, .dept-block > p, main p.source-note { max-width: 75ch; }
/* Lists of links (Sitemap, related articles): taller rows, easier to tap */
.sitemap-group li > a, .related-list li > a { display: inline-block; padding-block: .2rem; }
/* small links under titles (a programme's faculty, the campus "Map" links): at least 24 px tall */
.program-row p.muted > a, .campus-addr li > a { display: inline-block; padding-block: .2rem; }
/* notices and callouts: lines of about 75 characters (a callout box itself is at most that wide) */
.placeholder-box p, p.callout, .fac-dean > div > p { max-width: 75ch; }
/* the grey "Past event" label: the darker neutral on its grey chip (6.4:1) */
.event-status.is-past { color: var(--c-slate-700); }

/* single-line news titles still give a 24px target (WCAG 2.5.8) */
.news-mini-title a { padding-block: .15rem; }

/* Centres & Institutes list: a centre's logo in place of its icon (pages/centers.blade.php) */
.faculty-icon.centre-card-logo { width: 72px; height: 52px; background: #fff; border: 1px solid var(--line); padding: 4px; }
.faculty-icon.centre-card-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
