/*
Theme Name: andEverywhere
Author: andEverywhere
Description: Stay awesome.
Version: 1.0
Text Domain:  hello-elementor
*/
.event-section .elementor-post__text {
  padding: 0 25px 24px;
}
.page-header {
  display: none;
}
.news-section{
    color: #222;
}
.news-section .elementor-post{
    display: grid!important;
    grid-template-columns: 2fr 1fr;
    background-color: #fff;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
    transition: box-shadow .3s;
    display: block;
    min-height: 300px;
    margin-bottom: 30px;
}
.news-section .elementor-post__thumbnail__link{
  height: 300px;
  margin-bottom: 0!important;
}
.news-section .elementor-post__thumbnail img{
  height: 100%!important;
  width: 100%!important;
  object-fit: cover;
}
.news-section .elementor-post__text{
  padding: 15px 20px;
}
.news-section .elementor-post__text .elementor-post__title{
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 5px 0;
  line-height: 1.2em;
}
.news-section .elementor-post__excerpt p{
  font-weight: 400;
  margin: 15px 0 15px;
  line-height: 1.5em;
  font-size:18px;
}
.news-section .elementor-post:nth-child(2) {
    grid-template-columns: 1fr 2fr;
}
.news-section .elementor-post:nth-child(2) .elementor-post__thumbnail__link{
  order: 1;
}
.news-section .elementor-post:hover{
    box-shadow: 0 14px 28px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .22);
}
footer h2{
    font-size: 22px;
    margin-top: 20px !important;
    line-height: 34px !important;
}
footer ul li a, footer p{
  font-size: 15px;
  line-height: 30px !important;
  font-weight: 400 !important;
  padding: 0 !important;
}
  .news-section  .elementor-post__thumbnail__link .elementor-post__thumbnail {
    height: 100%;
  }
footer .municipal img{
  width: 600px;
  margin-bottom: 20px;
}
@media screen and (max-width:1024px) {
  .elementor-grid-tablet-2 .elementor-grid {
    grid-template-columns: 1fr;
  }
  .news-section .elementor-post, .news-section .elementor-post:nth-child(2) {
    grid-template-columns: 1fr;
  }
  .news-section .elementor-post:nth-child(2) .elementor-post__thumbnail__link{
    order: 0;
  }
  footer .municipal img{
   width: 85%;
  }
}

/*
#pageWrapper {
	max-width: 1320px;
	margin: 20px auto;
	padding: 0 20px;
	transition: padding 0.5s;
}
@media (max-width: 767.98px) {
	#pageWrapper {
		padding: 0;
	}
}
String COLOR_MAIN_ONE         = "#717b54" ;
String COLOR_MAIN_ONE_RGB     = "161, 178, 163" ;

String COLOR_MAIN_TWO          = "#587b92" ;
String COLOR_MAIN_TWO_RGB      = "88, 123, 146" ;

String COLOR_MAIN_TWO_FOR_TEXT = "#65a6c6" ;
*/

body[class^="template"] #header,
body[class^="template"] #searchPlateWrapper,
body[class^="template"] #libraryInfo,
body[class^="template"] #footer,
.main #content.container,
.breadcrumbs .container,
#searchForm .container {
	width: 100% !important;
	max-width: 1320px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
body[class^="template"] #footer {
	margin-top: 0 !important;
}
body.template-dir-myresearch #footer {
	margin-top: 20px !important;
}

.main #content.container,
.breadcrumbs .container,
#searchForm .container {
	padding: 0 30px !important;
	background-color: #fcfcfc;
}
.lte-sm .breadcrumbs .container {
	padding: 0 10px !important;
}
.lte-sm #searchForm .container {
	margin-top: -20px !important;
	padding: 0 35px !important;
}

/* DISBALED FOR NOW...
body[class^="template"] #content {
	opacity: 0;
	transition: all .3s;
}
.loaded body[class^="template"] #content {
	opacity: 1;
}
*/


/* Search results */

#searchForm {
	padding: 10px 0;
}

.lte-sm  .mainbody,
.lte-sm  .mainbody .media,
.lte-sm  .sidebar {
	padding: 0 !important;
}

 .record-number {
	min-width: 30px;
	padding-right: 10px;
	text-align: right;
	padding-top: 15px;
}

 .mainbody .result {
	border-bottom: 1px solid #ccc;
}
 .mainbody #result0 {
	border-top: 1px solid #ccc;
	margin-top: 20px;
}

 .mainbody .result:nth-child(odd) {
	background-color: rgba(70, 173, 173, .05);
}
 .mainbody .result:hover {
	background-color: rgba(70, 173, 173, .15);
}

.lte-sm  .mainbody .media {
	display: block !important;
}
.lte-sm  .mainbody .result .media-left {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
}
.lte-sm  .mainbody .result .media-body {
	padding-bottom: 20px !important;
}

 .mainbody.left {
	padding-bottom: 1.5rem;
}

