/* ========================================================================== 
   01. FONT DEFINITIONS
   ========================================================================== */

@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url(https://webdemo3.lau.edu.lb/_css/fonts/fa-regular-400.woff2) format("woff2"),
        url(https://webdemo3.lau.edu.lb/_css/fonts/fa-regular-400.ttf) format("truetype");
}


/* ========================================================================== 
   02. BASE / GLOBAL LAYOUT
   ========================================================================== */

/* Enables container query units (cqw/cqh) used by the header layout. */
body {
    container-type: size;
}

main h2 {
    margin-top: 2em;
    margin-bottom: 1em;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: 0;
    /* Gradient text treatment for section headings. */
    text-decoration: underline double rgba(120, 190, 32, 0.1);
    background-image: linear-gradient(var(--primarygreen70percent) 0, var(--primarygreen) 80%);
    background-clip: text;
    color: transparent;
}

main > h2:first-child {
    margin-top: 0;
}

.grid,
.grid2 {
    margin-bottom: 1rem;
}

.icon {
    width: 1rem;
    margin-right: 0.5rem;
}

/* ========================================================================== 
   03. GLOBAL HEADER / BRANDING
   ========================================================================== */

.lau_logo {
    width: var(--toplogosize-dep);
    margin-bottom: 3rem;
}

/* Complete right-hand column beside the LAU logo. */
.site-subtitle {
    position: relative;
    margin-left: calc(var(--toplogosize-dep) + var(--toplogomarginright));
    padding-top: 1rem;
    padding-left: 1rem;
}

.site-subtitle > a {
    position: relative;
    z-index: 2;
    display: inline-block;
    color: var(--primarygreen);
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
}

/* Decorative horizontal bar below the site title. */
.site-subtitle::after {
    content: "";
    position: absolute;
    top: 2.9rem;
    left: 0;
    z-index: 0;
    width: calc(100% + ((100cqw - var(--toplogosize-dep)) - var(--toplogomarginright) - 100%) / 2);
    height: 0.8rem;
    background: var(--anthracitelightgrey);
}

.top_nav_group {
    margin-left: -0.35rem;
}


/* ========================================================================== 
   04. MAIN NAVIGATION — SHARED
   ========================================================================== */

.main_nav,
.page-nav,
#section_nav {
    font-size: 0.85rem;
}

details {
    position: static;
}

summary {
    padding-block: 0.2em;
    color: var(--anthracite80percent);
    font-weight: bold;
    list-style: none;
}

