:root {
  --lbcl-ink: #17232f;
  --lbcl-muted: #61707d;
  --lbcl-line: #dce5ea;
  --lbcl-bg: #f5f8f8;
  --lbcl-card: #ffffff;
  --lbcl-teal: #007791;
  --lbcl-teal-dark: #004f4d;
  --lbcl-blue: #245a7a;
  --lbcl-gold: #c89225;
  --lbcl-red: #9f2d2d;
  --lbcl-shadow: 0 18px 45px rgba(16, 37, 48, 0.13);
}

body {
  color: var(--lbcl-ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 107, 104, 0.12), transparent 28rem),
    linear-gradient(180deg, #f8fbfb 0%, var(--lbcl-bg) 36%, #eef4f2 100%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--lbcl-teal-dark);
}

a:hover,
a:focus {
  color: #003c3a;
}

.lbcl-nav {
  border: 0;
  box-shadow: 0 10px 30px rgba(15, 30, 40, 0.16);
}

.lbcl-logo {
  margin: 0 20px 0 0;
}

.lbcl-logo img {
  max-width: min(380px, 78vw);
  height: auto;
}

.library-quick-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  background: #eef6f5;
  padding: 12px 10px;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.library-quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 18px;
  color: #fff;
  background: var(--lbcl-teal);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 79, 77, 0.18);
  transition: transform 180ms ease, background 180ms ease;
}

.library-quick-links a:hover,
.library-quick-links a:focus {
  color: #fff;
  background: var(--lbcl-teal-dark);
  transform: translateY(-2px);
}

.lbcl-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: #102932;
}

.lbcl-hero-carousel,
.lbcl-hero-carousel .carousel-inner,
.lbcl-hero-carousel .carousel-item {
  position: absolute;
  inset: 0;
  height: 100%;
}

.lbcl-hero-carousel .carousel-item {
  background-position: center;
  background-size: cover;
}

.lbcl-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 33, 38, 0.92), rgba(8, 33, 38, 0.56) 52%, rgba(8, 33, 38, 0.18)),
    linear-gradient(0deg, rgba(8, 33, 38, 0.68), transparent 62%);
  pointer-events: none;
}

.lbcl-hero-content {
  position: relative;
  z-index: 2;
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 64px;
  padding-bottom: 118px;
}

.lbcl-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.lbcl-hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  color: #ecfbfa;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.lbcl-kicker,
.lbcl-section-title p,
.lbcl-status-band span {
  margin: 0 0 8px;
  color: var(--lbcl-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lbcl-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1;
  letter-spacing: 0;
}

.lbcl-hero p:not(.lbcl-kicker) {
  max-width: 650px;
  margin: 14px 0 18px;
  color: #eef8f7;
  font-size: 16px;
}

.lbcl-hero-actions,
.lbcl-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lbcl-hero-actions {
  max-width: 760px;
  margin-top: 14px;
}

.lbcl-hero-actions a,
.lbcl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-height: 44px;
  padding: 10px 16px;
  color: #fff;
  background: var(--lbcl-teal);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 79, 77, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.lbcl-hero-actions a:hover,
.lbcl-hero-actions a:focus,
.lbcl-button:hover,
.lbcl-button:focus {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 79, 77, 0.24);
}

.lbcl-hero-actions a:nth-child(even),
.lbcl-button-alt {
  background: var(--lbcl-red);
}

.lbcl-status-band {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: min(1400px, calc(100% - 32px));
  margin: -70px auto 24px;
}

.lbcl-status-band > div,
.lbcl-panel,
.lbcl-resource-card,
.lbcl-gallery-grid a {
  background: var(--lbcl-card);
  border: 1px solid var(--lbcl-line);
  border-radius: 8px;
  box-shadow: var(--lbcl-shadow);
}

.lbcl-status-band > div {
  padding: 16px;
  position: relative;
  overflow: hidden;
}

/* ── Quick Find: pulled out of band, fixed to top-right of viewport ── */
#lbclQuickFindBand {
  /* remove from grid flow */
  position: fixed;
  top: 10px;
  right: 16px;
  z-index: 1200;          /* above Bootstrap navbar (z-index 1030) */
  width: min(300px, calc(100vw - 32px));
  overflow: visible;      /* let dropdown escape */

  /* slim dark pill to blend with navbar */
  background: rgba(24, 40, 52, 0.92);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  padding: 8px 12px 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.28);
}

/* hide the decorative label inside the navbar widget */
#lbclQuickFindBand > span {
  display: none;
}