.md .result-link-label {
	display: none;
}

 .mainbody .result .media-left a {
	display: inline-block;
	width: 100%;
	margin: 4px 0 8px 0;
  padding: 4px;
  border: 1px solid #797979;
}
.lte-sm  .mainbody .result .media-left a {
  border: 0;
	margin-bottom: 20px;
	padding: 10px;
}
.record .media-left.small,
.result .media-left.small,
.record .media-right.small,
.result .media-right.small {
	width: 160px;
}
 .mainbody .result .media-left a img {
	width: 100%;
	max-width: 100%;
	height: auto;
}
.lte-sm  .mainbody .result .media-left a img {
	max-height: 200px;
}


.lte-sm .template-dir-record .record .media-left {
	max-width: 100% !important;
}


#search-sidebar .collapse,
#search-sidebar .collapsing {
	padding: 0 5px;
}
#search-sidebar .collapse.show {
	padding: 5px 5px 15px 5px
}

#search-sidebar .facet,
.full-facets .facet {
	margin: 0 10px 7px 0;
}
#search-sidebar .facet:hover,
#search-sidebar .facet:focus,
#search-sidebar .facet:active {
	background-color: rgba(88, 123, 146, .15);
}
#search-sidebar .facet.active {
	background-color: rgba(88, 123, 146, .25);
	color: inherit !important;
}
#search-sidebar .facet .badge {
	position: relative;
	top: -2px;
}

.top-facets .facet,
.top-facets .narrow-toggle,
.top-facets > strong {
	padding-left: 0 !important;
}

nav.record-nav {
	display: none;
}

#pageWrapper .btn {
	border-radius: 0 !important;
}

a.btn {
	text-decoration: none !important;
}

.btn:focus {
	outline: none;
}

.btn-default,
a.btn-default {
  color: #333 !important;
}
.btn-primary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger,
a.btn-primary,
a.btn-success,
a.btn-info,
a.btn-warning,
a.btn-danger {
  color: #fff !important;
}

.btn-outline-primary {
	background-color: rgba(137, 166, 61, .1);
	border-color: rgb(137, 166, 61);
	color: rgb(137, 166, 61) !important;
}
.btn-outline-primary:hover {
	background-color: rgba(137, 166, 61, .8);
	border-color: rgba(137, 166, 61, .8);
	color: #fff !important;
}

.btn-primary {
	color: #fff;
	background-color: rgb(137, 166, 61);
	border-color: rgb(137, 166, 61);
	color: #fff !important;
}
.btn-primary:hover {
	background-color: rgba(137, 166, 61, .8);
	border-color: rgba(137, 166, 61, .8);
}

.pagination > .active > a,
.pagination > .active > span {
	background-color: rgb(137, 166, 61);
	border-color: rgb(137, 166, 61);
}
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
	background-color: rgba(137, 166, 61, .8);
	border-color: rgba(137, 166, 61, .8);
}

.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
	color: #fff;
	background-color: rgb(125, 137, 81);
	border-color: rgb(125, 137, 81);
}


.active-filters {
	align-items: center !important;
}
.active-filters .reset-filters-btn {
	margin-top: 5px;
}
.active-filters .filters .title-value-pair {
	float: left;
	margin: 10px 10px 0 0;
	padding: 3px 5px;
	background-color: #e9ecef;
	border: 1px solid rgba(161, 178, 163, .3);
	border-left: 2px solid rgb(161, 178, 163);
	font-size: 12px;
}
.active-filters .filters .title-value-pair .filter-value {
	padding: 2px 8px;
	margin: 3px;
	font-size: 11px;
}
.active-filters .filters .title-value-pair .filter-value .text {
	font-weight: 600;
}

.active-filters .filters .filter-value {
	background: rgb(88, 123, 146);
	color: #fff !important;
}

.record .img-col {
	padding: 10px 10px 0 0;
}
.record .img-col a {
	display: inline-block;
	width: 100%;
	margin-left: 6px;
  padding: 4px;
  border: 1px solid #797979;
}
.record .img-col img {
	width: 100%;
	max-width: 100%;
	height: auto;
}
.grid-body img.recordcover {
	width: auto;
	max-width: 100%;
	height: 130px;
}
.record .media-body {
	padding-left: 25px;/* col default + 10 */
}
.lte-sm .record .media-body {
	padding-left: 15px;/* col default */
}


.result .checkbox {
	display: block !important;
}


.grid-result {
	margin-top: 10px;
	border-top: 1px solid rgba(0,0,0,.1);
}
.grid-result .grid-body {
	padding: 10px;
	margin: 0 10px 10px 10px;
}

.facet .text,
.facet-group .title .text,
.facet-load-indicator .text {
	font-size: 14px;
}

.view-buttons > a,
.view-buttons > span {
	margin-left: 10px;
}

