/*
 * Supplement to the compiled Tailwind file (style.css). Newer markup used utility classes that were never
 * compiled into style.css (no Tailwind build step exists on the server), so they are defined here by hand.
 * Loaded AFTER style.css by app/includes/header.php, admin/index.php and admin/login.php.
 * When style.css is rebuilt with these classes in its content scan, this file can be deleted.
 */

/* spacing / sizing */
.py-6{padding-top:1.5rem;padding-bottom:1.5rem}
.pb-1{padding-bottom:.25rem}.pb-4{padding-bottom:1rem}.pt-3{padding-top:.75rem}.pt-0\.5{padding-top:.125rem}
.pl-9{padding-left:2.25rem}
.mr-1{margin-right:.25rem}.ml-2{margin-left:.5rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}
.left-3\.5{left:.875rem}.top-2\.5{top:.625rem}
.w-2\.5{width:.625rem}.h-2\.5{height:.625rem}.w-16{width:4rem}.w-36{width:9rem}
.max-h-full{max-height:100%}.max-h-10{max-height:2.5rem}
.max-w-\[130px\]{max-width:130px}.max-w-\[150px\]{max-width:150px}.max-w-\[160px\]{max-width:160px}
.max-w-\[220px\]{max-width:220px}.max-w-\[240px\]{max-width:240px}
.min-h-\[44px\]{min-height:44px}.min-h-\[105px\]{min-height:105px}.min-h-\[175px\]{min-height:175px}.min-h-\[340px\]{min-height:340px}
.space-y-3\.5>:not([hidden])~:not([hidden]){margin-top:.875rem}
.space-x-1>:not([hidden])~:not([hidden]){margin-left:.25rem}
.border-collapse{border-collapse:collapse}
.col-span-2{grid-column:span 2/span 2}
.bg-slate-50\/75{background-color:rgb(248 250 252/0.75)}
.max-w-none{max-width:none}
.text-amber-700{color:#b45309}
.text-gray-500{color:#6b7280}
.divide-gray-100>:not([hidden])~:not([hidden]){border-color:#f3f4f6;border-top-width:1px}
.first\:pt-0:first-child{padding-top:0}
.last\:pb-0:last-child{padding-bottom:0}
.line-clamp-1{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}

/* effects */
.shadow-2xs{box-shadow:0 1px 0 0 rgb(0 0 0/.05)}
.shadow-xs{box-shadow:0 1px 2px 0 rgb(0 0 0/.05)}
.shadow{box-shadow:0 1px 3px 0 rgb(0 0 0/.1),0 1px 2px -1px rgb(0 0 0/.1)}
.drop-shadow-xs{filter:drop-shadow(0 1px 1px rgb(0 0 0/.05))}
.drop-shadow-md{filter:drop-shadow(0 4px 3px rgb(0 0 0/.07)) drop-shadow(0 2px 2px rgb(0 0 0/.06))}
.backdrop-blur-xs{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.mix-blend-multiply{mix-blend-mode:multiply}
.opacity-20{opacity:.2}.opacity-75{opacity:.75}

/* colours */
.bg-white\/95{background-color:rgb(255 255 255/.95)}
.bg-slate-900\/50{background-color:rgb(15 23 42/.5)}
.text-white\/30{color:rgb(255 255 255/.3)}
.border-slate-50{border-color:#f8fafc}.border-slate-200\/60{border-color:rgb(226 232 240/.6)}
.border-gray-300{border-color:#d1d5db}.border-ucu-blue-dark{border-color:#24305e}
.border-amber-500{border-color:#f59e0b}.border-blue-500{border-color:#3b82f6}
.border-l-4{border-left-width:4px}
.text-blue-800{color:#1e40af}.text-blue-900{color:#1e3a8a}.text-orange-700{color:#c2410c}.text-amber-600{color:#d97706}
.bg-orange-50{background-color:#fff7ed}.bg-orange-500{background-color:#f97316}.bg-orange-700{background-color:#c2410c}

/* focus rings */
.focus\:ring-1:focus{box-shadow:0 0 0 1px var(--tw-ring-color,rgba(59,130,246,.5))}
.focus\:ring-emerald-600:focus{--tw-ring-color:#059669}

/* hover / group-hover */
.hover\:opacity-90:hover{opacity:.9}.hover\:opacity-100:hover{opacity:1}
.hover\:bg-slate-200:hover{background-color:#e2e8f0}.hover\:bg-slate-300:hover{background-color:#cbd5e1}
.hover\:bg-amber-200:hover{background-color:#fde68a}.hover\:bg-emerald-900:hover{background-color:#064e3b}
.hover\:bg-ucu-blue-dark:hover{background-color:#24305e}
.hover\:border-emerald-300:hover{border-color:#6ee7b7}
.hover\:text-emerald-800:hover{color:#065f46}.hover\:text-emerald-950:hover{color:#022c22}
.hover\:shadow:hover{box-shadow:0 1px 3px 0 rgb(0 0 0/.1),0 1px 2px -1px rgb(0 0 0/.1)}
.group:hover .group-hover\:scale-110{transform:scale(1.1)}

/* responsive */
@media (min-width:640px){
  .sm\:inline{display:inline}
  .sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .sm\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}
  .sm\:col-span-7{grid-column:span 7/span 7}
  .sm\:gap-1\.5{gap:.375rem}
  .sm\:min-h-\[380px\]{min-height:380px}
}
@media (min-width:768px){
  .md\:w-64{width:16rem!important}
  aside.md\:w-64{width:16rem!important;min-width:16rem!important;max-width:16rem!important;flex-shrink:0!important}
  .md\:items-start{align-items:flex-start}
  .md\:self-center{align-self:center}
  .md\:gap-10{gap:2.5rem}
  .md\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media (min-width:1024px){
  .lg\:text-xl{font-size:1.25rem;line-height:1.75rem}
  .lg\:col-span-2{grid-column:span 2/span 2}
  .lg\:col-span-3{grid-column:span 3/span 3}
  .lg\:col-span-6{grid-column:span 6/span 6}
  .lg\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}
  .lg\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}
  .lg\:min-h-\[400px\]{min-height:400px}
  .lg\:py-16{padding-top:4rem;padding-bottom:4rem}
  .lg\:text-5xl{font-size:3rem;line-height:1}
}

/* Rich text written in the admin editor (Tailwind's reset removes list bullets, heading sizes, etc.) */
.prose,.rich-event-content,.rich-text{overflow-wrap:anywhere}
.prose :where(p,ul,ol,blockquote,table,figure):not(:last-child),
.rich-event-content :where(p,ul,ol,blockquote,table,figure):not(:last-child),
.rich-text :where(p,ul,ol,blockquote,table,figure):not(:last-child){margin-bottom:1em}
.prose ul,.rich-event-content ul,.rich-text ul{list-style:disc;padding-left:1.4rem}
.prose ol,.rich-event-content ol,.rich-text ol{list-style:decimal;padding-left:1.4rem}
.prose li,.rich-event-content li,.rich-text li{margin:.25em 0}
.prose h1,.prose h2,.prose h3,.prose h4,.rich-event-content h1,.rich-event-content h2,.rich-event-content h3,.rich-event-content h4,
.rich-text h1,.rich-text h2,.rich-text h3,.rich-text h4{font-weight:800;line-height:1.25;color:#24305e;margin:1.4em 0 .5em}
.prose h1,.rich-event-content h1,.rich-text h1{font-size:1.5em}
.prose h2,.rich-event-content h2,.rich-text h2{font-size:1.3em}
.prose h3,.rich-event-content h3,.rich-text h3{font-size:1.15em}
.prose a,.rich-event-content a,.rich-text a{color:#394a8a;text-decoration:underline}
.prose a:hover,.rich-event-content a:hover,.rich-text a:hover{color:#c43643}
.prose img,.rich-event-content img,.rich-text img{max-width:100%;height:auto;border-radius:.75rem}
.prose blockquote,.rich-event-content blockquote,.rich-text blockquote{border-left:4px solid #cbd5e1;padding-left:1rem;color:#475569;font-style:italic}
.prose table,.rich-event-content table,.rich-text table{width:100%;border-collapse:collapse;font-size:.9em;display:block;overflow-x:auto}
.prose th,.prose td,.rich-event-content th,.rich-event-content td,.rich-text th,.rich-text td{border:1px solid #e2e8f0;padding:.45rem .65rem;text-align:left;vertical-align:top}
.prose th,.rich-event-content th,.rich-text th{background:#f1f5f9;font-weight:700}
.prose pre,.rich-event-content pre,.rich-text pre{background:#0f172a;color:#e2e8f0;padding:.8rem 1rem;border-radius:.6rem;overflow-x:auto;font-size:.85em}

/* Sticky sub-navigation bars need a solid background on every page (the translucent one let content show through) */
section[style*="position:sticky"]{background-color:rgba(255,255,255,.97)}
@media (max-width:767px){
  /* the 17-goal navigator is 3 rows on a phone: scroll it sideways instead of covering the page */
  section[style*="position:sticky"] > div > .flex-wrap{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}
  section[style*="position:sticky"] > div > .flex-wrap > a{flex:0 0 auto}
  /* long select lists must never be wider than the screen */
  #research-college-select,select[name=dept],select[name=cat]{max-width:100%;width:100%}
}
/* search box inside the research filter bar: icon on the left, text clear of it */
#research-search-input{padding-left:2.25rem}

/* ---------------------------------------------------------------- accessibility */
/* No text below 11-12px (the markup used 9/10/11px for labels, badges and captions) */
.text-\[9px\]{font-size:11px;line-height:1.35}
.text-\[10px\]{font-size:12px;line-height:1.4}
.text-\[11px\]{font-size:12px;line-height:1.45}
/* Light-grey captions failed contrast (2.5:1); these are all on light backgrounds (the dark admin sidebar is an <aside>) */
.text-gray-400{color:#6b7280}
main .text-slate-400{color:#64748b}
::placeholder{color:#6b7280;opacity:1}
/* Visible keyboard focus everywhere (utility classes with their own focus ring keep theirs) */
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid #394a8a;outline-offset:2px}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #394a8a;outline-offset:1px}
/* Respect "reduce motion" */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
}

/* ---------------------------------------------------------------- gap-fill (used by event/events/partnership pages; sdgconv2's style.css lacks them) */
.py-14{padding-top:3.5rem;padding-bottom:3.5rem}
.h-52{height:13rem}
.pt-0{padding-top:0}
.top-3{top:.75rem}
.ml-4{margin-left:1rem}
.text-gray-600{color:#4b5563}
.text-white\/50{color:rgb(255 255 255/.5)}
.max-w-\[280px\]{max-width:280px}
.select-all{-webkit-user-select:all;user-select:all}
.bg-ucu-blue-dark\/90{background-color:rgb(36 48 94/.9)}
.bg-white\/\[0\.04\]{background-color:rgb(255 255 255/.04)}
.focus\:border-transparent:focus{border-color:transparent}

/* ---------------------------------------------------------------- story page (event.php): readable column + breathing room */
.story-hero{padding-bottom:2.5rem}
.story-body{padding:2rem 1.5rem 2.5rem}
.story-cover{background:#f1f5f9;display:flex;justify-content:center}
.story-cover img{width:100%;height:auto;max-height:30rem;object-fit:contain;display:block}
.story-text{max-width:46rem;margin-left:auto;margin-right:auto;font-size:1rem;line-height:1.85}
.story-text p{margin:0 0 1.25em}
.story-text :where(h2,h3,h4){margin-top:1.8em}
.story-byline{max-width:46rem;margin:1.75rem auto 0;padding-top:1rem;border-top:1px solid #e2e8f0}
@media (min-width:640px){ .story-body{padding:3rem 3.5rem 3.5rem} .story-hero{padding-bottom:3rem} }