/* white ghost input */
#lbclQuickFindBand #lbclResourceSearch {
  height: 36px;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 5px;
  font-size: 13px;
}

#lbclQuickFindBand #lbclResourceSearch::placeholder {
  color: rgba(255,255,255,0.5);
}

#lbclQuickFindBand #lbclResourceSearch:focus {
  outline: 2px solid var(--lbcl-gold);
  background: rgba(255,255,255,0.16);
}

/* gold search button */
#lbclQuickFindBand #lbclPageSearchButton {
  height: 36px;
  padding: 0 12px;
  color: var(--lbcl-teal-dark);
  background: var(--lbcl-gold);
  border: 0;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms;
}

#lbclQuickFindBand #lbclPageSearchButton:hover {
  background: #a07318;
}

/* status text: muted small */
#lbclQuickFindBand .lbcl-search-status {
  margin: 5px 0 0;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}

/* dropdown: anchored below the widget, full width of it */
#lbclQuickFindBand .lbcl-page-search-results {
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 1300;
}
/* ── End Quick Find fixed block ─────────────────────────────────── */

.lbcl-status-band > .lbcl-quick-find-card {
  overflow: visible;
}

.lbcl-status-band > div::after {
  content: "";
  position: absolute;
  inset: auto 16px 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lbcl-teal), var(--lbcl-gold));
  border-radius: 999px 999px 0 0;
}

.lbcl-status-band strong {
  display: block;
  color: var(--lbcl-teal-dark);
  font-size: 20px;
}

.lbcl-status-band p {
  margin: 4px 0 0;
  color: var(--lbcl-muted);
}

#lbclResourceSearch {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: var(--lbcl-ink);
  border: 1px solid var(--lbcl-line);
  border-radius: 6px;
}

.lbcl-search-status {
  margin: 8px 0 0;
  color: var(--lbcl-muted);
  font-size: 13px;
}

.lbcl-page-search-row {
  display: flex;
  gap: 8px;
}

.lbcl-page-search-row input[type="search"] {
  min-width: 0;
}

.lbcl-page-search-row button {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 12px;
  color: #fff;
  background: var(--lbcl-teal);
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.lbcl-page-search-results {
  display: none;
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(100% - 8px);
  z-index: 30;
  max-height: 330px;
  overflow: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--lbcl-line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(16, 37, 48, 0.18);
}

.lbcl-page-search-results.is-visible {
  display: grid;
  gap: 6px;
}

.lbcl-page-search-result {
  display: block;
  padding: 8px 10px;
  color: var(--lbcl-ink);
  border-radius: 6px;
  text-decoration: none;
}

.lbcl-page-search-result:hover,
.lbcl-page-search-result:focus {
  color: var(--lbcl-teal-dark);
  background: rgba(0, 107, 104, 0.08);
  text-decoration: none;
}

.lbcl-page-search-result strong,
.lbcl-page-search-result span {
  display: block;
}

.lbcl-page-search-result strong {
  font-size: 14px;
}

.lbcl-page-search-result span {
  margin-top: 2px;
  color: var(--lbcl-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.lbcl-page-search-empty {
  padding: 10px;
  color: var(--lbcl-muted);
  font-size: 13px;
}

.lbcl-main-section .container-fluid {
  width: min(1400px, calc(100% - 24px));
}

.lbcl-three-column-layout {
  display: grid;
  grid-template-columns: minmax(220px, 3fr) minmax(520px, 8fr) minmax(240px, 3fr);
  gap: 20px;
  align-items: start;
}

.lbcl-left-col,
.lbcl-middle-col,
.lbcl-right-col {
  min-width: 0;
}

.lbcl-home-col {
  padding-left: 10px;
  padding-right: 10px;
}

.lbcl-resource-card,
.lbcl-panel {
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.lbcl-resource-card:hover,
.lbcl-panel:hover {
  border-color: rgba(0, 107, 104, 0.28);
  box-shadow: 0 22px 54px rgba(16, 37, 48, 0.16);
}

.panel-heading,
.lbcl-panel-heading {
  padding: 12px 14px;
  background: linear-gradient(90deg, #e7f5f3, #fff 68%);
  border-bottom: 1px solid var(--lbcl-line);
  position: relative;
}

.panel-heading::before,
.lbcl-panel-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--lbcl-teal), var(--lbcl-gold));
}

.panel-heading h4,
.lbcl-panel-heading h2 {
  margin: 0;
  color: var(--lbcl-teal-dark);
  font-size: 16px;
  font-weight: 800;
}

.panel-heading font,
.panel-body font {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
}

.panel-body,
.lbcl-panel-body {
  padding: 14px;
}

.panel-body p {
  margin: 0;
}

.panel-body a,
.lbcl-resource-card a {
  display: block;
  padding: 7px 0;
  border-top: 1px solid rgba(220, 229, 234, 0.72);
  font-weight: 600;
  transition: color 160ms ease, background-color 160ms ease;
}

.panel-body a:hover,
.panel-body a:focus,
.lbcl-resource-card a:hover,
.lbcl-resource-card a:focus {
  color: var(--lbcl-blue);
  background-color: rgba(0, 107, 104, 0.06);
  text-decoration: none;
}

.panel-body p:first-child a,
.lbcl-resource-card a:first-of-type {
  border-top: 0;
}

.lbcl-left-col .panel-body,
.lbcl-right-col .panel-body {
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.3;
}

.lbcl-left-col .panel-body p,
.lbcl-right-col .panel-body p {
  margin: 0;
  line-height: 1.3;
}

.lbcl-left-col .panel-body a,
.lbcl-right-col .panel-body a,
.lbcl-left-col .lbcl-resource-card a,
.lbcl-right-col .lbcl-resource-card a {
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.25;
}

.lbcl-left-col .lbcl-resource-card .panel-heading:not(:first-child),
.lbcl-right-col .lbcl-resource-card .panel-heading:not(:first-child) {
  margin-top: 12px;
  border-top: 1px solid rgba(220, 229, 234, 0.9);
}

.lbcl-left-col .panel-heading h4,
.lbcl-right-col .panel-heading h4 {
  line-height: 1.25;
}

.lbcl-action-row {
  margin-bottom: 16px;
}

.lbcl-action-row .lbcl-button {
  flex: 1 1 220px;
}

.lbcl-search-panel {
  overflow-x: auto;
}

.lbcl-opac-panel {
  border-color: rgba(36, 90, 122, 0.24);
}

.lbcl-opac-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--lbcl-muted);
  font-weight: 700;
}