.wikipedia.well img.pull-left {
	margin: 2px 15px 15px 0;
}
.wikipedia.well figure.record-image {
	float: left;
	width: 10vw;
	max-width: 250px;
	min-width: 100px;
	margin: 2px 15px 15px 0;
  padding: 4px;
  border: 1px solid #797979;
	transition: all .3s;
}
@media (max-width: 450px) {
	.wikipedia.well figure.record-image {
		float: none;
		width: 100%;
		max-width: none;
		min-width: 0;
		margin: 0 0 25px 0;
	}
}
.wikipedia.well figure.record-image img {
	width: 100%;
	max-width: 100%;
	height: auto;
}

.bulk-checkbox, .bulkActionButtons label {
	display: inline-block;
}
.search-filter-remove {
	color: #fff !important;
}
.result-link-label {
	font-size: 90%;
}
.result-body .last {
	font-size: 95%;
}

.record-tabs {
	margin-top: 25px;
}
.nav-tabs {
	margin-bottom: 15px;
	border-bottom-color: rgb(137, 166, 61);
}
.nav-tabs > li > a {
	position: relative;
	top: 1px;
	color: #666;
	font-size: 15px;
	text-decoration: none !important;
	margin-right: 0;
	padding: 8px 10px;
	border: 1px solid rgba(0, 0, 0, .06);
	border-bottom-color: rgb(137, 166, 61);
	background-color: rgba(0, 0, 0, .02);
}
.nav-tabs > li > a:hover,
.nav-tabs > li > a:focus,
.nav-tabs > li > a:active {
	top: 0;
	color: #000;
	text-decoration: underline !important;
	border-color: rgba(0, 0, 0, .06);
	border-bottom-color: rgb(137, 166, 61);
	border-top: 2px solid rgba(137, 166, 61, .5);
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
	top: 0;
	border-top: 2px solid rgb(137, 166, 61);
	border-bottom-color: transparent;
	background-color: rgb(255, 255, 255);
}


.tab-pane h3 {
	margin-bottom: 0;
	padding: 8px;
	color: #000;
	background-color: rgba(137, 166, 61, .5);
	border: 1px solid #ddd;
	border-bottom: 0;
}
.tab-pane table {
	border-collapse: collapse;
}
.tab-pane table th,
.tab-pane table td {
	border: 1px solid #ddd;
}



.lte-sm .template-dir-record .table.table-striped,
.lte-sm .template-dir-record .table.table-striped thead,
.lte-sm .template-dir-record .table.table-striped tbody,
.lte-sm .template-dir-record .table.table-striped tr,
.lte-sm .template-dir-record .table.table-striped th,
.lte-sm .template-dir-record .table.table-striped td {
	display: block !important;
	width: 100% !important;
	text-align: left !important;
}
.lte-sm .template-dir-record .table.table-striped tr,
.lte-sm .template-dir-record .table.table-striped td {
	background-color: white !important;
}
.lte-sm .template-dir-record .table.table-striped th {
	background-color: rgba(0,0,0,.05) !important;
}

.lte-sm .template-dir-record .record .media,
.lte-sm .template-dir-record .record .media-body {
	padding-right: 0 !important;
	padding-left: 0 !important;
}

 .mainbody .result:nth-child(2n+1) {/*
	background-color: rgba(70, 173, 173, .05);*/
	background-color: rgba(137, 166, 61, .04);
}
 .mainbody .result:hover {/*
	background-color: rgba(70, 173, 173, .15);*/
	background-color: rgba(137, 166, 61, .10);
}



/*
.template-name-historicloans .record-list {
	padding-left: 0;
}
.template-name-historicloans .result .media-left img {
	max-height: 150px;
}
*/



#pageWrapper .alert {
	border-radius: 0;
	color: rgba(0, 0, 0, .9) !important;
}
#pageWrapper .alert-info {
	color: rgb(53, 118, 187);
	background-color: rgba(53, 118, 187, .2);
	border-color: rgba(53, 118, 187, .5);
}

.breadcrumb {
	background-color: rgba(125, 137, 81, .2);
}




#modal {
	opacity: 0;
}
#modal.show {
	opacity: 1;
}

.mainbody .media-left.large {
	width: 15%;
	float: left;
	padding-left: 30px;
}

.mainbody .record-list .result {
	clear: both;
}

.mainbody .record-list .result .media {
	height: 260px;
	padding: 15px 0;
}

.mainbody .record-list .result a {
	font-weight: bold;
}

.mainbody .media-body {
	float: left; 
	margin-left: 30px;
}

.mainbody .record-list .record-number {
	display: none;
}

/* --- DESKTOP STYLES (Unchanged) --- */

/* --- Search Form Container --- */
.wp-theme-andeverywhere #searchForm {
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

.wp-theme-andeverywhere #searchForm .flex-outer {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    width: 100%;
}

.wp-theme-andeverywhere #searchForm .flex-fill {
    flex: 1;
    min-width: 0;
}

/* --- Labels --- */
.wp-theme-andeverywhere #searchForm .main-search-form-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 400;
}

/* --- Main Input Field --- */
.wp-theme-andeverywhere #searchForm .search-query {
    width: 100%;
    height: 44px;
    padding: 6px 12px;
    font-size: 16px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 0;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}

