/* Layout fixes from docs/UI_AUDIT.md (UI-xxx = finding id). Loaded by header.jsp after style.css. */

/* UI-014: main menu wraps neatly on tablets and small laptops instead of squeezing every item */
@media (min-width: 600px) {
  .mobile #superfish-1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 8px;
  }
  .mobile #superfish-1 > .main-nav {
    white-space: nowrap;
    padding: 4px 6px;
  }
  .mobile #superfish-1 .submenu {
    white-space: normal;
  }
}
/* the menu header has a fixed 80px height (h-20); let it grow when the menu wraps */
header.h-20 {
  height: auto;
  min-height: 5rem;
}
@media (min-width: 1280px) {
  .mobile #superfish-1 {
    justify-content: space-between;
  }
}

/* UI-013: inline min-width:600px no longer pushes the page wider than tablets and phones */
[style*="min-width:600px"] {
  min-width: 0 !important;
  width: 600px;
  max-width: 100%;
}

/* UI-025, UI-026: embedded PDFs, iframes and videos never exceed their column */
object, embed, iframe, video {
  max-width: 100%;
}

/* UI-029, UI-030: Bootstrap 3 components (Bootstrap itself is not loaded). Base rules are wrapped in :where()
   (no specificity), so Tailwind utilities and the header.jsp .btn-default/.btn-danger styles still win. */