.lbcl-opac-search-row {
  display: flex;
  gap: 10px;
}

.lbcl-opac-search-row input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  color: var(--lbcl-ink);
  background: #fff;
  border: 1px solid var(--lbcl-line);
  border-radius: 6px;
}

.lbcl-opac-search-row button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  background: var(--lbcl-blue);
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.lbcl-opac-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.lbcl-opac-links a {
  display: inline-flex;
  padding: 0;
  border: 0;
  font-weight: 800;
}

.lbcl-thesis-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lbcl-thesis-list li {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--lbcl-line);
}

.lbcl-thesis-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.lbcl-thesis-list a {
  padding: 3px 0;
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.25;
}

.lbcl-thesis-list span,
.lbcl-muted {
  display: block;
  margin-top: 2px;
  color: var(--lbcl-muted);
  font-size: 13px;
  line-height: 1.25;
}

.lbcl-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.lbcl-tab-buttons button {
  padding: 9px 14px;
  color: var(--lbcl-teal-dark);
  background: #edf6f5;
  border: 1px solid #cfe2e1;
  border-radius: 6px;
  font-weight: 800;
}

.lbcl-tab-buttons button.active,
.lbcl-tab-buttons button[aria-selected="true"] {
  color: #fff;
  background: var(--lbcl-teal);
  border-color: var(--lbcl-teal);
}

.tabcontent {
  display: none;
  padding: 0;
  border: 0;
}

.tabcontent.active {
  display: block;
}

.tabcontent h3 {
  margin: 8px 0;
  color: var(--lbcl-teal-dark);
  font-size: 18px;
}

.lbcl-download-warning {
  margin: 16px 0 0;
  padding: 12px;
  background: #fff3ef;
  border: 1px solid #f2c8bd;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(159, 45, 45, 0.08);
}

.lbcl-download-warning a {
  color: #801a1a;
}

.lbcl-news-carousel {
  height: 138px !important;
  max-height: 138px !important;
  overflow: hidden !important;
}

.lbcl-news-carousel .carousel-inner {
  position: relative;
  height: 138px !important;
  min-height: 0 !important;
  max-height: 138px !important;
  overflow: hidden !important;
}

.lbcl-news-carousel .carousel-item {
  position: absolute !important;
  inset: 0;
  display: none;
  width: 100%;
  height: 138px !important;
  min-height: 0 !important;
  max-height: 138px !important;
  margin: 0 !important;
}

.lbcl-news-carousel .carousel-item.active {
  display: block !important;
}