.wp-theme-andeverywhere #searchForm .search-query:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
}

/* --- Right Side Layout (Options + Button) --- */
.wp-theme-andeverywhere #searchForm .search-form-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.wp-theme-andeverywhere #searchForm .search-form-right .d-flex {
    display: flex;
    align-items: stretch;
    gap: 10px; 
}

/* --- Dropdown Button --- */
.wp-theme-andeverywhere #searchForm #searchFieldSelectBtn {
    height: 44px;
    width: 160px;
    background-color: #fff;
    border: 1px solid #ccc;
    color: #333;
    padding: 6px 12px;
    text-align: left;
    position: relative;
    cursor: pointer;
    border-radius: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
}

.wp-theme-andeverywhere #searchForm #searchFieldSelectBtn:hover {
    background-color: #e6e6e6;
    border-color: #adadad;
}

.wp-theme-andeverywhere #searchForm #searchFieldSelectBtn::after {
    content: "";
    border-top: 4px dashed;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

/* Dropdown Menu */
.wp-theme-andeverywhere #searchForm .dropdown-menu {
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 14px;
    text-align: left;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
    position: absolute;
    z-index: 1000;
    display: none;
}

.wp-theme-andeverywhere #searchForm .dropdown-menu.show {
    display: block;
}

.wp-theme-andeverywhere #searchForm .dropdown-item {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
    text-decoration: none;
}

.wp-theme-andeverywhere #searchForm .dropdown-item:hover {
    color: #262626;
    text-decoration: none;
    background-color: #f5f5f5;
}

/* --- Search Button --- */
.wp-theme-andeverywhere #searchForm .btn-searchBtn {
    height: 44px;
    width: 60px;
    background-color: #000 !important;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    color: #fff !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
}

.wp-theme-andeverywhere #searchForm .btn-searchBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
}

.wp-theme-andeverywhere #searchForm .btn-searchBtn .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    border: 0 !important;
    display: block !important;
    visibility: hidden !important;
}

.wp-theme-andeverywhere #searchForm .btn-searchBtn::before {
    content: "" !important;
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: 12px !important;
    left: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

.wp-theme-andeverywhere #searchForm .btn-searchBtn::after {
    content: "" !important;
    display: block !important;
    width: 2px !important;
    height: 8px !important;
    background: #fff !important;
    position: absolute !important;
    transform: rotate(-45deg) !important;
    top: 26px !important;
    left: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* ========================================================= */
/* --- MOBILE STYLES (STACKED LAYOUT - FIXED) --- */
/* ========================================================= */

@media (max-width: 768px) {
    /* 1. Stack the input on top of the options */
    .wp-theme-andeverywhere #searchForm .flex-outer {
        flex-direction: column;
        align-items: stretch; 
        gap: 15px;
    }

    .wp-theme-andeverywhere #searchForm .flex-fill {
        width: 100%;
    }

    /* 2. Make sure the right side container takes full width */
    .wp-theme-andeverywhere #searchForm .search-form-right {
        width: 100%;
    }

    /* 3. Align bottom row items */
    .wp-theme-andeverywhere #searchForm .search-form-right .d-flex {
        width: 100%;
        display: flex;
        justify-content: flex-start; /* Align to left */
        gap: 0; 
    }

    /* 4. Fix the dropdown: Keep it its normal width, do NOT stretch it */
    .wp-theme-andeverywhere #searchForm #searchFieldSelectBtn {
        flex-grow: 0 !important;
        width: 160px !important; /* Forces it back to normal size */
        max-width: none !important; 
        margin-right: 0 !important;
    }

    /* 5. Push the button to the right */
    .wp-theme-andeverywhere #searchForm .btn-searchBtn {
        margin-left: auto !important; /* This pushes it all the way to the right */
    }
}

/* ========================================================= */
/* --- EXACT VUFIND RECORD PAGE REDESIGN (FINAL PERFECTED) --- */
/* ========================================================= */

/* 1. FORCE THE RECORD CONTAINER TO FLEX (Desktop Side-by-Side) */
div.record {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; 
    align-items: flex-start !important;
    width: 100% !important;
    gap: 30px !important;
}

/* 2. LEFT COLUMN (Main Content) */
div.record > .mainbody.left {
    flex: 1 1 0% !important; 
    min-width: 0 !important; 
}

/* 3. RIGHT COLUMN (Sidebar - Wider 340px) */
div.record > .sidebar.right {
    flex: 0 0 340px !important; 
    width: 340px !important;
    max-width: 340px !important;
    margin-left: 0 !important;
    float: none !important; 
}
/* ========================================================= */
/* --- 4. BREADCRUMBS (BLUE LINKS, UNDERLINED TEXT) --- */
/* ========================================================= */

/* Container Styling */
nav.breadcrumbs {
    background-color: #e8e8e8 !important;
    padding: 8px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    width: 100%;
}
nav.breadcrumbs .container {
	background-color: #e8e8e8 !important;
}