/* Restore nested lists hidden by legacy .main_nav ul ul rules. */
.main_nav .dropdown_menu ul,
.main_nav .mega_menu ul {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main_nav .mainNavChildToggle {
    border: none;
}

/* Accessible text that remains available to screen readers only. */
.main_nav .mainNavChildToggle span.visually_hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.main_nav ul ul li.active a {
    color: var(--secondarygreen9);
}

aside,
aside:not(.skip_style) {
    width: 100%;

    box-sizing: border-box;
    margin: 0;
    padding: 1rem 2rem;
    background: var(--primarygreen);
    color: var(--white);
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

/* ========================================================================== 
   05. ASIDE / SUPPORTING CONTENT
   ========================================================================== */

aside > * {

    color: var(--white) !important;

}

aside a {
    color: var(--secondarygreen9);
}

aside a:hover {
    text-decoration: underline;
    color: var(--secondarygreen7) !important;
}

/* ========================================================================== 
   06. MAIN NAVIGATION — DESKTOP (981px+)
   ========================================================================== */

@media only screen and (min-width: 981px) {


    .main_nav > ul > li:hover ul li:hover {
        background-color: transparent;
    }

    .main_nav > ul > li:hover ul li:hover a {
        text-decoration: underline;
    }

    .main_nav > ul > li:hover summary,
    .main_nav > ul > li:focus-within summary,
    .main_nav > ul > li:active summary {
        color: var(--white) !important;
    }

    /* Mega menus need the parent list item to participate in the wider layout. */
    .main_nav > ul > li:has(.mega_menu) {
        position: static;
    }

    .main_nav > ul > li.account_item {
        border: 1px solid var(--primarygreen);
        margin-left: 0.3rem;
    }

    .main_nav > ul > li > a.active {
        background: linear-gradient(var(--primarygreen), var(--primarygreen));
        background-position: 50% 95%;
        background-repeat: no-repeat;
        background-size: 100% 3px;
    }

    /* Open dropdowns on hover and keyboard focus. */
    .main_nav > ul > li:hover > .dropdown_menu,
    .main_nav > ul > li:focus-within > .dropdown_menu,
    .main_nav > ul > li > a:focus ~ .dropdown_menu {
        display: block;
    }

    .main_nav .dropdown_menu {
        position: absolute;
        left: 0;
        z-index: 1000;
        box-sizing: border-box;
        min-width: 18rem;
        margin-top: 0;
        padding: 0.8rem 0;
        background-color: var(--anthracitelightgrey);
        box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.15);
    }

    .main_nav .dropdown_menu > ul > li {
        margin: 0;
        padding: 0;
    }

    .main_nav .dropdown_menu > ul > li > a {
        padding: 0.2rem 1rem;
    }

    .main_nav .mega_menu {
        left: 0;
        display: flex;
        box-sizing: border-box;
        min-width: 0;
        max-width: none;
        margin: 0;
        padding: 2rem;
        gap: 2rem;
        background-color: var(--anthracitelightgrey);
    }

    .main_nav .mega_menu > div {
        min-width: 0;
    }

    .main_nav .mega_menu h2 {
        margin: 0 0 0.75rem;
        padding: 0 0 0.6rem;
        color: var(--primarygreen);
        font-size: 1.15rem;
        line-height: 1.25;
        border-bottom: 3px solid var(--primarygreen);
    }

    .main_nav .mega_menu li {
        display: block;
        margin: 0;
        padding: 0;
    }

    .main_nav .mega_menu li a {
        padding: 0.2em 0;
    }
}


/* ========================================================================== 
   07. MAIN NAVIGATION — TABLET / MOBILE (≤980px)
   ========================================================================== */

@media only screen and (max-width: 980px) {
    .top_nav_group {
        margin-left: 0;
    }

    /* Hide the browser's default details marker. */
    details > summary::-webkit-details-marker {
        display: none;
    }

    details > summary::after {
        content: "+";
        float: right;
        margin-left: auto;
        padding-inline: 0.5rem;
        border: 1px solid var(--anthracite);
    }

    details[open] > summary::after {
        content: "−";
    }

    .site-subtitle {
        margin-left: 0;
        padding-top: 81px;
        padding-left: 0;
    }

    .site-subtitle::after {
        top: 7rem;
        width: 100%;
        background: var(--lightgreenbg);
    }

    .lau_logo {
        position: absolute;
        z-index: 9;
        width: 50%;
        margin-bottom: 1rem;
    }

    .nav_toggle {
        position: absolute;
        right: 2rem;
        z-index: 1;
    }

    .main_nav {
        width: 100%;
        margin: 0;
        font-size: inherit;
    }

    .main_nav > ul > li > a {
        font-weight: 700;
    }

    .main_nav .dropdown_menu {
        position: static;
        padding: 1rem;
    }

    .main_nav .dropdown_menu.mainNavChildOpen,
    .main_nav .dropdown_menu.is-open {
        display: block;
    }

    .main_nav .dropdown_menu ul {
        display: block;
        margin: 0;
        padding: 0;
    }

    .main_nav .dropdown_menu li {
        margin: 0;
        padding: 0;
    }

    .main_nav .dropdown_menu li a {
        display: block;
        padding: 0.5rem 0;
        line-height: 1.35;
    }

    .main_nav .mega_menu.mainNavChildOpen,
    .main_nav .mega_menu.is-open {
        display: block;
    }

    .main_nav .mega_menu > div {
        margin-bottom: 1rem;
    }

    .main_nav .mega_menu > div:last-child {
        margin-bottom: 0;
    }

    .main_nav .mega_menu h2 {
        margin: 0;
        padding: 0.75rem 0 0.3rem;
        color: var(--primarygreen);
        font-size: 1rem;
    }

    .mainNavChildToggle {
        position: absolute;
        top: 0.55rem;
        right: 0;
        display: block;
        box-sizing: border-box;
        width: 2.25rem;
        height: 2.25rem;
        margin: 0;
        padding: 0;
        color: var(--anthracite);
        background: transparent;
        border: 1px solid var(--anthracite40percent);
        cursor: pointer;
    }

    .mainNavChildToggle::after {
        content: "+";
        display: block;
        font-size: 1.4rem;
        line-height: 2rem;
        text-align: center;
    }

    .mainNavChildToggle.btn_active::after {
        content: "−";
    }
}

/* Legacy styles may hide nested lists; force them visible here. */
.main_nav .dropdown_menu ul,
.main_nav .mega_menu ul {
    display: block;
}


/* ========================================================================== 
   08. SECTION NAVIGATION / RELATED LINKS
   ========================================================================== */

/* Hide the active item and all menu items after the fourth item. */
#section_nav ul[role="menu"] > li.active,
#section_nav ul[role="menu"] > li:nth-child(n+5 of :not(.active)) {
    display: none;
}