.lbcl-news-carousel .carousel-item a {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  height: 138px !important;
  min-height: 0 !important;
  padding: 8px;
  text-align: center;
  border: 0;
}

.lbcl-news-carousel img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.lbcl-news-carousel span {
  color: var(--lbcl-teal-dark);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
}

.lbcl-gallery-section {
  padding: 24px 0;
}

.lbcl-section-title h2 {
  margin: 0 0 16px;
  color: var(--lbcl-ink);
  font-size: 30px;
  font-weight: 800;
}

.lbcl-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.lbcl-gallery-grid a {
  overflow: hidden;
  position: relative;
}

.lbcl-gallery-grid a::after {
  content: "View";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  color: #fff;
  background: rgba(0, 79, 77, 0.88);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.lbcl-gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
  transition: transform 240ms ease;
}

.lbcl-gallery-grid a:hover img,
.lbcl-gallery-grid a:focus img {
  transform: scale(1.06);
}

.lbcl-gallery-grid a:hover::after,
.lbcl-gallery-grid a:focus::after {
  opacity: 1;
  transform: translateY(0);
}

.lbcl-footer {
  color: #eaf5f4;
  background: #007791;
}

.lbcl-footer .container {
  padding-top: 28px;
  padding-bottom: 28px;
}

.lbcl-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.lbcl-footer a {
  display: block;
  padding: 4px 0;
  color: #eaf5f4;
}

.lbcl-footer p {
  margin: 0;
}

.lbcl-footer-bottom {
  padding: 14px;
  color: var(--lbcl-ink);
  background: var(--lbcl-gold);
  text-align: center;
  font-weight: 800;
}

.lbcl-back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  min-width: 52px;
  height: 44px;
  padding: 0 10px;
  color: #fff;
  background: var(--lbcl-teal);
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.lbcl-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lbcl-filter-hidden {
  display: none !important;
}

.lbcl-no-results {
  display: none;
  margin: 0 10px 16px;
  padding: 14px;
  color: var(--lbcl-muted);
  background: #fff;
  border: 1px dashed var(--lbcl-line);
  border-radius: 8px;
  text-align: center;
}

.lbcl-no-results.is-visible {
  display: block;
}

.lbcl-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.lbcl-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1199px) {
  .lbcl-hero-actions a {
    flex: 1 1 calc(50% - 12px);
  }

  .lbcl-status-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .lbcl-three-column-layout {
    grid-template-columns: 1fr;
  }

  .lbcl-status-band {
    grid-template-columns: 1fr;
    margin-top: -58px;
  }

  .lbcl-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* on mobile: move widget to bottom of screen, full width */
  #lbclQuickFindBand {
    top: auto;
    bottom: 60px;   /* above the back-to-top button */
    right: 8px;
    left: 8px;
    width: auto;
  }
}

@media (max-width: 575px) {
  .lbcl-hero {
    min-height: 680px;
  }

  .lbcl-hero-content {
    padding-top: 54px;
    padding-bottom: 160px;
  }

  .lbcl-hero-actions a,
  .lbcl-action-row .lbcl-button {
    width: 100%;
  }

  .lbcl-opac-search-row {
    display: grid;
  }

  .lbcl-opac-search-row button {
    width: 100%;
  }

  .lbcl-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.lbcl-middle-col .lbcl-panel {
  margin-bottom: 10px;
}

.lbcl-middle-col .lbcl-panel-body {
  padding: 10px 12px;
}

.lbcl-middle-col .panel-body {
  padding: 10px 12px;
}

.lbcl-middle-col .lbcl-panel-heading {
  padding: 9px 12px;
}

.lbcl-middle-col .lbcl-panel-heading h2 {
  font-size: 15px;
}

.lbcl-middle-col .lbcl-thesis-list {
  gap: 4px;
}

.lbcl-middle-col .lbcl-thesis-list li {
  padding-bottom: 4px;
}

.lbcl-middle-col .lbcl-thesis-list a {
  font-size: 13px;
  line-height: 1.2;
}

.lbcl-middle-col .lbcl-thesis-list span {
  margin-top: 1px;
  font-size: 12.5px;
  line-height: 1.2;
}

.lbcl-middle-col .lbcl-tab-buttons {
  margin-bottom: 8px;
}

.lbcl-middle-col .lbcl-tab-buttons button {
  padding: 6px 10px;
  font-size: 13px;
}

.lbcl-middle-col .tabcontent h3 {
  font-size: 15px;
  margin: 5px 0;
}

.lbcl-middle-col .tabcontent p {
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.3;
}