/* List Styling */
nav.breadcrumbs .breadcrumb {
    background: transparent !important;
    padding: 0; 
    margin: 0;
    display: flex; 
    font-size: 14px; 
    list-style: none; 
    flex-wrap: wrap;
    align-items: center;
}

/* The Slash Separator */
nav.breadcrumbs .breadcrumb li + li::before {
    content: "/"; 
    padding: 0 8px; 
    color: #777;
    text-decoration: none !important; 
    display: inline-block;
}

/* 1. Style ALL Links inside the breadcrumbs (Blue & Underlined) */
nav.breadcrumbs .breadcrumb li a {
    color: #395f93 !important; 
    text-decoration: underline !important; 
}

nav.breadcrumbs .breadcrumb li a:hover {
    color: #23527c !important;
}

/* 2. Target plain text items (no <a> tag) to make them blue & underlined */
nav.breadcrumbs .breadcrumb li {
    color: #337ab7 !important; 
    text-decoration: underline !important;
}

/* 3. Override the plain text color for the ACTIVE (current) page */
/* If you want the active page to be black/grey instead of blue */
nav.breadcrumbs .breadcrumb li.active {
    color: #555 !important; /* Change to #555 or #000 */
    text-decoration: none !important; /* Optional: remove underline for current page */
}

/* --- 5. Book Cover & Top Details --- */
.record .media {
    display: flex !important;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 25px;
}
.record .img-col {
    flex: 0 0 180px;
    display: block !important; 
}
.record .img-col img {
    width: 100%; 
    border: 1px solid #ccc;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
    display: block !important; 
}
.record h1 {
    font-size: 24px; font-weight: 600; margin-top: 0;
    margin-bottom: 10px; color: #222;
}

/* --- 6. Bibliographic Details (Desktop: Borderless Table) --- */
.mainbody table.table-details {
    width: 100%; border-collapse: collapse;
    margin-bottom: 20px; border: none !important;
}
.mainbody table.table-details th {
    width: 120px; text-align: left; padding: 6px 0;
    font-weight: 600; color: #222; border: none !important;
    background: transparent !important; vertical-align: top;
}
.mainbody table.table-details td {
    padding: 6px 0; color: #333; border: none !important;
    background: transparent !important; vertical-align: top;
}
.mainbody .subject-line { display: inline-block; margin-right: 5px; }

/* --- 7. "Show More Info" Collapse Area --- */
.mainbody #collapseDetailsLink { margin-bottom: 15px; }
.mainbody #collapseDetailsLink a {
    color: #337ab7; font-weight: 600; text-decoration: none;
    font-size: 14px;
}
.mainbody #collapseDetailsLink a:hover { text-decoration: underline; }
.mainbody #collapseDetailsLink a::before {
    content: "▼ ";
    font-size: 12px;
    display: inline-block;
    margin-right: 2px;
    color: #337ab7;
}

/* Nuke all borders inside the collapse */
.mainbody #collapseDetails .table,
.mainbody #collapseDetails .table-striped,
.mainbody #collapseDetails th,
.mainbody #collapseDetails td,
.mainbody #collapseDetails tr {
    border: none !important; 
    background: transparent !important;
}
.mainbody #collapseDetails th {
    width: 140px; text-align: left; font-weight: 600;
    color: #222; padding: 4px 0 !important; vertical-align: top;
}
.mainbody #collapseDetails td {
    color: #333; padding: 4px 0 !important; vertical-align: top;
}
.mainbody #collapseDetails caption { display: none !important; }