#section_nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6em;
    margin: 0;
    padding: 0;
    list-style: none;
}

#section_nav li {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 1rem 2rem;
    background: #fff;
    border-left: 5px solid var(--primarygreen);
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.08);
}

#section_nav li a {
    display: block;
    text-decoration: none;
    transition: color 0.2s ease;
}

#section_nav li a:hover,
#section_nav li a:focus {
    text-decoration: underline;
}

@media screen and (max-width: 640px) {
    #section_nav ul {
        grid-template-columns: 1fr;
    }

    #section_nav li {
        min-height: auto;
        padding: 1rem;
    }

    #section_nav .dropdown_menu li a {
        margin-top: 0.5rem;
    }

    #section_nav .dropdown_menu h3 {
        margin-bottom: 1rem;
    }
}


/* ========================================================================== 
   09. NUMBER / STAT CARDS
   ========================================================================== */

.numbers_list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.numbers_list p {
    display: flex;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f4f4f4;
    border-radius: 8px;
}

.numbers_list strong {
    font-size: 2rem;
}

.numbers_list small {
    margin-top: 8px;
}

/* Two cards per row. */
@media (min-width: 481px) {
    .numbers_list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Three cards per row. */
@media (min-width: 741px) {
    .numbers_list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Five cards per row. */
@media (min-width: 981px) {
    .numbers_list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}


/* ========================================================================== 
   10. CARD COMPONENTS
   ========================================================================== */
.homepage main a.green_button {
    font-size: 0.8rem;
}

.form_iframe {
    text-align: center;
    overflow: scroll;
}

/* ----------------------------------------------------------
   Service cards
   ---------------------------------------------------------- */

.service-cards {
    margin-top: 2rem;
    grid-gap: 1rem !important;
}

.service-cards > div {
    display: grid !important;
    grid-row: span 3;
    grid-template-rows: subgrid;
    box-sizing: border-box;
    min-width: 0;
    height: 100%;
    padding: 1rem;
    gap: 1rem;
    border: 2px solid var(--anthracite15percent);
}

.service-cards > div > h3,
.service-cards > div > p {
    margin: 0;
    text-align: left;
    align-self: start;
}

.service-cards > div > .green_button {
    align-self: end;
    justify-self: center;
    margin: 0;
    white-space: nowrap;
}

.service-cards .green_button::after {
    display: none !important;
}

@media only screen and (max-width: 980px) {
    .grid.service-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media only screen and (max-width: 480px) {
    .grid.service-cards {
        grid-template-columns: 1fr;
    }
}


/* Remove default list padding when cards are authored as a <ul>. */
ul.grid.cards {
    padding: 0;
}

/* Normalize supported card wrappers regardless of source element. */
.cards > :is(li, h2, h3, div, p) {
    box-sizing: border-box;
    min-width: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.cards.grid > :is(li, h2, h3, div, p),
.cards.grid2 > :is(li, h2, h3, div, p) {

    display: grid !important;
    grid-template-rows: subgrid;
    grid-row: auto / span 1;
}

#looking-for-information-on-your-citation-counts ~ .cards.grid > :is(li, h2, h3, div, p),
#looking-for-information-on-your-citation-counts ~ .cards.grid2 > :is(li, h2, h3, div, p) {
    grid-row: auto / span 2;
}

#need-help ~ .cards.grid > :is(li, h2, h3, div, p),
#need-help ~ .cards.grid2 > :is(li, h2, h3, div, p) {
    grid-row: auto / span 5;
}

/* Direct-link cards: the anchor itself becomes the visual card. */
.cards > :is(li, h2, h3, div, p) > a:not(.green_button) {
    display: flex !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100%;
    padding: 1rem;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--anthracite15percent);
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
    font-size: 0.9rem;
}

/* ----------------------------------------------------------
   Hover state
   Applies only when the card does not contain .green_button
   ---------------------------------------------------------- */

.cards > :is(li, h2, h3, div, p):not(:has(.green_button)) > a:hover,
.cards > :is(li, h2, h3, div, p):not(:has(.green_button)) > a:focus-visible {
    color: var(--white);
    background: var(--secondarygreen9);
}


/* ----------------------------------------------------------
   Cards containing a green button
   ---------------------------------------------------------- */

.cards > :is(li, h2, h3, div, p):has(.green_button) {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 1rem;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid var(--anthracite15percent);
}

/* Green button stays responsible for its own hover */
.cards .green_button {
    width: auto !important;
    height: auto;
}

/* ==========================================================================
   11. PAGE HEADER / HERO BANNER
   ========================================================================== */

.page_header {
    display: grid;
    position: relative;

    width: 100%;
    min-width: 0;
    max-height: 630px;
    overflow: hidden;
}

/*
   Banner, overlay and header content
   all occupy the same grid cell.

   This works whether page-nav exists or not.
*/
.page_header > .banner_image,
.page_header > .page-header-content,
.page_header::before {
    grid-column: 1;
    grid-row: 1;
}


/* ---------------------------------------
   Banner Image
--------------------------------------- */

.page_header > .banner_image {
    display: block;

    width: 100%;
    min-width: 0;

    z-index: 0;
}

.page_header > .banner_image img {
    display: block;

    width: 100%;
    height: auto;
}


/* ---------------------------------------
   Banner Overlay
--------------------------------------- */

.page_header::before {
    content: "";

    z-index: 1;

    background: rgb(0 0 0 / 35%);

    pointer-events: none;
}

 .collection-search{
  --surface-color: transparent;
  --text-color: #1a1a1a;
  --primary-color:#006751;
  --secondary-action:#006751;
  max-width: 980px;
  margin: 28px auto 0;
}

.filter-item input[type="checkbox"] {
  accent-color: #006751;
}

.collection-title{
  font-family: "Playfair Display", serif;
  font-size: 44px;
  text-align: center;
  margin: 0 0 18px;
  color: var(--text-color);
}

.hidden{ display:none !important; }

.tablist{
  display:flex;
  flex-wrap:nowrap;
  gap:4px;
  width: calc(100% - 22px);
  background:#ffffff;
  padding:10px 10px 0;
  border-radius:16px 16px 0 0;
  border:1px solid #e5e7eb;
  border-bottom:0;
}

.tab-btn{
  appearance: none;
  -webkit-appearance: none;
  border:none;
  padding:10px 8px;
  border-radius:10px;
  font-weight:600;
  font-size:12px;
  cursor:pointer;
  transition:.2s;
  background: transparent;
  color: #4b5563;
  flex:1 1 auto;
  white-space:nowrap;
  text-align:center;
}

@media (max-width: 700px){
  .tablist{
    flex-wrap:wrap;
  }
  .tab-btn{
    flex:1 1 auto;
    font-size:13px;
    padding:8px 10px;
    margin-right: 0;
  }
}

.tab-active{
  background: #006751;
  color:#fff;
}

.tab-inactive:hover{
  background: #f0f4f2;
}

.search-panel{
  background: rgba(0,0,0,0.5);   
  backdrop-filter: blur(8px);             
  -webkit-backdrop-filter: blur(10px)!important;  
   color: white;   

  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 16px;
  padding: 22px;

  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.tab-desc-wrap{
  margin-bottom: 12px;
  min-height: 32px;
}


.tab-desc{
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1;
  margin: 0;
  text-align: center;

  color: #374151;       
  opacity: 0.95;
  transform: rotate(-0.4deg);
}

.search-row{
  display:flex;
  gap:12px;
  align-items: center;
  flex-wrap: wrap;
}

.dropdown-select{
  min-width: 200px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  font-weight: 500;
  background: #ffffff;
  color: #1f2937;

  cursor: pointer;
}
.search-input{
  background: #ffffff;
  color: #1f2937;
  font-weight: 500;
}

.search-input::placeholder{
  color: #6b7280;
}
.search-input-wrap{
  flex:1;
  min-width: 280px;
  position: relative;
}

.search-input{
  width:100%;
  padding: 12px 42px 12px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.search-input:focus{
  outline:none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139,69,19,0.12);
}

.search-icon{
  position:absolute;
  right:14px;
  top:50%;
  transform: translateY(-50%);
  opacity:.55;
}

.search-btn{
  padding: 12px 26px;
  border-radius: 12px;
  border: none;
  font-weight:700;
  color:#fff;
  background: var(--secondary-action);
  cursor:pointer;
  box-shadow: 0 10px 18px rgba(0,0,0,.15);
}

.search-btn:hover{ filter: brightness(1.06); }

.filter-options{
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
  margin-top: 14px;
}

.filter-item{
  display:flex;
  gap:10px;
  align-items:center;
  font-size: 14px;
  color: var(--text-color);
}

.filter-item input{
  width:16px;
  height:16px;
}

.advanced-link{
  margin-left:auto;
  background:none;
  border:none;
  text-decoration: underline;
  cursor:pointer;
  font-weight:600;
  color: #1a1a1a;
}

.advanced-panel{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.advanced-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:14px;
}

.advanced-panel label{
  display:block;
  font-size: 13px;
  font-weight:600;
  margin-bottom: 6px;
  color: var(--text-color);
}

.advanced-panel input{
  width:100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
}

@media (max-width: 700px){
  .collection-title{ font-size: 34px; }
  .dropdown-select{ min-width: 160px; }
  .search-input-wrap{ min-width: 220px; }
  .advanced-grid{ grid-template-columns: 1fr; }
}


.hero p.tab-desc{
  font-size: 13px;         
  line-height: 1.5;
  margin: 0;                
  opacity: 1.2;
  color: #1a1a1a;
  text-align: left;
  white-space: nowrap;      
  overflow: hidden;
  text-overflow: ellipsis;
}


.collection-search .search-panel{
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-top: none !important;
  border-radius: 0 0 16px 16px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.tab-desc{ color:#374151; }
/* ---------------------------------------
   Banner Content: Crumbs + H1
--------------------------------------- */

.page_header > .page-header-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;
    min-width: 0;

    padding: 2rem;

    box-sizing: border-box;

    text-align: center;
    color: var(--white);
}

.page-header-content h1 {
    margin: 0;

    color: inherit;
}

/* ==========================================================================
   12. LIBRARY HOURS PANEL
   ========================================================================== */

/* Keep inherited text within the hours panel on the standard dark palette. */
section.hours-section,
section.hours-section > * {
    color: var(--anthracite) !important;
}


.hours-section {
    width: 100%;
    padding-top: 2rem;
}


/* ---------------------------------------
   Hours Container
--------------------------------------- */

.hours-section .container {
    width: 100%;
    max-width: 90%;
    margin-inline: auto;
    padding: 1em;
    box-sizing: border-box;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 15%);
}


/* ---------------------------------------
   Hours Section Title
--------------------------------------- */

.hours-section .section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 0;
    color: var(--anthracite);
}


/* Clock icon */
.hours-section .section-title::before {
    content: "◷";

    color: var(--primarygreen);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
}


/* --------------------------------------------------------------------------
   Hours Grid
   -------------------------------------------------------------------------- */

.hours-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 0;
}

