/* ================================================
   WORLD SALVAGE PROJECT — OMEKA S CSS EDITOR
   All sessions combined · Nov 2026
   ================================================ */

/* Load Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

/* Paper texture background */
body {
    background-image: url('https://worldsalvageproject.org/files/asset/Paper001_1K-PNG_Color.png');
    background-repeat: repeat;
    background-size: 600px 600px;
}

/* Headings - Libre Baskerville */
h1, h2, h3, h4, h5, h6,
.site-title, .resource-heading {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    color: #1a3a6b;
}

/* Body text - Libre Baskerville */
body, p, li, td, th, label, .value {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 15px;
    line-height: 1.7;
}

/* Navigation font */
nav, .navigation {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Links */
a, a:link, a:visited {
    color: #1a3a6b;
}

a:hover, a:focus {
    color: #2952a3;
    text-decoration: underline;
}

/* Buttons */
.button, button, input[type="submit"], input[type="button"] {
    background-color: #1a3a6b !important;
    border-color: #1a3a6b !important;
    color: #ffffff !important;
}

.button:hover, button:hover, input[type="submit"]:hover {
    background-color: #2952a3 !important;
    border-color: #2952a3 !important;
}

/* Active/selected states */
.active, .current {
    border-color: #1a3a6b !important;
    color: #1a3a6b !important;
}

/* ========================
   COBALT NAV
   ======================== */
.top-bar,
.top-bar *,
.top-bar-left,
.top-bar-left *,
.top-bar-right,
.top-bar-right *,
header,
header * {
    background-color: #1a3a6b !important;
    background: #1a3a6b !important;
}

.top-bar a, .top-bar span, .top-bar li,
.top-bar-left a, .top-bar-right a,
header a, header span {
    color: #ffffff !important;
}

.top-bar a:hover, .top-bar-left a:hover,
.top-bar-right a:hover, header a:hover {
    color: #c8d8f0 !important;
}

a.nav-header,
li.active a.nav-header,
ul.dropdown-menu li.active a.nav-header {
    background-color: #1a3a6b !important;
    background: #1a3a6b !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

/* Active nav link - current page indicator */
.top-bar li.active > a,
.top-bar li.active > a:hover {
    color: #c8cdd4 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
}

/* ========================
   PROPERTY BOXES WITH STICKY LABELS
   ======================== */
div.property {
    border: 1px solid #c8d0dc;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    overflow: hidden;
    max-height: 220px;
    overflow-y: auto;
}

div.property dt {
    background-color: rgba(235, 232, 228, 0.95);
    padding: 6px 12px;
    border-bottom: 1px solid #c8d0dc;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1;
}

div.property dd {
    display: block !important;
    padding: 4px 12px;
}

div.property::-webkit-scrollbar { width: 6px; }
div.property::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
div.property::-webkit-scrollbar-thumb { background: #1a3a6b; border-radius: 4px; }

/* Hide linked resources section */
#linked-resources-container,
#linked-resources {
    display: none !important;
}

/* Hide linked items section */
.linked-resources h2,
.linked-resources > h3,
#linked-resources,
.items-heading {
    display: none !important;
}

/* ========================
   REPOSITORY MAP
   ======================== */
/* Hide non-geographic search options */
body.user-bar #fulltext-search-field,
body.user-bar #property-queries,
body.user-bar #resource-class,
body.user-bar #item-sets,
body.user-bar #has_media_field,
body.user-bar #id_field,
body.user-bar form#advanced-search button[type="submit"] { display: none !important; }

/* Uniform search boxes */
body.user-bar form#advanced-search .field {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid #c8d0dc;
    border-radius: 4px;
    padding: 0;
    overflow: hidden;
}
body.user-bar form#advanced-search .field > legend,
body.user-bar form#advanced-search .field > label:first-child,
body.user-bar #mapping-geographic-location > label,
body.user-bar #fulltext-search-field > label {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: bold;
    color: #1a3a6b;
    background-color: rgba(235, 232, 228, 0.95);
    padding: 6px 12px;
    display: block;
    border-bottom: 1px solid #c8d0dc;
    margin: 0;
}
body.user-bar form#advanced-search .field > div,
body.user-bar form#advanced-search .field > input {
    padding: 12px;
}

/* ========================
   ITEM SET BROWSE
   ======================== */
/* Force list layout */
.item-set ul.resources.resource-grid {
    display: block !important;
}
.item-set ul.resources.resource-grid li.resource {
    display: block !important;
    width: 100% !important;
    padding: 1rem 0;
    border-bottom: 1px solid #e6e6e6;
}

/* Scroll container */
.item-set div.item-set-items {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #c8d0dc;
    padding: 0 1.5rem;
    background: white;
}

/* ========================
   ITEM SET INDEX PAGE
   (the /item-sets listing — body class: item-set resource browse, NO .item)
   ======================== */
/* Hide h2 heading */
body.item-set.browse:not(.item) h2 { display: none !important; }
/* Hide ALL pagination on the index listing only */
body.item-set.browse:not(.item) .browse-controls { display: none !important; }

