/***** Styles for all pages except home *****/

:root {
  --logo-width: 399px;
  --logo-height: 109px;
}

/* ================================
  Global Font, Color & Link Styles
  ================================ */
body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background: #f9f9f9;
  color: #222;
  line-height: 1.6;
}
a {
  color: #174d35;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #69be28;
  text-decoration: underline;
  outline: none;
}

/* ===========================
  Text Styles for Div Classes
  =========================== */
.centered-text {
  text-align: center;
  /* <div class="centered-text"> */
}
blockquote {
  font-style: italic;
  border-left: 4px solid #ccc;
  margin: 1.5em 10px;
  padding: 0.5em 20px;
  color: #333;
}
blockquote p {
  margin: 0;
  /* top & bottom margin fix for multiple paragraph quotes */
}
cite {
  font-style: italic;
  /* represents the title of a work */
}

/* ===========================
   Page Title & Heading Styles
   =========================== */

.msl-page-title {
  color: #006a4d;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.3rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

/* All headings: use condensed, bold */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-weight: 700; /* Bold */
  font-stretch: condensed;
  margin-top: 0.7em;
  margin-bottom: 0.5em;
}

/* h1: green, centered, bold, keep default size */
h1 {
  color: #006A4D;
  text-align: center;
  /* If you want to set size explicitly: font-size: 2.5rem; */
}

/* .tagline: for your visual subheading */
.tagline {
  display: block;
  text-align: center;
  margin: 0.25em 0 0.5em 0;
  font-family: 'Roboto', Arial, sans-serif; /* normal roboto, not condensed */
  font-size: 1.3rem;                /* Adjust size as needed */
  font-weight: 400;                  /* Lighter than headings */
  color: #444;                       /* Muted/dark gray, adjust to taste */
  font-style: italic;                /* Optional: gentle style */
  letter-spacing: 0.04em;
}

/* h2: all-caps, centered, keep usual h2 size */
h2 {
  text-transform: uppercase;
  text-align: center;
  /* If you want to force size, add font-size: 2rem; */
}

/* h3: only centered; size = browser default, bold condensed */
h3 {
  text-align: center;
  /* No font-size: browser keeps its normal hierarchy */
}

/* h4-h6: normal heading styles, bold condensed, NOT centered or all-caps */
h4, h5, h6 {
  /* The font settings above (family/weight) still apply */
  text-align: left;
  text-transform: none;
  /* No change to color or size */
}

/* ============================
  Header: Logo & Navbar Styles
  ============================ */
.header-with-logo {
  background-color: #006a4d;
  border-bottom: 1px solid #000;
}
.navbar,
.header-with-logo .navbar {
  background-color: #006a4d !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
}
.logo-container {
  min-width: var(--logo-width);
  height: var(--logo-height);
  display: flex;
  align-items: flex-end;
  padding: 0 15px 0 0;
  background: #006a4d;
  box-sizing: border-box;
}
.logo-container img {
  max-height: calc(var(--logo-height) - 24px);
  width: auto;
  display: block;
}
.header-with-logo .navbar-brand {
  padding: 0;
  margin-right: 2rem;
  height: var(--logo-height);
  display: flex;
  align-items: flex-end;
}
.header-with-logo .navbar-nav {
  flex-direction: row;
  align-items: flex-end;
}
.header-with-logo .nav-link,
.header-with-logo .navbar-text {
  color: #fff !important;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1.2;
}
.header-with-logo .dropdown-menu {
  margin-top: 0.25rem;
}
.navbar-toggler {
  border-color: #fff;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (max-width: 991.98px) {
  .logo-container,
  .header-with-logo .navbar-brand {
    min-width: 0;
    height: auto;
    padding: 0.5rem 0;
    margin-right: 0;
  }
  .logo-container img {
    max-height: 48px;
    width: auto;
    margin: 0 auto;
  }
  .header-with-logo .navbar-nav {
    flex-direction: column;
    align-items: stretch;
  }
}
/* Only affects headers with BOTH header-with-logo and header-2nd-level */
.header-with-logo.header-2nd-level .logo-container {
  min-width: 266px;
  height: 73px;
  padding: 5px 0 10px 20px;
  display: flex;
  align-items: flex-end;
  background: #006a4d;
  box-sizing: border-box;
}
.header-with-logo.header-2nd-level .logo-container img {
  max-height: 58px;
  width: auto;
  display: block;
}