@media only screen and (min-width: 981px) {
    .hours-grid.grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }
}


/* ---------------------------------------
   Individual Hours Cards
--------------------------------------- */

.hours-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;
    box-sizing: border-box;
    text-align: center;
}

.hours-card > * {
    font-size: .8rem !important;
    color: var(--anthracite);
}

/* Divider before Chat with a Librarian */
.hours-card:last-child {
    border-left: 0.1rem dashed var(--anthracite60percent);
}


/* ---------------------------------------
   Library Name
--------------------------------------- */

.hours-card h3 {
    margin: 0 0 0.35rem;

}


/* ---------------------------------------
   Opening Time
--------------------------------------- */

.hours-card .time {
    margin: 0 0 0.35rem;
}


/* ---------------------------------------
   Open / Closed Status
--------------------------------------- */


.hours-card .status.open {
    color: var(--secondarygreen3);
}

.hours-card .status.closed {
    color: var(--burgundy);
}


/* ---------------------------------------
   Opening Hours / Chat Links
--------------------------------------- */

.hours-card .card-hours-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    margin-top: auto;

    color: var(--primarygreen);
    text-decoration: none;
}


/* Arrow */
.hours-card .card-hours-link::after {
    content: "→";

    font-size: 1rem;

    transition: transform 0.2s ease;
}