/* --- 8. Alerts & Save Button --- */
.mainbody .alert-info {
    background-color: #d9edf7 !important;
    border: 1px solid #bce8f1 !important;
    color: #31708f !important;
    padding: 12px; border-radius: 4px; font-size: 13px;
}
.mainbody .alert-info a { color: #337ab7; text-decoration: underline; font-weight: 600; }
.mainbody .save-record {
    display: inline-block; padding: 6px 12px;
    border: 1px solid #ccc; border-radius: 3px;
    background: #fff; color: #333; font-size: 13px;
    text-decoration: none; margin-top: 10px;
}
.mainbody .save-record:hover { background: #f5f5f5; }

/* --- 9. Tabs (Holdings / Staff View) --- */
.record-tabs { margin-top: 30px; border-bottom: 1px solid #ddd; }
.record-tabs .nav-tabs {
    display: flex; list-style: none; padding: 0; margin: 0 0 -1px 0; flex-wrap: wrap;
}
.record-tabs .nav-tabs li a {
    padding: 8px 15px; border: 1px solid transparent;
    color: #666; text-decoration: none; font-size: 14px;
}
.record-tabs .nav-tabs li.active a {
    background: #fff; border-color: #ddd #ddd transparent;
    color: #222; border-radius: 4px 4px 0 0;
}

/* --- 10. Holdings Table (Grid kept only here) --- */
.desktop-holdings-wrapper .table-striped {
    width: 100%; border-collapse: collapse;
}
.desktop-holdings-wrapper th {
    background: #f9f9f9 !important; border: 1px solid #ddd !important;
    padding: 10px !important; font-weight: 600; text-align: left;
}
.desktop-holdings-wrapper td {
    border: 1px solid #ddd !important;
    padding: 10px !important;
}
.item-avail { background-color: #dff0d8 !important; color: #3c763d !important; }

/* --- 11. Right Sidebar Styling --- */
.sidebar.right h2 {
    font-size: 20px; font-weight: 400; margin-top: 0;
    margin-bottom: 15px; color: #333;
}
.sidebar.right .list-group {
    list-style: none; padding: 0; margin: 0;
    border: none; background: #f4f4f4; 
}
.sidebar.right .list-group-item {
    padding: 12px 15px; border: none; border-bottom: 1px solid #e0e0e0; 
    font-size: 14px; line-height: 1.4; background: transparent;
}
.sidebar.right .list-group-item:last-child { border-bottom: none; }
.sidebar.right .list-group-item i { display: none; } 
.sidebar.right .list-group-item a {
    color: #0056b3; font-weight: 400; text-decoration: underline; 
    display: inline-block; margin-bottom: 4px;
}
.sidebar.right .list-group-item br { display: none; }
.sidebar.right .list-group-item br + * { 
    color: #555; font-size: 13px; display: block; margin-top: 2px; 
}

/* --- 12. FORCE COLLAPSE TO HIDE ON LOAD --- */
.mainbody #collapseDetails {
    display: none !important;
}
.mainbody #collapseDetails.show {
    display: block !important;
}

/* ========================================================= */
/* --- 13. MOBILE RESPONSIVENESS (EXACT MATCH, FIXED TABLES) --- */
/* ========================================================= */
@media (max-width: 991px) {
    /* Stack the main columns */
    div.record {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    div.record > .sidebar.right {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 30px !important;
		margin-bottom : 30px !important;
    }

    /* Stack the cover image and details */
    .record .media {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important; 
        text-align: left; 
        width: 100% !important;
		gap: 0px !important;
    }

    /* FORCE IMAGE TO SHOW ON MOBILE */
    .record .img-col {
        display: block !important; 
        flex: 0 0 auto !important;
        max-width: 100% !important; 
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    .record .img-col img {
        display: block !important; 
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }

    .record .media-body {
        width: 100% !important;
        text-align: left !important; 
		padding-left: 0px !important;
    }
    
    .record h1 {
        text-align: left !important; 
        font-size: 22px !important; 
        line-height: 1.3;
    }

    /* ========================================================= */
    /* THE FIX: DESTROY TABLE LAYOUT ON MOBILE */
    /* ========================================================= */
    
    /* Hide the ugly floating caption */
    .mainbody table.table-details caption,
    .mainbody #collapseDetails caption {
        display: none !important;
    }

    /* Force everything to block so they stack perfectly */
    .mainbody table.table-details,
    .mainbody table.table-details tbody,
    .mainbody table.table-details tr,
    .mainbody table.table-details th,
    .mainbody table.table-details td,
    .mainbody #collapseDetails table,
    .mainbody #collapseDetails tbody,
    .mainbody #collapseDetails tr,
    .mainbody #collapseDetails th,
    .mainbody #collapseDetails td {
        display: block !important;
        width: 100% !important;
        border: none !important;
        background: transparent !important;
    }

    /* Add spacing between rows */
    .mainbody table.table-details tr,
    .mainbody #collapseDetails tr {
        margin-bottom: 12px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        padding-bottom: 8px !important;
    }

    /* Style the Labels (Author, Format) */
    .mainbody table.table-details th,
    .mainbody #collapseDetails th {
        font-weight: 700 !important;
        color: #111 !important;
        font-size: 14px !important;
        margin-bottom: 4px !important;
        padding: 0 !important;
        text-transform: capitalize;
    }
    
    /* Style the Values */
    .mainbody table.table-details td,
    .mainbody #collapseDetails td {
        color: #444 !important;
        font-size: 14px !important;
        padding: 0 !important;
        line-height: 1.5 !important;
    }

    /* Remove indentation from lists inside tables */
    .mainbody table.table-details td ul {
        padding-left: 0;
        margin-top: 5px;
    }

    /* ========================================================= */
    /* FIX OVERLAPPING TEXT (Save to List / Available copies) */
    /* ========================================================= */
    
    /* Un-absolute the VuFind reservations text so it stops overlapping */
    .mainbody .reservations-wrapper {
        position: static !important;
        margin-bottom: 15px !important;
        display: block !important;
    }
    
    .mainbody .reservations-data {
        position: static !important;
        top: auto !important;
        right: auto !important;
        display: block !important;
        font-size: 13px !important;
        color: #666 !important;
        margin-bottom: 10px !important;
    }

    .mainbody .save-record {
        margin-top: 5px !important;
        margin-bottom: 20px !important;
        position: static !important;
        display: inline-block !important;
    }
	.mainbody .media-left.large{
		padding-left: 0px !important;
	}
	.mainbody .media-body{
		margin-left: 0px !important;
	}
}