/* ========================
   ITEM SET SHOW PAGE (individual item set, e.g. /item-set/26)
   Body class: item resource browse item-set dropdown-menu user-bar
   ======================== */
/* Hide "Item set" h2 heading */
body.item.item-set #content > h2 { display: none !important; }
body.item.item-set h2.resource-class-label { display: none !important; }
body.item.item-set > * > h2:first-of-type { display: none !important; }

/* Also hide with broad rule as fallback */
body.item.item-set h2 { display: none !important; }

/* Hide "Items" h3 heading */
body.item.item-set .item-set-items > h3 { display: none !important; }

/* Hide top pagination, keep bottom pagination */
body.item.item-set .browse-controls.top { display: none !important; }

/* Hide raw URLs (div.description inside each list item) */
body.item.item-set ul.resources li.resource div.description { display: none !important; }

/* Items list — tighter, cleaner, scrollable */
body.item.item-set ul.resources.resource-grid {
    display: block !important;
}
body.item.item-set ul.resources.resource-grid li.resource {
    display: block !important;
    width: 100% !important;
    padding: 0.5rem 0;
    padding-left: 12px !important;
    border-bottom: 1px solid #e6e6e6;
    list-style: none;
}
body.item.item-set div.item-set-items {
    border: 1px solid #c8d0dc;
    border-radius: 4px;
    background-color: rgba(255,255,255,0.5);
    padding: 4px 16px;
    max-height: 600px;
    overflow-y: auto;
    max-width: 770px;
    width: 100%;
    box-sizing: border-box;
}
body.item.item-set div.item-set-items::-webkit-scrollbar { width: 6px; }
body.item.item-set div.item-set-items::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
body.item.item-set div.item-set-items::-webkit-scrollbar-thumb { background: #1a3a6b; border-radius: 4px; }

/* Normalize entry font size to match body text (overrides seafoam h4 treatment) */
body.item.item-set .resource-meta .resource-link .resource-name {
    font-size: 15px !important;
    line-height: 1.7 !important;
    font-weight: normal !important;
}

/* Font family for list entries */
body.item.item-set ul.resources li.resource a,
body.item.item-set ul.resources li.resource span {
    font-family: 'Libre Baskerville', Georgia, serif !important;
}

/* ========================
   SEARCH & FILTER
   ======================== */
#section-content ul.resource-list {
    max-height: 75vh;
    overflow-y: auto;
    border: 1px solid #c8d0dc;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 12px 16px;
}

#section-content ul.resource-list::-webkit-scrollbar { width: 6px; }
#section-content ul.resource-list::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
#section-content ul.resource-list::-webkit-scrollbar-thumb { background: #1a3a6b; border-radius: 4px; }

/* Hide ONLY the top pagination on Search & Filter */
.faceted-browse-page #section-content > div.browse-controls:first-child {
    display: none !important;
}

/* ========================
   HOME PAGE
   ======================== */
/* Welcome text block */
.page.home div.block-html {
    margin-bottom: 3em;
}

.page.home div.block-html h3 {
    font-size: 2.8em;
    margin-bottom: 0.75em;
}

.page.home div.block-html p {
    font-size: 1.05em;
    line-height: 1.9;
    margin-bottom: 1em;
}

/* Faceted browse preview block */
.page.home div.block-facetedBrowsePreview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.page.home div.block-facetedBrowsePreview a.button {
    order: -1;
    margin-bottom: 2.5em;
}

/* Recently Added label */
.page.home div.block-facetedBrowsePreview::before {
    content: "Recently Added";
    display: block;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: bold;
    font-size: 1em;
    color: #1a3a6b;
    background-color: rgba(235, 232, 228, 0.95);
    padding: 6px 12px;
    border: 1px solid #c8d0dc;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    width: 100%;
    box-sizing: border-box;
}

/* Recently Added scroll box */
.page.home div.block-facetedBrowsePreview ul.resource-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #c8d0dc;
    border-radius: 0 0 4px 4px;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 4px 12px;
    text-align: left;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 2em;
}

.page.home div.block-facetedBrowsePreview ul.resource-list::-webkit-scrollbar { width: 6px; }
.page.home div.block-facetedBrowsePreview ul.resource-list::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
.page.home div.block-facetedBrowsePreview ul.resource-list::-webkit-scrollbar-thumb { background: #1a3a6b; border-radius: 4px; }
body.item.item-set div#content > h3 { display: none !important; }
/* ========================
   BROWSE BY TYPE (item sets index)
   ======================== */
body.item-set.browse:not(.item) h2 a,
body.item-set.browse:not(.item) .resource-name,
body.item-set.browse:not(.item) .description {
    font-family: 'Libre Baskerville', Georgia, serif !important;
}
/* ========================
   ITEM PAGE TITLE SIZE
   ======================== */
body.item div.resource-title h2 {
    font-size: 1.5625rem !important;
}