.hours-card .card-hours-link:hover,
.hours-card .card-hours-link:focus-visible {
    text-decoration: underline;
}


.hours-card .card-hours-link:hover::after,
.hours-card .card-hours-link:focus-visible::after {
    transform: translateX(0.2rem);
}

@media screen and (max-width: 980px) {
    .page-header-content h1 {

        margin: 1rem 0;
    }

    .page_header {
        width: 92%;
        margin-inline: auto;
        padding: 0 4%;
        box-sizing: content-box;
        max-height: fit-content;
        overflow: visible;
    }

    .page_header > .page-header-content {

        padding: 0 2rem;
    }

    /* Make the banner fill the COMPLETE
       height created by the header content */
    .page_header > .banner_image {
        width: 100%;
        height: 100%;
        margin-top: 0;
    }

    .page_header > .banner_image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    /* ---------------------------------------
       Hours Panel
    --------------------------------------- */

    .hours-section {
        padding-top: 2rem;
    }

    .hours-section .container {
        max-width: 90%;
        padding: 1.5rem;
    }


    /* Two cards per row */
    .hours-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }


    .hours-card {
        padding: 1.5rem 1rem;
    }


    /* Remove desktop divider */
    .hours-card:last-child {
        border-left: 0;
    }


    /* Vertical divider between columns */
    .hours-card:nth-child(even) {
        border-left: 0.0625rem solid var(--anthracite15percent);
    }


    /* Horizontal divider between rows */
    .hours-card:nth-child(n + 3) {
        border-top: 0.0625rem solid var(--anthracite15percent);
    }
}