/* =================
  Breadcrumb Styles
  ================ */

.msl-breadcrumbs {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin: 1.5rem 0 1.25rem 0;
  color: #222;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  color: #006a4d;
  font-weight: 700;
  font-size: 1rem;
}


.breadcrumb-item a {
  color: #006a4d;
  text-decoration: none;
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
  color: #174d35;
  text-decoration: underline;
  outline: none;
}

.breadcrumb-item.current {
  color: #222;
  font-weight: 700;
}

/* =============
  SidebarStyles
  ============= */
.msl-sidebar {
  border-right: 1px solid #000;
  padding-right: 1.5rem;
  margin-right: 2rem;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
}
.msl-sidebar nav {
  display: block;
  height: auto;
}
.msl-sidebar, .msl-sidebar * {
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: break-word;
}
.sidebar-headline {
  font-size: 1.15rem;
  font-weight: 700;
  color: #006a4d;
  margin-bottom: 1rem;
}
.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-nav li {
  margin-bottom: 0.5rem;
}
.sidebar-nav a {
  color: #006a4d;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
}
.sidebar-nav a:hover, .sidebar-nav a:focus {
  color: #174d35;
  text-decoration: underline;
}
.sidebar-divider {
  border: none;
  border-top: 1px solid #000;
  margin: 1.5rem 0 1rem 0;
}
.sidebar-contact {
  color: #222;
  font-size: 0.97rem;
  font-weight: 400;
  margin-top: 0.5rem;
}
.sidebar-you-belong {
  font-weight: 700;
}
.main-headline {
  display: block;
  color: #222;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}
@media (max-width: 991.98px) {
  .msl-sidebar {
    border-right: none;
    border-bottom: 1px solid #000;
    margin-right: 0;
    margin-bottom: 2rem;
    padding-right: 0;
    padding-bottom: 1.5rem;
  }
}

/* =====================================
   Styles for Ask Your Personal Librarian
======================================= */

.librarian-card-grid {
  margin-bottom: 2.5em;
}

/* Responsive grid: 3 per row on large (lg), 2 per row on medium, stack on small */
.librarian-card-grid > .col-12 { display: flex; }

.librarian-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 1.5px 8px #0001;
  border-radius: 1em;
  border: 1px solid #e8e8e8;
  background: #fff;
  width: 100%;
  min-width: 0;
  max-width: 410px;
  margin-left: auto;
  margin-right: auto;
  transition: box-shadow .15s;
  position: relative;
}
.librarian-card:focus-within {
  outline: 3px solid #006a4d;
  box-shadow: 0 4px 14px #069a7e33;
  z-index: 2;
}
.librarian-photo {
  width: 104px;
  height: 104px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 4px solid #f5f7fa;
  background: #f5f7fc;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.5em;
  box-shadow: 0 1px 4px #0001;
}

/* Responsive smaller sizes on tablets/phones */
@media (max-width: 991.98px) {
  .librarian-photo { width: 80px; height: 80px; }
}
@media (max-width: 767.98px) {
  .librarian-photo { width: 64px; height: 64px; }
}
.librarian-card-header {
  padding-bottom: 0.1em;
}
.librarian-card .card-title {
  font-size: 1.18em;
  font-weight: 700;
  margin-bottom: .35em;
}
.librarian-card .card-subtitle {
  font-size: .99em;
}

.librarian-card .librarian-appointment {
  font-size: 1em;
  background: #008744;
  border-color: #008744;
  color: #fff;
  font-weight: 600;
  border-radius: .7em;
  padding: 0.45em 0.85em;
  margin: .2em 0 .9em 0;
  box-shadow: 0 2px 8px #00874422;
}
.librarian-card .librarian-appointment:hover,
.librarian-card .librarian-appointment:focus-visible {
  background: #0ca664;
  color: #fff;
  outline: 2px solid #0ca644;
}
.librarian-card .btn.disabled,
.librarian-card .btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: .57;
}