/* ========================================================= */
/* --- VUFIND RECORD TABS CSS ONLY --- */
/* ========================================================= */

/* Tab Container */
.record-tabs {
    margin-top: 30px;
    border-bottom: 2px solid #ddd;
}

/* Tab List */
.record-tabs .nav-tabs {
    display: flex; 
    list-style: none; 
    padding: 0; 
    margin: 0 0 -2px 0;
    flex-wrap: wrap;
}

/* Individual Tab Buttons */
.record-tabs .nav-tabs li a {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-bottom: none;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background-color: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Hover State */
.record-tabs .nav-tabs li a:hover {
    background-color: #f5f5f5;
    color: #000;
}

/* Active Tab */
.record-tabs .nav-tabs li.active a,
.record-tabs .nav-tabs li.active a:hover {
    background: #fff;
    border: 1px solid #ddd;
    border-bottom: 2px solid #fff; /* Blends into content area below */
    color: #222;
    font-weight: 600;
    border-radius: 4px 4px 0 0;
}

/* Tab Content Area */
.record-tabs .tab-content {
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
}

/* Fix the Staff View Table (MARC Data) */
.record-tabs .tab-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.record-tabs .tab-content table th,
.record-tabs .tab-content table td {
    padding: 8px 12px;
    border: 1px solid #eee;
    text-align: left;
    vertical-align: top;
}

.record-tabs .tab-content table th {
    background: #f9f9f9;
    font-weight: 600;
    width: 80px; /* Keeps the MARC tags (LEADER, 001) neat */
    color: #333;
}

/* Mobile Responsiveness for Tabs */
@media (max-width: 991px) {
    .record-tabs .nav-tabs li { 
        width: 50%; 
        text-align: center; 
    }
    .record-tabs .nav-tabs li a { 
        width: 100%; 
        padding: 10px 5px; 
    }
}

/* ============================================================
   1. REKOMMENDERADE TEMAN (Facets)
   ============================================================ */

/* Hide the duplicate mobile title */
.top-facets > a.top-title.js-toggle.visible-xs {
    display: none !important;
}

/* Style the single visible title */
.top-facets > strong.top-title.hidden-xs {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    color: #333 !important;
    cursor: pointer !important; /* Makes it look clickable */
}

/* Add caret icon to the title */
.top-facets > strong.top-title.hidden-xs::before {
    content: "\f0da";
    font-family: "FontAwesome", "Font Awesome 5 Free", "Font Awesome 6 Free", sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    color: #666;
    transition: transform 0.2s ease !important;
}

/* Rotate caret when our JS adds the 'js-open' class */
.top-facets > strong.top-title.hidden-xs.js-open::before {
    transform: rotate(90deg) !important;
}

/* 
   Content Container 
   FORCE HIDDEN BY DEFAULT, even if VuFind hardcodes the 'in' class 
*/
#top_topic_facet.collapse,
#top_topic_facet.collapse.in,
#top_topic_facet.collapse.show {
    display: none !important;
}

/* ONLY show it when our JS adds the specific 'js-open' class */
#top_topic_facet.collapse.js-open {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin-top: 16px !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.top-facets-contents {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 10px !important; 
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* The Pill Design - FORCE overrides to fix VuFind default padding */
.facet.top-facet {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    padding: 6px 10px !important; /* Fixes the left-alignment issue */
    margin: 0 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
    transition: all 0.15s ease-in-out !important;
}

.facet.top-facet:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    text-decoration: none !important;
}

/* Inner layout: Link + Badge */
.top-facet-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    padding: 0 !important;
}

