/**
* VaultWiki CSS
* Style: 'Apartment X', ID: 23
**/

.vw-floatcontainer:after {
	clear: both;
	content: ".";
	display: block;
	font-size: 1pt;
	height: 0;
	visibility: hidden;
}

@font-face {
	font-family: 'FontAwesome';
	src: url('//www.forum.werealive.com/vault/resources/fonts/font-awesome/fontawesome-webfont.eot?v=dc5918fd');
	src: url('//www.forum.werealive.com/vault/resources/fonts/font-awesome/fontawesome-webfont.eot?v=dc5918fd') format('embedded-opentype'), url('//www.forum.werealive.com/vault/resources/fonts/font-awesome/fontawesome-webfont.woff2?v=dc5918fd') format('woff2'), url('//www.forum.werealive.com/vault/resources/fonts/font-awesome/fontawesome-webfont.woff?v=dc5918fd') format('woff'), url('//www.forum.werealive.com/vault/resources/fonts/font-awesome/fontawesome-webfont.ttf?v=dc5918fd') format('truetype'), url('//www.forum.werealive.com/vault/resources/fonts/font-awesome/fontawesome-webfont.svg?v=dc5918fd') format('svg');
	font-weight: normal;
	font-style: normal;
}

.vw-font-awesome {
	font-family: FontAwesome;
}

.vw-inline-prefix {
	background: #eaeaea none   ;
	border: 1px solid #dadada;
	border-radius: 0.5em;
	color: #F3F3F3;
	font-size: 0.8em;
	font-weight: bold;
	padding: 0.1em 0.3em;
}

.vw-ios-clickable * {
	cursor: pointer;
}



/* Cleaned VaultWiki Styles */


/* Change out Sidebar kc */

/* Sidebar - 300px width, tight spacing */

/* Sidebar container */
.vw-block-customid-wa_sidebarrestore {
    width: 350px !important;
    padding: .5em !important;
    margin: .5em !important;
    box-sizing: border-box !important;
}

/* Adjust main content area to compensate */
.vw-blocks-main {
    float: left;
    width: calc(100% - 300px) !important;
    box-sizing: border-box !important;
}