/* Subject specialty tiny badges */
.librarian-card .librarian-specialty-badge {
  font-size: 0.85em;
  margin: 0 1.5px 3.5px 0;
  font-weight: 500;
  padding: 0.38em 0.81em;
  vertical-align: middle;
  border-radius: 0.75em;
}
.librarian-card .librarian-specialty-badge a {
  color: inherit; text-decoration: none;
}
.librarian-card .librarian-specialty-badge a:focus,
.librarian-card .librarian-specialty-badge a:hover {
  text-decoration: underline;
}
.librarian-card .profile-link {
  display: inline-block;
  margin-top: .4em;
  font-size: 1.04em;
  color: #01549b;
  text-decoration: underline;
  font-weight: 600;
}
.librarian-card .profile-link:focus,
.librarian-card .profile-link:hover {
  color: #008744;
  background: #e7fcf2;
}

/* Vacant position styling */
.librarian-card-vacant {
  background: #cccccc;
  border-color: #ffd872 !important;
}
.librarian-card-vacant .card-title { color: #b79000 !important; }
.librarian-card-vacant .librarian-specialty-badge {
  background: #cccccc;
  border: 1.3px solid #ffe06a;
  color: #988000;
}

/* Responsive styles for stacking, photo sizing, spacing  */
@media (max-width: 1199.98px) {
  .librarian-card { max-width: 97vw; }
}
@media (max-width: 991.98px) {
  .librarian-card-grid > .col-md-6 { width: 100% !important; max-width: 100%; flex: 0 0 100%; }
  .librarian-photo { width: 80px; height: 80px; }
}
@media (max-width: 767.98px) {
  .librarian-card { margin-bottom: 1.2em; }
  .librarian-photo { width: 64px; height: 64px; }
}




/* =============
  Footer Styles
  ============= */
.footer-main {
  background: #006a4d;
  color: #fff;
}
.footer-link {
  color: #ffd872;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1em;
}
.footer-link:hover,
.footer-link:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-hr {
  border-top: 2px solid #ffd872;
  opacity: 1;
  width: 60%;
  margin: 0.5em 0 1em 0;
}
.footer-bottom {
  background: #174d35;
  color: #fff;
  font-size: 0.95em;
}
.footer-bottom-link {
  color: #ffd872;
  margin-left: 1em;
  text-decoration: none;
  font-size: 0.95em;
}
.footer-bottom-link:hover,
.footer-bottom-link:focus {
  color: #fff;
  text-decoration: underline;
}
@media (max-width: 767.98px) {
  .footer-bottom .container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5em;
  }
  .footer-bottom-link {
    margin-left: 0;
    margin-right: 1em;
  }
}

/* ===========================
  Utility
  =========================== */
/*
.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.175)!important;
}
*/

/* Accessibility: Skip link for keyboard/screenreader users */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
  background: #ffd872;
  color: #222;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  font-size: 1rem;
  outline: 2px solid #222;
}

/* Page layout flex container */
.page-body {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
main[role="main"] {
  flex: 1 1 0%;
  min-width: 0;
}
aside.sidebar-area {
  flex: 0 0 260px;
  max-width: 260px;
  min-width: 180px;
  margin-left: 2rem;
}

/* Responsive adjustments for page body and sidebar */
@media (max-width: 991.98px) {
  .page-body {
    flex-direction: column;
  }
  aside.sidebar-area {
    margin-left: 0;
    max-width: none;
    margin-top: 2rem;
  }
}

/* Visually align sidebar headline and sidebar (duplicate, but update if necessary) */
.sidebar-headline {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

/* =================
  Responsive & Misc
  ================ */
@media (max-width: 991.98px) {}
  .header-with-logo {
    flex-direction: column;
    align-items: stretch;
  }
}