.top-facet-inner a {
    text-align: left !important;
    text-decoration: none !important;
    color: #c7254e !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

.top-facet-inner a:hover {
    text-decoration: underline !important;
}

/* Badge Styling */
.top-facet-inner .badge {
    background-color: #f3f4f6 !important;
    color: #4b5563 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 3px 7px !important;
    border-radius: 12px !important;
    line-height: 1 !important;
    display: inline-block !important;
    min-width: 20px !important;
    text-align: center !important;
    border: 1px solid #e5e7eb !important;
    margin: 0 !important;
}


/* ============================================================
   2. SEARCH HEADER (Stats & Sort Section)
   ============================================================ */

.search-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    margin: 20px 0 16px 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.search-stats {
    display: block !important;
    width: 100% !important;
    font-size: 14px !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.search-stats strong {
    font-weight: 700 !important;
}

.search-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.search-sort {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 400px !important; 
    margin: 0 !important;
    padding: 0 !important;
}

.search-sort label {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.search-sort select {
    flex-grow: 1 !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #333 !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
    margin: 0 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    transition: border-color 0.15s ease-in-out !important;
}

.search-sort select:focus {
    border-color: #c7254e !important;
    outline: none !important;
}

.search-sort input[type="submit"].btn {
    padding: 6px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #c7254e !important;
    background-color: #fff !important;
    border: 1px solid #c7254e !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    margin: 0 !important;
    transition: all 0.15s ease-in-out !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

.search-sort input[type="submit"].btn:hover {
    background-color: #c7254e !important;
    color: #fff !important;
}


/* ============================================================
   3. MOBILE RESPONSIVENESS
   ============================================================ */

@media (max-width: 600px) {
    .top-facets-contents {
        gap: 8px !important;
    }
    .facet.top-facet {
        font-size: 13px !important;
        padding: 5px 8px !important;
    }
    
    .search-sort {
        max-width: 100% !important;
        flex-wrap: wrap !important;
    }
    .search-sort select {
        width: 100% !important;
    }
    .search-sort input[type="submit"].btn {
        width: 100% !important;
        margin-top: 8px !important;
    }
}

/* ============================================================
   4. MOBILE-ONLY DESIGN FIXES (Final Absolute Layout Fix)
   ============================================================ */

@media (max-width: 767px) {
    
    /* --- 1. Recommended Themes (Facets) Fix --- */
    .top-facets-contents {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important; 
        width: 100% !important;
    }

    .facet.top-facet {
        flex: 0 1 auto !important; 
        white-space: normal !important;
        max-width: 100% !important;
        font-size: 13px !important;
        padding: 6px 10px !important;
    }

    .top-facet-inner a {
        white-space: normal !important;
        word-break: break-word !important; 
    }

    /* --- 2. Search Sort Section Fix --- */
    .search-sort {
        display: flex !important;
        flex-direction: column !important; 
        align-items: stretch !important; 
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }

    .search-sort select,
    .search-sort input[type="submit"].btn {
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 16px !important;
    }

    /* --- 3. Search Results List Layout (The Core Fix) --- */
    
    /* Make the ENTIRE list item a grid so we can control all internal blocks */
    li.result {
        display: grid !important;
        grid-template-columns: 85px 1fr !important; /* Column 1: Image, Column 2: Content */
        grid-template-areas: 
            "cover title"
            "cover avail" 
            "links links" !important; /* Links span full width at the bottom */
        column-gap: 15px !important;
        row-gap: 10px !important;
        width: 100% !important;
        margin-bottom: 25px !important;
        padding-bottom: 20px !important;
        border-bottom: 1px solid #ddd !important;
        overflow: hidden !important;
    }

    /* Reset the internal .media container so it doesn't fight the grid */
    .result .media {
        display: contents !important; /* Makes children obey the <li> grid directly */
    }

    /* 1. Place the Cover */
    .result .media-left.large {
        grid-area: cover !important;
        width: 85px !important;
        margin: 0 !important;
        padding: 0 !important;
        align-self: start !important;
    }

    .result .recordcover {
        width: 100% !important;
        height: auto !important;
        border-radius: 4px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }

    /* 2. Place the Title/Author Body */
    .result .media-body {
        display: contents !important; /* Removes this wrapper from the visual flow */
    }

    .result-body {
        grid-area: title !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .result-body .title {
        display: block !important;
        margin-bottom: 6px !important;
        font-size: 15px !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;
    }

    .result-body > div {
        font-size: 13px !important;
        line-height: 1.4 !important;
        color: #555 !important;
        margin-bottom: 4px !important;
    }

    /* 3. Place the Availability Box */
    .availability-section {
        grid-area: avail !important;
        display: block !important;
        margin-top: 5px !important;
        padding: 10px !important;
        background: #fafafa !important;
        border: 1px solid #eaeaea !important;
        border-radius: 4px !important;
    }

    .availability-section ul.fa-ul {
        display: block !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        margin-bottom: 8px !important;
        list-style-type: none !important;
    }
    
    .availability-section ul.fa-ul li {
        display: block !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    .availability-info {
        display: block !important;
        margin-top: 8px !important;
        padding-top: 8px !important;
        border-top: 1px dashed #ccc !important;
    }

    .availability-info span {
        display: inline-block !important; 
        margin-right: 8px !important;
        margin-bottom: 2px !important;
        font-size: 12px !important;
    }

    /* 4. Place the Links (Save button) full width at bottom */
    .result-links {
        grid-area: links !important;
        display: block !important;
        width: 100% !important;
        margin-top: 10px !important;
        padding-top: 10px !important;
        border-top: 1px dashed #ccc !important;
        clear: both !important;
    }

    .result-links a.save-record {
        display: inline-flex !important;
        align-items: center !important;
        font-size: 13px !important;
        margin-bottom: 8px !important;
        text-decoration: none !important;
    }
    
    .result-links br {
        display: none !important; /* Hide the weird break tag */
    }

    .savedLists {
        display: block !important;
        margin-top: 5px !important;
        font-size: 12px !important;
        color: #666 !important;
    }
	ol.record-list{
		padding-left: 0px !important;
	}
	
}