/* Remove all borders, margin, and padding from the table */
.vw-block-customid-wa_sidebarrestore table {
    width: 100% !important;
 
    
    border-collapse: collapse !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Tight internal spacing for table cells */
.vw-block-customid-wa_sidebarrestore table td,
.vw-block-customid-wa_sidebarrestore table th {
    padding: 2px 4px !important;
    border: 2px solid #1a1a1a !important; /* Add this */
 
    white-space: normal !important;
    text-align: end;
    font-size: 14px;


}

/* Ensure the links themselves also behave inline within their containers */
.vw-block-customid-wa_sidebarrestore table td a.vw-link {
    display: inline !important;
    width: auto !important;
}

/* Override any nowrap behavior in .wa-field */
.vw-block-customid-wa_sidebarrestore .wa-field {
    white-space: normal !important;
}






/* Prevent .wa_quote from being squished */
/*
 * Revised CSS for quotes section:
 * - Focuses on adjusting column widths for the three-column quote table.
 * - Makes side columns thin and center column wide.
 * - Adjusts font size for quote marks.
 */

/* Quote block container */
.wa_quote {
    max-width: 100% !important;
    width: 100% !important;
    margin: 5px 0 !important; /* Space between quotes */
    box-sizing: border-box !important;
    padding: 0 !important; /* Ensure no padding on the main block itself */
}

/* Quote table layout and preferred styling */
.wa_quote table.vw-table {
    width: 100% !important; /* Table fills its container */
    table-layout: fixed !important; /* Essential for precise column width control */
    border-collapse: collapse !important;
    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #0F6FC9 !important; /* Blue border */
    background: #04325D !important; /* Blue-gray background */
    border-radius: 10px !important;
}

/* General table cells (td and th) */
.wa_quote td,
.wa_quote th {
    padding: 6px 8px !important; /* Consistent padding within cells */
    vertical-align: top !important;

    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    font-size: inherit !important;
    line-height: 1.5em !important;
}

/* Specific properties for td elements */
.wa_quote table.vw-table td {
    display: table-cell !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Styling for the Quote Marks (first and last TD in a quote row) */
.wa_quote table.vw-table tr > td:first-child, /* Targets the first <td> in a row (opening quote mark) */
.wa_quote table.vw-table tr > td:last-child {  /* Targets the last <td> in a row (closing quote mark) */
    width: 2% !important; /* Make these columns very thin. Adjust percentage as needed. */
    text-align: center !important; /* Center the quote mark */
    font-size: 2.5em !important; /* Make quote marks much bigger */
    font-weight: bold !important;
    color: rgba(255, 255, 255, 0.5) !important; /* Make them slightly transparent if desired, or 'white' */
    padding: 0 2px !important; /* Reduce padding inside these cells to make them thinner */
    line-height: 1em !important; /* Prevent large font size from pushing lines too far apart */
}

/* Styling for the Actual Quote Content (middle TD) */
.wa_quote table.vw-table tr > td:nth-child(2) { /* Targets the second <td> in a row (the quote text) */
    width: 96% !important; /* This takes up most of the remaining space (100% - 2% - 2%) */
    text-align: left !important; /* Ensure text is left-aligned */
    font-size: inherit !important; /* Keep inherited font size for the content */
    line-height: 1.5em !important; /* Consistent line height for content */
    padding: 6px 8px !important; /* Standard padding for quote content */
}

/* Adjustments for cells that span multiple columns (like the header/image cells)
   These rules prevent the above 3-column specific rules from affecting them */
.wa_quote table td[colspan="2"], /* For the character image/name cell, if it's 2 columns */
.wa_quote table th[colspan="2"] { /* For the main title, Details, Background headers */
    width: 100% !important; /* They should span full width */
    text-align: center !important;
    padding: 8px 10px !important; /* Example padding */
    /* Ensure no text wrapping overrides on these specific cells if they are for images/short text */
    white-space: normal !important; /* Allow wrapping */
}


/* Elements within cells that might interfere with wrapping */
.wa_quote .wa-field {
    white-space: normal !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: inline-block !important;
    float: none !important;
    clear: none !important;
}

/* AGGRESSIVE FIX FOR WIKI LINKS CAUSING LINE BREAKS */
.wa_quote table.vw-table td a[href*="wiki_index.php?title="],
.wa_quote table.vw-table td a[href*="wiki_index.php?title="]:visited,
.wa_quote table.vw-table td a[href*="wiki_index.php?title="]:link {
    display: inline !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important;
    text-decoration: underline !important;
}

/* General inline elements within cells (i, b, span - for safety) */
.wa_quote table.vw-table td span,
.wa_quote table.vw-table td i,
.wa_quote table.vw-table td b {
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important;
    display: inline !important;
}


/* Images within quotes */
.wa_quote img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    border: 1px solid #ccc !important;
}

/* Spoiler styles */
.wa_quote .spoiler3 {
    padding: 0px 5px !important;
    margin-left: 20px !important;
    width: 40% !important;
}
.wa_quote .spoiler3 .quotecontent {
    padding: 8px 0px !important;
}
.wa_quote .spoiler3 a {
    text-decoration: none !important;
}
.wa_quote .spoiler3 a b {
    font-size: 0.8em !important;
}
.wa_quote .spoiler3 span[style*="color:#888888;"] {
    color: #888888 !important;
}


/* END Change out Template change */



/* Tabs */
.vw-tabbed {
  margin: 1em 0;
  padding: 0;
  border-bottom: 1px solid #444;
}

.vw-tab, .vw-tabbed a {
  background-color: #2e2e2e;
  border: 1px solid #444;
  border-bottom: none;
  padding: 6px 12px;
  display: inline-block;
  margin-right: 5px;
  color: #fff;
  text-decoration: none;
  border-radius: 4px 4px 0 0;
  font-size: 14px;
}

/* --- CSS Fixes for "Pages in Category" Section (Apartment X Style) --- */

/* 1. Remove the numbers (ordered list counters) for the alphabet headings.
 * These are generated by the <ol> tags that contain the alphabetical grouping headers (h4).
 * We target the <ol> that is a direct child of a list item within the columned category list.
 */
.vw-content-list.vw-column-list-2 ol.vw-content-list.vw-category-list {
    list-style-type: none !important; /* Hides the numbers (1., 2., etc.) */
    margin-left: 0 !important; /* Adjust default left margin for ordered lists */
    padding-left: 0 !important; /* Adjust default left padding for ordered lists */
}

/* 2. Reduce spacing around the alphabet headings (e.g., "A", "B", "R").
 * These are h4 elements within the category list structure.
 */
.vw-content-list.vw-column-list-2 h4.vw-head {
    margin-top: 10px !important;    /* Reduce top margin for less space above heading */
    margin-bottom: 5px !important;  /* Reduce bottom margin for less space below heading */
    padding: 0 !important;          /* Remove any default padding */
    border-bottom: 1px solid #555 !important; /* Keep a subtle separator if desired, adjust color */
    color: #C9B489 !important;      /* Keep font color consistent with your theme */
    font-size: 1.1em !important;    /* Adjust font size if needed */
}

/* 3. Reduce spacing between individual page listings (e.g., "Arrowhead", "Big Ones").
 * These are the <li> elements within the category lists.
 */
.vw-content-list li.vw-content-list-row {
    margin-bottom: 3px !important;  /* Reduce space between each page link */
    padding: 3px 0 !important;      /* Reduce padding inside each list item */
    background: none !important;    /* Remove any background that might add visual bulk */
    border: none !important;        /* Remove borders for tighter spacing */
}

/* Further refine spacing for the link itself if needed */
.vw-content-list h3.ui-li-heading a {
    padding: 0 !important; /* Ensure no extra padding inside the link itself */
    line-height: 1.3 !important; /* Adjust line height for tighter text if multiline */
}

/* Ensure the columns (if still present on narrower screens) don't have too much internal spacing */
.vw-content-list.vw-column-list {
    column-gap: 10px !important; /* Reduce space between columns if using multiple columns */
}


.vw-tab-active, .vw-tabbed .selected a {
  background-color: #000;
  font-weight: bold;
}

/* Content Styling */
.vw-content, .vw-article, .vw-page-content {
  background: #1c1c1c;
  border: 1px solid #333;
  padding: 20px;
  color: #f2f2f2;
  border-radius: 0 0 5px 5px;
  font-size: 15px;
  line-height: 1.7;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

/* Headings */
.vw-heading, .vw-section-title {
  font-size: 1.4em;
  margin-top: 1em;
  margin-bottom: 0.5em;
  color: #ffe478;
  border-bottom: 1px solid #444;
  padding-bottom: 4px;
}

/* Infobox */
.vw-infobox {
  float: right;
  margin: 0 0 1em 1em;
  padding: 12px;
  width: 260px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 13px;
  color: #ddd;
}

.vw-infobox h3 {
  margin-top: 0;
  font-size: 1.2em;
  color: #fff;
  border-bottom: 1px solid #666;
}

/* Footer */
.vw-footer, .vw-meta, .vw-page-footer {
  font-size: 12px;
  color: #aaa;
  border-top: 1px dashed #444;
  margin-top: 2em;
  padding-top: 1em;
  text-align: right;
}

/* Edit Link */
.vw-edit {
  float: right;
  font-size: 12px;
  color: #ccc;
}

.vw-edit a {
  color: #ccc;
  text-decoration: underline;
}

/* Spoiler */
.vw-spoiler {
  background-color: #111;
  border: 1px dashed #666;
  padding: 10px;
  margin: 1em 0;
  color: #777;
}

.vw-spoiler:hover {
  color: #ccc;
}

/* Block Styles */
.vw-block {
  background: #1a1a1a;
  border: 1px solid #444;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  color: #ddd;
}

.vw-block-title {
  background: linear-gradient(to bottom, #3d3d3d, #2a2a2a);
  padding: 10px 16px;
  font-weight: bold;
  color: #f2f2f2;
  font-size: 16px;
  border-bottom: 1px solid #555;
  text-shadow: 1px 1px 1px #000;
}

.vw-block-content {
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
}

/* Info, Warning, Success Blocks */
.vw-block.vw-block-info {
  background: #223344;
  border-color: #446688;
  color: #cce0ff;
}

.vw-block.vw-block-warning {
  background: #442a2a;
  border-color: #884444;
  color: #ffd6d6;
}

.vw-block.vw-block-success {
  background: #2a4433;
  border-color: #448866;
  color: #d6ffea;
}

/* Block Box */
.vw-block-box {
  background: #1c1c1c;
  border: 1px solid #4a4a4a;
  border-radius: 5px;
  margin: 20px 0;
  padding: 10px 15px;
  color: #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.vw-block-box h2,
.vw-block-box .vw-block-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
  border-bottom: 1px solid #666;
  padding-bottom: 4px;
  text-shadow: 1px 1px 1px #000;
}

.vw-block-box .vw-block-content {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
}

/* Tabs Layout */
ul.vw-tabs {
  display: flex;
  align-items: baseline;
  margin-top: 1em;
  padding: 0 1em;
  white-space: nowrap;
  background: #2a0e0e;
  border-bottom: 1px solid #4b2c2c;
}

/* Tabs Appearance */
.vw-tabs > li > a {
  background: #2b0f0f;
  border: 1px solid #4b2c2c;
  border-bottom: none;
  color: #f5e7c5;
  padding: 6px 14px;
  text-decoration: none;
  border-radius: 4px 4px 0 0;
  opacity: 0.9;
}

.vw-tabs > li > a:hover,
.vw-tabs > li:hover > a,
.vw-tabs > li > a.vw-popupctrl-hover,
.vw-tabs .selected a,
.vw-tabs .selected a:hover {
  background: #3c1e1e;
  color: #f5e7c5;
  opacity: 1;
}

.vw-tabs .selected a {
  background: #1e0808;
  border: 1px solid #6b3b3b;
  font-weight: bold;
  margin-left: -1px;
  padding: 8px 14px 6px;
}

/* Tabs Edge Cases */
.vw-tabs .selected:first-child a {
  border-radius: 4px 0 0 0;
}

.vw-tabs .selected:last-child a {
  border-radius: 0 4px 0 0;
}

/* Popups */
.vw-popupgroup {
  background: #2a0e0e;
  border: 1px solid #4b2c2c;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.7);
  padding: 0;
  z-index: 1000;
}

.vw-popupgroup a, .vw-popupgroup label {
  display: block;
  padding: 8px 12px;
  color: #f5e7c5;
  text-decoration: none;
  border-bottom: 1px solid #3b1a1a;
  background: #2a0e0e;
  font-weight: normal;
}

.vw-popupgroup a:last-child {
  border-bottom: none;
}

.vw-popupgroup a:hover, .vw-popupgroup label:hover {
  background-color: #3c1e1e;
  color: #ffffff;
}

/* Link Preview */
.vw-link-preview {
  background-color: #1c1c1c !important;
  border-color: #444 !important;
  color: #f0f0f0 !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.vw-link-preview * {
  color: #f0f0f0 !important;
}

.vw-link-preview .vw-link-preview-more {
  color: #f5e7c5 !important;
  border-top-color: #555 !important;
}

/* Prefix */
.vw-inline-prefix {
  background: #562521 none;
  border: 1px solid #dadada;
  border-radius: 0.5em;
  color: #F3F3F3;
  font-size: 0.8em;
  font-weight: bold;
  padding: 0.1em 0.3em;
}

/* Image Fix */
.vw-img-image,
a .vw-img-image,
.vw-link-previewable .vw-img-image {
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
  height: auto !important;
  max-width: 100%;
  vertical-align: top !important;
  background: none !important;
}

/* ========================================= */
/* VaultWiki Image & Table Display Fixes     */
/* ========================================= */

/* Normalize vw-table cells */
 .vw-table td {
  text-align: center !important;
  padding: 1 !important;
  margin: 0 !important;

} 

/* Ensure child elements inside vw-table cells are centered */
.vw-table td > div,
.vw-table td > span,
.vw-table td > a,
.vw-table td > a > span,
.vw-table td > a > div {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  margin: 0 auto !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Image behavior inside tables and linked structures */
.vw-table img,
.vw-table a img,
.vw-table td img,
.vw-table td a img,
.vw-img-image,
a .vw-img-image {
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
  height: auto !important;
  max-width: 100% !important;
  vertical-align: top !important;
  line-height: 0 !important;
}

/* Lazy-load and placeholder fix */
.vw-img-image.vw-lazy-ctrl,
[data-lazy-type="img"] {
  content-visibility: visible !important;
  contain-intrinsic-size: auto !important;
  aspect-ratio: auto !important;
  padding-top: 0 !important;
  background: none !important;
}

/* ========================================= */
/* VaultWiki Theme Overrides                */
/* ========================================= */

.vw-title-head h1 {
  color: #e6e2c1 !important;
}

.vw-link,
.vw-link:hover {
  color: #cab489 !important;
}

/* Override VaultWiki float right from template wrappers */
.vw-div {
  float: none !important;
  margin: 0 auto !important;
  display: block !important;
  width: fit-content !important; /* prevents stretching full width */
  text-align: center !important;
}

/* Main Wrapper: Holds both the image and the hotspot container */
.vw-map-wrap {
    position: relative;
    width: 100%;
    max-width: 1700px; /* Adjust to your map's full resolution width */
    margin: 0 auto;
    overflow: hidden;
    font-size: 0; /* Prevent inline whitespace from affecting layout */
}

/* The actual image that provides the sizing */
.vw-map-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%; /* Ensures scaling on mobile */
}

/* Container for all the hotspots. This will overlay the image. */
.vw-map-hotspots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Prevents this container from blocking clicks */
    z-index: 5;
}

/* Map Link Hotspot - Default (Subtly Visible) */
.vw-map-link {
    position: absolute;
    display: block;
    z-index: 10; /* Ensure it's above the map image */
    text-indent: -9999px; /* Hide any underlying text */
    overflow: hidden;
    box-sizing: border-box; /* Crucial for consistent sizing */
    pointer-events: auto; /* Ensure it's clickable */

    /* Default subtle visual for users to find the hotspot */
    background-color: rgba(136, 192, 208, 0.05); /* Very, very faint cyan background (5% opacity) */
    border: 2px solid rgba(136, 192, 208, 0.2); /* Slightly more visible (20% opacity) border */

    /* Smooth transitions for visual feedback */
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Hover and Active/Focus State (Clearer Feedback) */
.vw-map-link:hover,
.vw-map-link:focus, /* For keyboard navigation/accessibility */
.vw-map-link:active { /* For touch/click feedback */
    background-color: rgba(136, 192, 208, 0.2); /* More visible background (20% opacity) */
    border-color: #88c0d0; /* Solid soft cyan border */
    box-shadow: 0 0 5px rgba(136, 192, 208, 0.7); /* Optional: A subtle glow for emphasis */
}


/* vw_additional.css */

.wa-field:empty,
.wa-field:has(:empty) {
  display: none;
}

.waf-spoiler {
  margin: 0.5em 0;
}

.waf-spoiler-toggle {
  background-color: #314883;
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 90%;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.waf-spoiler-content {
  display: none;
  margin-top: 6px;
  background: #f4f4f4;
  color: #111;
  padding: 10px;
  border-radius: 4px;
  font-size: 90%;
  line-height: 1.4em;
}

.waf-spoiler-content.show {
  display: block;
}

/* Target ONLY the character infobox table */
.vw-table {
  background-color: #2b2b2b !important; /* Gray background for the infobox */
  border: 1px solid #444;
  border-radius: 8px;
}

/* Table cells inside the infobox */
.vw-table td,
.vw-table th {
  background-color: transparent !important;
  color: #f0f0f0; /* Light text for visibility */
  border-color: #444;
}

/* Section headers (like "Details", "Background") */
.vw-table th[colspan="2"] {
  background-color: #314883 !important; /* Keep your blue headers */
  color: white;
}

/* Removes large vertical space under character infobox tables */
table.vw-table + br,
table.vw-table + br + br,
table.vw-table + br + br + br {
  display: none !important;
}

/* Optional: tighten vertical spacing for all infobox containers */
table.vw-table:last-of-type {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.baseball-card {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.card-col {
  flex: 1;
  min-width: 220px;
}

.vw-toc-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  padding: 1em;
}
.vw-toc-links li {
  min-width: 150px;
}


.character-card td {
  vertical-align: top;
  background-color: #1a1a1a;
  color: #e3d4aa;
}
.character-card table {
  border: none;
}
.character-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

/* Reduce padding and spacing inside TOC box */
.vw-toc-block {
  padding: 8px 12px !important;
  margin-bottom: 12px;
}

/* Tighten header spacing */
.vw-toc-block h3 {
  margin-bottom: 6px;
}

/* Reduce vertical space between items */
.vw-toc-links li {
  padding: 2px 0 !important;
  margin: 0 !important;
  line-height: 1.2;
}

/* Optional: reduce spacing around the collapse icon */
.vw-collapse-head {
  padding: 4px 6px !important;
}

.vw-content-only ol,
.vw-content-only ul {
  margin-left: 1.5em !important; /* restores indentation */
  padding-left: 1em !important;
  list-style-position: outside !important;
  margin-bottom: 0.5em; /* spacing between list items */
}

.vw-content-only li {
  margin-bottom: 0.3em !important;
}

.vw-img-thumb .vw-img-wrapper, .vw-img-frame .vw-img-wrapper {
    background: #562521 none; /* This sets the background color and indicates no background image */
    /* Other properties like border, margin-bottom, padding would also be in this block */
}

