/*
Theme Name:     Twenty Twelve Child
Description:    Twenty Twelve Child Theme
Author:         Eric Mawhinney
Template:       twentytwelve
*/

@import url("../twentytwelve/style.css");

.main-navigation .nav-menu li {
	margin-right: 10px;
}
.header-image { margin-left: auto; margin-right: auto; display:block; }

/*Centre Featured Image in Post*/
.single-post .type-post .wp-post-image {
    margin: 0 auto 0.5em;
    display: flex;
}

/* nav menu background color and align text=center*/

.main-navigation ul.nav-menu,.main-navigation div.nav-menu > ul {
        background: none repeat scroll 0 0 #cce6ff;
		border: 0 none;
		padding: 0 0 0 0;
		text-align: center;
		width: 100%;
	}


/*nav menu font color and bold font (font-weight)*/

.main-navigation li a {
    border-bottom: 0 none;
    color:#21759b;
	font-weight: bold;
    line-height: 3.69231;
    white-space: nowrap;
}

/*background color of sub-menu (dropdown)*/

.main-navigation li ul li a {
  background: none repeat scroll 0 0 #cce6ff;
  border-bottom: 1px solid #EDEDED;
  display: inline-block;
  font-size: 0.785714rem;
  line-height: 2.18182;
  padding: 0.571429rem 0.714286rem;
  white-space: normal;
  width: 12.8571rem;
}

/* Remove 'Entry Title from pages */
.page .entry-header .entry-title {
	display: none;
}


/* Remove 'Entry Title from posts*/
.post .entry-header .entry-title {
	display: none;
}

/* change page title to blue */
.page-title-head a {
    color:  #21759b;
}

/* change color of visited links to green*/
.entry-content a:visited, .comment-content a:visited {
    color: green;
}



/* Sets color of Simple Yearlyly Archive font*/
.sya_container a, .sya_container .sya_yearslist, .sya_container .sya_yearslist a {
	color: #21759b;}
	
.menu li:before {
  content: "// ";
  position: relative;
  left: -1px;
}

/* Captions */
[class^="wp-block-"]:not(.wp-block-gallery) figcaption{
font-family:"Helvetica Neue", Helvetica, Arial, sans-serif !important;
    color: black;
	font-style: normal;
	font-size: 12px !important;
	text-align: center;
    padding: 0 !important;
    margin-bottom: 0 !important;
}
.wp-caption .wp-caption-text {
    font-family:"Helvetica Neue", Helvetica, Arial, sans-serif !important;
    color: black;
	font-style: normal;
	font-size: 12px !important;
	text-align: center;
    padding: 0 !important;
    margin-bottom: 0 !important;
}
/* Centre  Fetured Image in Post*/

/* ==========================================================================
   6. ARCHIVE CUSTOM LIGHTWEIGHT TOOLTIP SYSTEM
   ========================================================================== */
.archive-tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 5px;
}

/* The hover trigger icon */
.archive-tooltip-icon {
    font-size: 14px;
    background: #e0e0e0;
    border-radius: 50%;
    padding: 2px 6px;
    color: #555;
    transition: background 0.2s ease;
}

.archive-tooltip-wrapper:hover .archive-tooltip-icon {
    background: #0073aa;
    color: #fff;
}

/* Update the floating informational bubble to anchor safely to the right */
.archive-tooltip-bubble {
    visibility: hidden;
    width: 280px;
    background-color: #333333; /* Keeps your customized background colour */
    color: #ffffff; /* Keeps your customized text colour */
    text-align: left;
    border-radius: 6px;
    padding: 12px;
    position: absolute;
    z-index: 9999;
    bottom: 130%; /* Floats comfortably above the icon */
    
    /* THE FIX: Anchor it to the left edge of the icon and slide it safely into the page content view */
    left: 0; 
    transform: translateX(-10px) translateY(10px); 
    
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: sans-serif;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    pointer-events: none;
}

/* THE FIX: Re-align the tiny downward pointing arrow so it lines up with the question mark */
.archive-tooltip-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    
    /* Anchor the arrow smoothly to the left side of the bubble where the icon sits */
    left: 15px; 
    
    border-width: 5px;
    border-style: solid;
    border-color: #333333 transparent transparent transparent; /* Match your customized background colour */
}

/* Update the reveal trigger to match the new positioning animation */
.archive-tooltip-wrapper:hover .archive-tooltip-bubble {
    visibility: visible;
    opacity: 1;
    transform: translateX(-10px) translateY(0);
}
/* Forcefully hide the mismatched plugin page results from the frontend layout */
.webequipe-pdf-page, 
.webequipe-page-number, 
.pdf-search-results-page-info,
span.webequipe-search-meta,
.webequipe-search-result-page {
    display: none !important;
}

/* Collapse the empty spacing inside and between the WebEquipe search result boxes */
.webequipe-search-result,
.webequipe-pdf-search-result,
article.search-result,
.webequipe-result-item {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    border-bottom: 1px solid #eee !important; /* Adds a clean, tight separation line between volumes */
}

/* Tighten the spacing directly around the document title links */
.webequipe-search-result h3,
.webequipe-pdf-title-line {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}