/* --------------------------------------------------------------------------
   Hours — Tablet
   -------------------------------------------------------------------------- */

@media screen and (max-width: 980px) {

    .hours-section .container {
        padding: 1.75rem 1.5rem;
    }

    .hours-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1.5rem;
    }

    .hours-card {
        padding: 0.75rem 1rem;
    }

    /* Remove desktop divider */
    .hours-card:last-child {
        border-left: 0;
    }

    /* Divider between columns */
    .hours-card:nth-child(even) {
        border-left: 0.0625rem solid #ddd;
    }
}


/* --------------------------------------------------------------------------
   Hours — Mobile
   -------------------------------------------------------------------------- */

@media screen and (max-width: 580px) {

    .hours-section {
        padding-top: 1rem;
    }

    .hours-section .container {
        padding: 1rem;

        border-radius: 1rem;
    }

    .hours-section .section-title {
        margin-bottom: 0.5rem;

    }

    .hours-grid {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .hours-card {
        padding: 0.8rem 0;
    }

    /* Horizontal separators */
    .hours-card + .hours-card {
        border-top: 0.0625rem solid #ddd;
    }

    .hours-card:nth-child(even),
    .hours-card:last-child {
        border-left: 0;
    }
}
/* ========================================================================== 
   13. Hours widget
   ========================================================================== */

.s-lc-fhw-map { width: 750px; height: 300px; } 
.s-lc-fhw-pills { padding: 10px 0px; }
/*week*/

.s-lc-whw-head-date { color: #5F5F5F; }
.s-lc-whw-today-h {  background-color: #ddd; }
.s-lc-whw-today { background-color: #F5F5F5; } 
.s-lc-whw-bh { text-align: right; white-space: nowrap; }
.s-lc-whw-locname { font-weight: bold;}
.s-lc-whw-sublocname{ padding-left: 10px!important; }
.s-lc-whw-footnote { color: #555; font-size: 80%; }
.s-lc-whw-footnote td:hover { background-color:#fff!important;}
.s-lc-whw-loc-tr-23883 {display:none !important}
.s-lc-whw-libbg-23883 {display:none !important}

/*month*/
.s-lc-mhw-tb { width: 100%; border: 1px solid #ddd; border-collapse: collapse; border-spacing: 0; } 
.s-lc-mhw-tb th, .s-lc-mhw-tb td { border: 1px solid #ddd; vertical-align: top; } 
.s-lc-mhw-tb thead { background-color: #F5F5F5; } 
.s-lc-mhw-header { text-align: center; } 
.s-lc-mhw-header-date { text-align: center; display: inline-block; margin-top: 5px; font-size: 130%; } 
.s-lc-mhw-days th { text-align: center; font-weight: bold; min-width: 14.28%; max-width: 14.28%; width: 14.28%;} 
.s-lc-mhw-day-l { color: #555; text-align: right; padding: 2px; font-size: 11px; } 
.s-lc-mhw-cells { height: 50px; } 
.s-lc-mhw-fnc { color: #555; } 
.s-lc-mhw-loc { font-size: 11px; padding: 2px; border-radius: 4px; margin-bottom: 1px; color: #fff;  } 
.s-lc-mhw-subloc { margin-left: 5px;} 
.s-lc-mhw-footnote-cal { font-size: 86%;}
.loc_10380 { background-color: #006751; } 
.lib_10380 { border-left: 5px solid #006751; } 
.loc_23678 { background-color: #007C91; } 
.lib_23678 { border-left: 5px solid #007C91; } 
.loc_9741 { background-color: #8D1B3D; } 
.lib_9741 { border-left: 5px solid #8D1B3D; } 
.loc_23883 { background-color: #000000; display: none !important;} 
.lib_23883 { border-left: 5px solid #000000; display: none !important; } 

/* ========================================================================== 
   14. FOOTER
   ========================================================================== */

.footer_links h4 {
    margin-top: 0;
    color: inherit;
}

.footer_links ul {
    display: flex;
    flex-direction: column;
}

.footer_links a,
.footer_links a:visited {
    font-size: 0.85rem;
}

@media (min-width: 981px) {
    .footer_links.grid {
        grid-template-columns: repeat(4, 1fr);
    }
}