/* badges */
:where(.label) {
  display: inline-block;
  padding: .2em .6em .3em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: .25em;
}
.label-default { background-color: #777; }
.label-primary { background-color: #337ab7; }
.label-success { background-color: #5cb85c; }
.label-info { background-color: #5bc0de; }
.label-warning { background-color: #f0ad4e; }
.label-danger { background-color: #d9534f; }
.label a, .label a:hover { color: #fff; }

/* buttons, panels, form controls */
:where(.btn) {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
}
:where(.btn-lg) { padding: 10px 16px; font-size: 18px; border-radius: 6px; }
:where(.btn-sm) { padding: 5px 10px; font-size: 12px; border-radius: 3px; }
:where(.btn-xs) { padding: 1px 5px; font-size: 12px; border-radius: 3px; }
.btn-primary { color: #fff; background-color: #337ab7; border-color: #2e6da4; }
.btn-primary:hover { background-color: #286090; }
.btn-success { color: #fff; background-color: #5cb85c; border-color: #4cae4c; }
.btn-success:hover { background-color: #449d44; }
.btn-info { color: #fff; background-color: #5bc0de; border-color: #46b8da; }
.btn-info:hover { background-color: #31b0d5; }
.btn-warning { color: #fff; background-color: #f0ad4e; border-color: #eea236; }
.btn-warning:hover { background-color: #ec971f; }

:where(.panel) {
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}
:where(.panel-heading) {
  padding: 10px 15px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.panel-primary { border-color: #337ab7; }
.panel-primary > .panel-heading { color: #fff; background-color: #337ab7; border-color: #337ab7; }
:where(.panel-body) { padding: 15px; }
:where(.panel-footer) { padding: 10px 15px; background-color: #f5f5f5; border-top: 1px solid #ddd; }

:where(.form-control) {
  display: block;
  width: 100%;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857;
  color: #555;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
}
:where(.form-group) { margin-bottom: 15px; }

/* ---- Phase 2: legacy sidebar layout (UI-002, UI-003, UI-004, UI-007, UI-010, UI-013) ---- */

/* UI-007: page containers are centred with a side gutter (:where keeps the Tailwind margin/padding classes in charge) */
:where(.container) {
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* UI-010: Bootstrap 3 grid widths inside .row (header.jsp makes .row a centred flex row from 600px) */
@media (min-width: 768px) {
  .row { flex-wrap: wrap; }
  .row > .col-sm-1 { width: 8.3333%; }   .row > .col-sm-2 { width: 16.6667%; }
  .row > .col-sm-3 { width: 25%; }       .row > .col-sm-4 { width: 33.3333%; }
  .row > .col-sm-5 { width: 41.6667%; }  .row > .col-sm-6 { width: 50%; }
  .row > .col-sm-7 { width: 58.3333%; }  .row > .col-sm-8 { width: 66.6667%; }
  .row > .col-sm-9 { width: 75%; }       .row > .col-sm-10 { width: 83.3333%; }
  .row > .col-sm-11 { width: 91.6667%; } .row > .col-sm-12 { width: 100%; }
  .row > .col-sm-offset-2 { margin-left: 16.6667%; } .row > .col-sm-offset-3 { margin-left: 25%; }
  .row > .col-sm-offset-4 { margin-left: 33.3333%; }
}
@media (min-width: 992px) {
  .row > .col-md-1 { width: 8.3333%; }   .row > .col-md-2 { width: 16.6667%; }
  .row > .col-md-3 { width: 25%; }       .row > .col-md-4 { width: 33.3333%; }
  .row > .col-md-5 { width: 41.6667%; }  .row > .col-md-6 { width: 50%; }
  .row > .col-md-7 { width: 58.3333%; }  .row > .col-md-8 { width: 66.6667%; }
  .row > .col-md-9 { width: 75%; }       .row > .col-md-10 { width: 83.3333%; }
  .row > .col-md-11 { width: 91.6667%; } .row > .col-md-12 { width: 100%; }
  .row > .col-md-offset-2 { margin-left: 16.6667%; } .row > .col-md-offset-3 { margin-left: 25%; }
}
.row > [class*="col-"] { min-width: 0; }
/* title bands: the title column keeps its natural width (the band itself is a shrink-to-fit centred flex box) */
.jumbotron .row > [class*="col-"] { width: auto; }

/* UI-002 to UI-004: legacy pages - a complementary sidebar without a Tailwind width class (aside.col-sm-3 or
   aside.m-5.p-5) next to the content. Sidebar on the left, content fills the rest. */
@media (min-width: 768px) {
  :is(.flex, .md\:flex, .row, .container):has(> :is(aside.col-sm-3, aside[role="complementary"]:not([class*="w-"]))) {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    column-gap: 24px;
  }
  :is(.flex, .md\:flex, .row, .container):has(> :is(aside.col-sm-3, aside[role="complementary"]:not([class*="w-"]))) > :is(aside.col-sm-3, aside[role="complementary"]:not([class*="w-"])) {
    flex: 0 0 25%;
    width: 25%;
    max-width: 280px;
    margin: 0;
    padding: 0;
  }
  :is(.flex, .md\:flex, .row, .container):has(> :is(aside.col-sm-3, aside[role="complementary"]:not([class*="w-"]))) > :is(aside.col-sm-3, aside[role="complementary"]:not([class*="w-"])) ~ * {
    flex: 1 1 0%;
    width: auto;
    max-width: none;
    min-width: 0;
    margin-left: 0;
  }
  /* the same layout without a page container: give it the container width and gutter */
  :not(.container) > :is(.flex, .md\:flex, .row, .container):has(> :is(aside.col-sm-3, aside[role="complementary"]:not([class*="w-"]))) {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
  }
}
/* below 768px sidebar and content stack, both full width */
@media (max-width: 767.98px) {
  :is(.flex, .md\:flex, .row, .container):has(> :is(aside.col-sm-3, aside[role="complementary"]:not([class*="w-"]))) {
    display: block;
  }
  :is(aside.col-sm-3, aside[role="complementary"]:not([class*="w-"])) {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    /* room for the slanted cap above the sidebar title (15.5% of the width, title margin 39px) */
    padding-top: max(20px, calc(15.5% - 39px));
  }
}

/* ---- Phase 4: homepage (index.jsp) ---- */

/* UI-023: the "View All Notices/Tenders" button sits at the bottom of its box; keep the scrolling list clear of it */
.relative.notice, .relative.tenders {
  padding-bottom: 72px;
}

/* UI-024: the home video keeps 16:9 instead of a fixed 200px height (the iframe is editable content in home/video) */
#block-block-20 iframe {
  aspect-ratio: 16 / 9;
  height: auto !important;
}

/* style.css sets every iframe to height:auto on phones, which shrinks the map to 150px */
@media (max-width: 767px) {
  iframe[title="Map"] {
    min-height: 300px;
  }
}

/* ---- Phase 5: one title-bar style (UI-016, UI-017) ---- */

/* the grey title band of the legacy pages looks like the About pages' bar (bg-gray-200 py-4 mt-4, text-2xl semibold) */
.jumbotron {
  background: #e5e7eb;
  margin-top: 1rem;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  font-size: 1.5rem;
}
.jumbotron h1, .jumbotron h2, .jumbotron h3 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  margin: 0;
}
/* a band without a title is only an empty grey stripe */
.jumbotron:not(:has(h1, h2, h3, h4)) {
  display: none;
}

/* UI-025: phones usually cannot show embedded PDFs; keep the 1000px box from pushing the download link far down */
@media (max-width: 767px) {
  object[type="application/pdf"] {
    height: 75vh;
  }
}

/* ---- Phase 6: HOD pages with AdminLTE inside the site layout (UI-032) ---- */

/* AdminLTE's <body class="layout-fixed"> comes after header.jsp, so the browser drops it and the sidebar stays fixed
   at the top of the window over the site header. Anchor it to its own wrapper instead. */
.wrapper:has(> .main-sidebar) {
  position: relative;
}
.wrapper > .main-sidebar {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden;
}
/* AdminLTE/Bootstrap colour every link blue; the site header and footer keep their own colours */
header a, header a:hover, .gt-footersection a, .gt-footersection a:hover {
  color: inherit;
}

/* ---- 2026-11-01: page title band, refined (both kinds: .jumbotron and the About-style band) ----
   31 pages use <div class="bg-gray-200 py-4 mt-4"> with an h3 (optionally a Home link left or the social icons right),
   the department pages a .jumbotron. Phones: Home, title and icons stack centred instead of squeezing into one row. */
.jumbotron,
.bg-gray-200.py-4.mt-4:has(h3) {
  background: #eef2f8;
  border-top: 1px solid #e1e7f0;
  border-bottom: 1px solid #d8e0eb;
  padding-top: 1.35rem !important;
  padding-bottom: 1.35rem !important;
}
.jumbotron h1, .jumbotron h2, .jumbotron h3,
.bg-gray-200.py-4.mt-4:has(h3) h3 {
  color: #0d2847;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.3;
}
.bg-gray-200.py-4.mt-4:has(h3) > .container > .flex { gap: 16px; }
/* Home link: a small chip */
.bg-gray-200.py-4.mt-4:has(h3) a:has(> .fa-home) {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid #d3dcea; border-radius: 999px;
  background: #fff; color: #285690; font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.bg-gray-200.py-4.mt-4:has(h3) a:has(> .fa-home):hover { background: #285690; border-color: #285690; color: #fff; }
/* social icons: round chips that take the brand colour on hover */
.bg-gray-200.py-4.mt-4:has(h3) .flex:has(> a > .fab) { display: flex; flex-wrap: wrap; gap: 8px; }
.bg-gray-200.py-4.mt-4:has(h3) .flex:has(> a > .fab) > * { margin: 0 !important; }
.bg-gray-200.py-4.mt-4:has(h3) a:has(> .fab) {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 1px solid #d3dcea; color: #285690 !important; font-size: 15px;
  box-shadow: 0 2px 6px rgba(13, 40, 71, .06);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.bg-gray-200.py-4.mt-4:has(h3) a:has(> .fab):hover { color: #fff !important; transform: translateY(-2px); }
.bg-gray-200.py-4.mt-4:has(h3) a[href*="facebook"]:hover { background: #1877f2; border-color: #1877f2; }
.bg-gray-200.py-4.mt-4:has(h3) a[href*="x.com"]:hover, .bg-gray-200.py-4.mt-4:has(h3) a[href*="twitter"]:hover { background: #111; border-color: #111; }
.bg-gray-200.py-4.mt-4:has(h3) a[href*="instagram"]:hover { background: #d62976; border-color: #d62976; }
.bg-gray-200.py-4.mt-4:has(h3) a[href*="whatsapp"]:hover { background: #25d366; border-color: #25d366; }
.bg-gray-200.py-4.mt-4:has(h3) a[href*="youtube"]:hover { background: #ff0000; border-color: #ff0000; }
.bg-gray-200.py-4.mt-4:has(h3) a[href*="linkedin"]:hover { background: #0a66c2; border-color: #0a66c2; }
@media (max-width: 767.98px) {
  .jumbotron,
  .bg-gray-200.py-4.mt-4:has(h3) {
    padding-top: 1.1rem !important;
    padding-bottom: 1.1rem !important;
  }
  .bg-gray-200.py-4.mt-4:has(h3) > .container > .flex {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
  .bg-gray-200.py-4.mt-4:has(h3) > .container > .flex > * { flex: 0 0 auto; width: 100%; justify-content: center; }
  .jumbotron h1, .jumbotron h2, .jumbotron h3,
  .bg-gray-200.py-4.mt-4:has(h3) h3 { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-gray-200.py-4.mt-4:has(h3) a { transition: none; }
  .bg-gray-200.py-4.mt-4:has(h3) a:hover { transform: none; }
}

/* the second, never-filled notice marquee (department/manufacturing/about.jsp) is only an empty grey stripe */
.bg-gray-100.py-4:has(.animate-marquee):not(:has(li)) { display: none; }

/* ---- 2026-11-01: notices – the department "Latest News / Updates" box and the home page boxes ----
   CSS only. Department sites: the box around ul#noticeBoardItems on the 10 About pages (Manufacturing nests it one
   level deeper). Home: the three boxes of index.jsp (.notice.md:flex: Important Links, Latest Notices, Latest Tenders). */
.md\:w-1\/3 > div:has(#noticeBoardItems) {
  padding: 0 !important;
  border: 1px solid #e3e8f0;
  border-radius: 14px !important;
  background: #fff;
  box-shadow: 0 10px 28px rgba(13, 40, 71, .08);
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.md\:w-1\/3 > div:has(#noticeBoardItems) .mb-6:has(#noticeBoardItems) { margin-bottom: 0; }
.md\:w-1\/3 > div:has(#noticeBoardItems) .bg-gray-800 {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px;
  padding: 16px 20px !important; border-radius: 0 !important; border-bottom: 3px solid #e0a526;
  background: #0d2847 !important; font-size: 15px; letter-spacing: .02em;
}
.md\:w-1\/3 > div:has(#noticeBoardItems) .bg-gray-800 strong { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.md\:w-1\/3 > div:has(#noticeBoardItems) .bg-gray-800 .fa { color: #e0a526; }
.md\:w-1\/3 > div:has(#noticeBoardItems) .bg-gray-800 .fa-news::before { content: "\f1ea"; } /* fa-news does not exist */
.md\:w-1\/3 > div:has(#noticeBoardItems) .bg-gray-800 strong a {
  padding: 3px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; font-size: 13px; font-weight: 500;
}
.md\:w-1\/3 > div:has(#noticeBoardItems) .bg-gray-800 strong a:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
div:has(> #noticeBoardItems) {
  padding: 6px 0 18px !important;
  max-height: 480px;
  font-family: inherit !important;
  font-size: inherit !important;
  scrollbar-width: thin;
  scrollbar-color: #c9d4e4 transparent;
}
#noticeBoardItems { margin: 0; padding: 0; list-style: none; }
#noticeBoardItems > li {
  margin: 0 !important; padding: 12px 20px !important; border-bottom: 1px solid #edf1f6 !important;
  border-left: 3px solid transparent; background: #fff !important; transition: background-color .2s ease, border-color .2s ease;
}
#noticeBoardItems > li:hover { background: #f7f9fc !important; border-left-color: #e0a526; }
#noticeBoardItems > li > div {
  display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center !important;
  justify-content: flex-start !important; gap: 6px 8px !important; text-align: left;
}
#noticeBoardItems > li > div > * { margin: 0 !important; }
#noticeBoardItems > li > div > span:first-child {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 !important; border: 0 !important; background: none !important;
  color: #5d6b82 !important; font-size: 12.5px; font-weight: 500;
}
#noticeBoardItems > li > div > span:first-child i { display: none; }
#noticeBoardItems > li > div > span:first-child::before { content: "\f073"; font-family: "Font Awesome 5 Free"; font-weight: 400; color: #285690; }
#noticeBoardItems > li > div > span:nth-child(2) {
  padding: 1px 10px !important; border-radius: 999px !important; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; line-height: 1.7;
}
#noticeBoardItems .bg-yellow-400 { background: #fdf1d6 !important; color: #8a5a00 !important; }
#noticeBoardItems .bg-blue-500 { background: #e1ecfa !important; color: #1d4f91 !important; }
#noticeBoardItems .bg-red-500 { padding: 1px 10px !important; border-radius: 999px !important; font-size: 12px; }
#noticeBoardItems > li > div > a {
  flex: 1 0 100%; color: #0d2847 !important; font-size: 14.5px; font-weight: 500; line-height: 1.5; text-decoration: none;
}
#noticeBoardItems > li > div > a:hover { color: #285690 !important; text-decoration: underline; }
#noticeBoardItems:not(:has(li))::before { content: "No news or notices yet."; display: block; padding: 14px 20px; color: #5d6b82; font-size: 14px; }
div:has(> #noticeBoardItems) > a.block {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 20px 0 !important; padding: 10px 16px !important;
  border: 1px solid #285690; border-radius: 999px !important; background: #fff !important; color: #285690 !important;
  font-size: 14px; font-weight: 600; transition: background-color .2s ease, color .2s ease;
}
div:has(> #noticeBoardItems) > a.block:hover { background: #285690 !important; color: #fff !important; }

/* home page */
div.notice.md\:flex {
  gap: 24px;
  padding: 40px max(16px, calc((100% - 1280px) / 2)) !important;
  background: #f4f7fb;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
div.notice.md\:flex > div {
  position: relative; min-height: 440px; padding: 0 0 20px !important; border: 1px solid #e3e8f0 !important; border-radius: 14px;
  background: #fff; box-shadow: 0 10px 28px rgba(13, 40, 71, .08); overflow: hidden;
}
div.notice.md\:flex > div.relative { padding-bottom: 80px !important; }
div.notice.md\:flex .headers.linkheader {
  display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 16px 20px !important;
  background: #0d2847 !important; border-bottom: 3px solid #e0a526; color: #fff;
  font-size: 14.5px; font-weight: 600; letter-spacing: .1em; line-height: 1.4; text-align: left; text-transform: uppercase;
}
div.notice.md\:flex .headers.linkheader::before { font-family: "Font Awesome 5 Free"; font-weight: 900; color: #e0a526; font-size: 15px; }
div.notice.md\:flex > .importantlinks .headers::before { content: "\f0c1"; }
div.notice.md\:flex > .notice .headers::before { content: "\f0a1"; }
div.notice.md\:flex > .tenders .headers::before { content: "\f15c"; }
div.notice.md\:flex .importantlinks .link {
  margin: 0 !important; padding: 10px 20px; border-bottom: 1px solid #edf1f6; color: #e0a526; font-size: 14.5px;
  transition: background-color .2s ease;
}
div.notice.md\:flex .importantlinks .link:hover { background: #f7f9fc; }
div.notice.md\:flex .importantlinks .link a { color: #0d2847; font-weight: 500; }
div.notice.md\:flex .importantlinks .link a:hover { color: #285690; text-decoration: underline; }
div.notice.md\:flex marquee { display: block; height: 320px; }
div.notice.md\:flex marquee > div { padding: 12px 20px; border-bottom: 1px solid #edf1f6; line-height: 1.5; }
div.notice.md\:flex marquee > div > span.label:first-child {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 !important; border: 0 !important; background: none !important;
  color: #5d6b82 !important; font-size: 12.5px; font-weight: 500;
}
div.notice.md\:flex marquee > div > span.label:first-child::before { content: "\f073"; font-family: "Font Awesome 5 Free"; font-weight: 400; color: #285690; }
div.notice.md\:flex marquee .label-warning, div.notice.md\:flex marquee .label-primary {
  display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  line-height: 1.7; text-transform: uppercase; vertical-align: middle;
}
div.notice.md\:flex marquee .label-warning { background: #fdf1d6 !important; color: #8a5a00 !important; }
div.notice.md\:flex marquee .label-primary { background: #e1ecfa !important; color: #1d4f91 !important; }
div.notice.md\:flex marquee > div > a {
  display: block; margin-top: 4px; color: #0d2847; font-size: 14.5px; font-weight: 500; text-decoration: none !important; cursor: pointer;
}
div.notice.md\:flex marquee > div > a:hover { color: #285690; text-decoration: underline !important; }
div.notice.md\:flex .absolute.bottom-0 { bottom: 20px; }
div.notice.md\:flex .absolute.bottom-0 button {
  margin: 0 !important; padding: 9px 24px !important; border: 1px solid #285690; border-radius: 999px !important;
  background: #fff !important; color: #285690 !important; font-weight: 600; transition: background-color .2s ease, color .2s ease;
}
div.notice.md\:flex .absolute.bottom-0 button:hover { background: #285690 !important; color: #fff !important; }
@media (max-width: 767.98px) {
  div.notice.md\:flex { padding: 24px 16px !important; }
  div.notice.md\:flex > div { min-height: 0; margin-bottom: 20px; }
  div.notice.md\:flex > div:last-child { margin-bottom: 0; }
  div.notice.md\:flex marquee { height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  #noticeBoardItems > li, div.notice.md\:flex .importantlinks .link, div:has(> #noticeBoardItems) > a.block { transition: none; }
}
/* a box without entries says so instead of staying blank */
div.notice.md\:flex > div.relative:not(:has(marquee > div)) marquee { display: none; }
div.notice.md\:flex > div.relative:not(:has(marquee > div))::after { display: block; padding: 18px 20px; color: #5d6b82; font-size: 14.5px; }
div.notice.md\:flex > div.notice:not(:has(marquee > div))::after { content: "No notices at the moment."; }
div.notice.md\:flex > div.tenders:not(:has(marquee > div))::after { content: "No tenders at the moment."; }

/* ---- 2026-11-01: text pages – content card and typography ----
   The text column next to a page's sidebar (about 150 pages: About KEC, Academics, Facilities, RTI, Approval,
   department sites, ...) gets one typography; a column without its own card becomes a white card. Also the blocks
   added with "Add to this page" (#page-blocks). Pages with their own design (vision, history, profiles, course files)
   are left out. Look only; texts and links are unchanged. */
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col):not(:has(.bg-white, .shadow, .shadow-lg, .shadow-md, .card, .panel)) {
  align-self: flex-start; flex: 1 1 0%; min-width: 0; max-width: none !important; margin-top: 0 !important;
  padding: 28px 32px !important; border: 1px solid #e3e8f0; border-radius: 16px; background: #fff;
  box-shadow: 0 12px 30px rgba(13, 40, 71, .08);
}
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col), #page-blocks.kec-blocks {
  --kp-navy: #0d2847; --kp-blue: #285690; --kp-gold: #e0a526; --kp-line: #e3e8f0; --kp-soft: #f4f7fb;
  color: #1f2a3d; font-family: 'Inter', 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.75; overflow-wrap: anywhere;
}
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) :is(.page-content, .text-justify, .font-light, .text-lg, .leading-relaxed) {
  font-size: 16px !important; font-weight: 400 !important; line-height: 1.75 !important;
}
/* one font: old texts force Georgia/Times etc. inline */
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) :is(p, span, li, td, th, div, strong, b, em, i:not([class*="fa"]), font, a, h1, h2, h3, h4, h5, h6),
#page-blocks.kec-blocks .kec-text :is(p, span, li, td, th, div, strong, b, em, font, a) { font-family: inherit !important; }
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) :is(h1, h2, h3, h4), #page-blocks.kec-blocks :is(h1, h2, h3, h4) {
  color: var(--kp-navy) !important; font-family: inherit; font-weight: 700 !important; line-height: 1.35 !important; letter-spacing: .005em;
}
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) :is(h1, h2), #page-blocks.kec-blocks :is(h1, h2) {
  font-size: 22px !important; margin: 4px 0 14px !important; padding-bottom: 10px; border-bottom: 1px solid var(--kp-line);
}
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) :is(h3, h4), #page-blocks.kec-blocks :is(h3, h4) { position: relative; font-size: 18px !important; margin: 22px 0 10px !important; padding-left: 14px; }
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) :is(h3, h4)::before, #page-blocks.kec-blocks :is(h3, h4)::before {
  content: ""; position: absolute; left: 0; top: .25em; bottom: .25em; width: 4px; border-radius: 2px; background: var(--kp-gold);
}
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) p, #page-blocks.kec-blocks p { margin: 0 0 14px; }
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) a:not(.btn):not([class*="bg-"]):not([class*="cf-btn"]), #page-blocks.kec-blocks a:not(.btn):not([class*="bg-"]) {
  color: var(--kp-blue); text-decoration: none; border-bottom: 1px solid rgba(40, 86, 144, .25);
}
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) a:not(.btn):not([class*="bg-"]):not([class*="cf-btn"]):hover, #page-blocks.kec-blocks a:not(.btn):not([class*="bg-"]):hover {
  color: var(--kp-navy); border-bottom-color: var(--kp-gold);
}
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) :is(ul, ol), #page-blocks.kec-blocks .kec-text :is(ul, ol) { margin: 0 0 14px; padding-left: 1.4em; }
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) ul { list-style: disc; }
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) ol { list-style: decimal; }
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) li, #page-blocks.kec-blocks .kec-text li { margin: 4px 0; }
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) li::marker, #page-blocks.kec-blocks .kec-text li::marker { color: var(--kp-blue); }
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) table, #page-blocks.kec-blocks table {
  width: 100%; margin: 6px 0 18px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--kp-line); border-radius: 12px;
  overflow: hidden; font-size: 15px; background: #fff;
}
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) :is(th, td), #page-blocks.kec-blocks :is(th, td) {
  padding: 10px 14px !important; border: 0 !important; border-bottom: 1px solid var(--kp-line) !important; text-align: left; vertical-align: top;
}
/* old tables colour their rows with bgcolor / inline backgrounds (e.g. bright green): one look */
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) :is(td, th)[bgcolor], :is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) tr[bgcolor] > :is(td, th), :is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) :is(td, th)[style*="background"] {
  background-color: transparent !important; color: inherit !important;
}
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) :is(th, thead td), :is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) tr:first-child:has(> th, > td > strong, > td > b) > :is(td, th), #page-blocks.kec-blocks :is(th, thead td) {
  background: var(--kp-navy) !important; color: #fff !important; font-weight: 600;
}
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) tr:first-child:has(> th, > td > strong, > td > b) > :is(td, th) :is(strong, b, a) { color: #fff !important; }
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) tbody tr:nth-child(even):not(:first-child) > td, #page-blocks.kec-blocks tbody tr:nth-child(even) > td { background-color: var(--kp-soft) !important; }
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) tr:last-child > td { border-bottom: 0 !important; }
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) img:not([class*="w-"]):not([class*="h-"]), #page-blocks.kec-blocks img { max-width: 100%; height: auto; border-radius: 10px; }
:is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) hr, #page-blocks.kec-blocks hr { margin: 18px 0; border: 0; border-top: 1px solid var(--kp-line); }
/* breathing room between the title band and the sidebar + content row */
:is(.flex, .md\:flex, .row, .grid):has(> aside, > div > aside) { padding-top: 24px; }
/* some old sidebars centre their links */
:is(aside .region-sidebar-second > section, aside section#block-menu-block-3) :is(h2, li, li a) { text-align: left !important; }

/* blocks added with "Add to this page": one card under the page content (only when there are blocks) */
#page-blocks.kec-blocks:has(> h2, > h3, > .kec-text, > figure, > p) {
  max-width: 1280px; margin: 0 auto 32px; padding: 28px 32px !important; border: 1px solid #e3e8f0; border-radius: 16px; background: #fff;
  box-shadow: 0 12px 30px rgba(13, 40, 71, .08);
}
#page-blocks.kec-blocks .kec-text { color: #1f2a3d; text-align: left; }
@media (max-width: 767.98px) {
  :is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col):not(:has(.bg-white, .shadow, .shadow-lg, .shadow-md, .card, .panel)) { margin-top: 16px !important; padding: 20px 18px !important; }
  #page-blocks.kec-blocks:has(> h2, > h3, > .kec-text, > figure, > p) { margin: 0 16px 24px; padding: 20px 18px !important; }
  :is(:is(.flex, .md\:flex, .row, .grid):has(> aside) > div:first-of-type, :is(.flex, .md\:flex, .row, .grid) > div:has(> aside) + div):not(:has(.vm, .hs-card, .hs-col, .fp-page, .cf-page, .cfm-table, #vision-statements)):not(.hs-col) table { display: block; overflow-x: auto; }
}
