MediaWiki:Common.css: Difference between revisions

From The Jadnix Codex

No edit summary
Tag: Reverted
No edit summary
 
(20 intermediate revisions by the same user not shown)
Line 650: Line 650:
/* 1. THE COMMENT CARD */
/* 1. THE COMMENT CARD */
.cd-comment-part {
.cd-comment-part {
     background-color: #13131a !important; /* Dark card color */
     background-color: #13131a !important;  
     border: 1px solid #333 !important;
     border: 1px solid #333 !important;
     border-radius: 4px;
     border-radius: 4px;
Line 656: Line 656:
     margin-bottom: 12px !important;
     margin-bottom: 12px !important;
     box-shadow: 0 4px 10px rgba(0,0,0,0.5);
     box-shadow: 0 4px 10px rgba(0,0,0,0.5);
     position: relative;
     display: block !important; /* Ensure vertical stacking */
    overflow: hidden;
}
}


/* 2. THE HEADER BAR (Signature & Metadata) */
/* 2. THE SIGNATURE (Simple Header Look) */
.cd-signature {
.cd-signature {
     display: block;
     display: block;
     background: #1a1a24; /* Slightly lighter header bar */
     background: #1a1a24;
    margin: -15px -15px 10px -15px !important; /* Flush to the top of the card */
     padding: 8px 15px !important;
     padding: 8px 15px !important;
    margin: 0 0 10px 0 !important; /* Removed negative margins */
     border-bottom: 1px solid #333;
     border-bottom: 1px solid #333;
     font-family: 'Consolas', monospace;
     font-family: 'Consolas', monospace;
Line 671: Line 672:
}
}


/* Highlight the Username in the header */
.cd-signature .mw-userlink {
.cd-signature .mw-userlink {
     color: var(--void-accent) !important;
     color: var(--void-accent) !important;
Line 678: Line 678:
}
}


/* 3. THREADING & INDENTATION */
/* 3. THREADING */
/* This kills the thin lines and replaces them with a chunky Wikidot-style left border */
.cd-comment-level:not(.cd-comment-level-0) {
.cd-comment-level:not(.cd-comment-level-0) {
     border-left: 3px solid #333 !important;
     border-left: 3px solid #333 !important;
     margin-left: 20px !important;
     margin-left: 20px !important;
     padding-left: 10px !important;
     padding-left: 15px !important;
}
}


/* Change thread line color on hover to show context */
/* 4. EMERGENCY IMAGE KILLER */
.cd-comment-level:hover {
/* If any ghost script tries to inject an image, this hides it */
     border-left-color: var(--void-accent) !important;
.cd-comment-avatar, .j-avatar-img, .cd-comment-part img {
     display: none !important;
}
}


/* 4. THE ACTION BUTTONS (Reply, Edit, Thank) */
/* 5. ACTION BUTTONS */
.cd-comment-actions {
.cd-comment-actions {
     margin-top: 10px;
     margin-top: 10px;
     padding-top: 10px;
     padding-top: 5px;
     border-top: 1px dashed #222;
     border-top: 1px dashed #222;
     display: flex;
}
    gap: 15px;
/* ============================================================
  MISC THINGS I DON'T KNOW WHERE ELSE TO PUT
  ============================================================ */
 
/* Remove the "Powered By" icons, and icons in the footer in general */
#footer-icons, .footer-icons {
     display: none !important;
}
}


.cd-comment-action-button {
/* Special footer look to fit the site theme */
     font-family: 'Consolas', monospace !important;
.mw-footer {
     font-size: 0.75em !important;
    background-color: #050505 !important;
    border-top: 1px solid #333 !important;
     font-family: 'Consolas', monospace;
     font-size: 0.75em;
     text-transform: uppercase;
     text-transform: uppercase;
     letter-spacing: 1px;
     letter-spacing: 1px;
}
.mw-footer a {
     color: #555 !important;
     color: #555 !important;
    transition: color 0.2s;
}
}


.cd-comment-action-button:hover {
.mw-footer a:hover {
     color: var(--void-accent) !important;
     color: var(--void-accent) !important;
     text-decoration: none !important;
     text-shadow: 0 0 5px var(--void-accent);
}
}


/* 5. ADD TOPIC / REPLY BOXES */
/* Hide the Convenient Discussions 'Run once' link in the footer */
.cd-replyButton-wrapper, .cd-addTopicButton-wrapper {
#footer-places-convenient-discussions-run {
     margin-top: 20px;
     display: none !important;
}
}


.cd-button-action {
/* ============================================================
     background: #1a1a24 !important;
  JADNIX CONVENIENT DISCUSSIONS: PREVIEW & DIFF PATCH
  ============================================================ */
 
/* 1. Fix the blinding white Preview Box */
.cd-commentForm-previewArea {
     background-color: #050505 !important; /* Darkest terminal background */
    color: #d1d1d1 !important;
     border: 1px solid var(--void-accent) !important;
     border: 1px solid var(--void-accent) !important;
     border-radius: 2px !important;
    margin-top: 10px !important;
     padding: 8px 20px !important;
    padding: 10px !important;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8) !important;
}
 
/* 2. Fix the blinding white "View Changes" (Diff) Table */
table.diff, .diff td, .diff th {
    background-color: #0f0f14 !important;
    border-color: #333 !important;
    color: #d1d1d1 !important;
}
 
/* The empty/unchanged context lines */
td.diff-context {
    background-color: #0a0a0f !important;
    color: #666 !important;
    border-color: #222 !important;
}
 
/* The + / - Markers */
td.diff-marker {
    background-color: #050505 !important;
    color: #888 !important;
    border: none !important;
    font-weight: bold;
}
 
/* Lines that were ADDED (+) */
td.diff-addedline {
    background-color: #13131a !important;
    border-color: var(--void-accent) !important;
}
td.diff-addedline .diffchange {
    background-color: rgba(160, 32, 240, 0.4) !important; /* Semi-transparent purple highlight */
    color: #fff !important;
    font-weight: bold;
     border-radius: 2px;
}
 
/* Lines that were REMOVED (-) */
td.diff-deletedline {
    background-color: #1a0d0d !important; /* Very dark red */
     border-color: #ff4500 !important;
}
}
td.diff-deletedline .diffchange {
    background-color: rgba(255, 69, 0, 0.3) !important;
    color: #ffcaaf !important;
    text-decoration: line-through;
    border-radius: 2px;
}
/* 3. The "Changes" Header Text */
.cd-commentForm-diff > div:first-child {
    color: var(--void-accent) !important;
    font-weight: bold !important;
    font-family: 'Consolas', monospace;
    text-transform: uppercase;
    margin-bottom: 5px;
}
/* ============================================================
/* ============================================================
   JADNIX FACTION-CODED COMMENTS
   R&R CORPS: SEAM FRACTURE TRACKER
   ============================================================ */
   ============================================================ */


/* STILL (Purple) */
/* The Main Scrolling Viewport */
.cd-comment-part:has(.f-still) {
.seam-tracker-viewport {
     --void-accent: #a020f0 !important;
    width: 100%;
     border-left: 5px solid var(--void-accent) !important;
    overflow-x: auto;
    padding: 20px 0 40px 0;
    background: #0a0a0f;
    border: 1px solid #21b0cd; /* Skipper Blue Border */
    box-shadow: inset 0 0 20px rgba(33, 176, 205, 0.1);
}
 
/* Custom Scrollbar for the Tracker */
.seam-tracker-viewport::-webkit-scrollbar { height: 10px; }
.seam-tracker-viewport::-webkit-scrollbar-track { background: #050505; border-top: 1px solid #333; }
.seam-tracker-viewport::-webkit-scrollbar-thumb { background: #21b0cd; border-radius: 5px; }
 
/* The Track holding the Cards */
.seam-track {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    align-items: flex-start; /* Keeps cards from stretching to match the tallest one */
}
 
/* The Individual Seam Card */
.seam-card {
    flex: 0 0 280px; /* Fixed width, won't shrink */
    background: #13131a;
    border: 1px solid #333;
    border-top: 4px solid var(--seam-color, #888);
    display: flex;
    flex-direction: column;
    font-family: 'Consolas', monospace;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
 
.seam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.8), 0 0 15px var(--seam-color, #888);
}
 
/* Card Header (ID & Dot) */
.seam-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #1a1a24;
    border-bottom: 1px solid #333;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
}
 
/* The Glowing Stability Dot */
.seam-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--seam-color, #888);
    box-shadow: 0 0 8px var(--seam-color, #888);
}
 
/* Image / Static Area */
.seam-card-image {
    height: 160px;
    background: #050505;
    border-bottom: 1px solid #333;
    position: relative;
    overflow: hidden;
}
 
.seam-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
 
/* "NO SIGNAL" CSS Static Animation */
.seam-static {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, #111 0px, #222 2px, #111 4px);
    animation: static-flicker 0.1s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 1.5em;
    letter-spacing: 2px;
}
 
@keyframes static-flicker {
    0% { background-position: 0 0; }
    50% { background-position: 10px 10px; }
    100% { background-position: -10px -5px; }
}
 
/* Epithet / Name Area */
.seam-card-epithet {
    padding: 15px;
    text-align: center;
    color: #d1d1d1;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}
 
/* Nested Seams (The Dropdown) */
.seam-nested-container {
    max-height: 0;
    overflow: hidden;
    background: #0a0a0f;
    transition: max-height 0.4s ease-in-out;
}
 
/* Expands on desktop hover OR mobile tap/focus */
.seam-card:hover .seam-nested-container,
.seam-card:focus-within .seam-nested-container {
    max-height: 300px;
    border-top: 1px dashed #333;
}
 
.nested-seam-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    font-size: 0.8em;
    border-bottom: 1px solid #111;
    color: #888;
    transition: background 0.2s, color 0.2s;
}
 
.nested-seam-item:hover {
     background: #1a1a24;
    color: #fff;
    cursor: crosshair;
}
 
/* Stability Color Variables */
.rating-anchored { --seam-color: #00ff9f; } /* Green */
.rating-volatile { --seam-color: #ffd700; } /* Yellow */
.rating-fractured { --seam-color: #ff4500; } /* Red */
.rating-realm { --seam-color: #a020f0; } /* Purple */
.rating-null { --seam-color: #888888; } /* Grey */
 
/* ============================================================
  JADNIX SEAM PAGE TEMPLATE: CUSTODY SPINE & MARGINALIA
  ============================================================ */
 
/* 1. The Cinematic Banner */
.seam-page-banner {
    position: relative;
    width: 100%;
    height: 250px;
    background: #050505;
    border: 1px solid #333;
    border-bottom: 3px solid #fff; /* Changes dynamically via inline style */
    margin-bottom: 30px;
    overflow: hidden;
}
 
/* 2. Banner Metadata Overlay */
.seam-banner-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(10,10,15,1), rgba(10,10,15,0.8) 60%, transparent);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
 
.seam-banner-title {
    font-family: 'Consolas', monospace;
}
.seam-banner-title h1 {
    font-size: 2.5em;
    color: #fff !important;
     border: none !important;
    margin: 0 0 5px 0 !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}
.seam-banner-title h2 {
    font-size: 1.2em;
    color: #aaa !important;
    border: none !important;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}
 
/* 3. The Shifting Custody Spine */
.seam-custody-section {
    padding: 0 0 40px 30px;
    margin-bottom: 0;
    font-size: 1.05em;
    line-height: 1.6;
}
.custody-still { border-left: 5px solid #a020f0; }
.custody-skipper { border-left: 5px solid #21b0cd; }
.custody-dealer { border-left: 5px solid #DAA520; }
 
.seam-custody-section h2 {
    margin-top: 0 !important;
    padding-top: 10px;
}
 
/* 4. The Marginalia (Injection Boxes) */
.seam-injection {
    background: #13131a;
    border: 1px solid #333;
    padding: 15px 20px;
    margin: 20px 0 20px 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    font-size: 0.95em;
    position: relative;
    overflow: hidden; /* Fixes the overlap for injection note boxes */
}
 
/* Injection Faction Colors */
.inj-still { border-left: 4px solid #a020f0; }
.inj-skipper { border-left: 4px solid #21b0cd; }
.inj-dealer { border-left: 4px solid #DAA520; }
 
.seam-injection-header {
    font-family: 'Consolas', monospace;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    border-bottom: 1px dashed #333;
    padding-bottom: 5px;
}
}
.cd-comment-part:has(.f-still) .cd-signature .mw-userlink { color: #a020f0 !important; }


/* DEALERS (Gold) */
.inj-still .seam-injection-header { color: #a020f0; }
.cd-comment-part:has(.f-dealer) {
.inj-skipper .seam-injection-header { color: #21b0cd; }
    --void-accent: #DAA520 !important;
.inj-dealer .seam-injection-header { color: #DAA520; }
     border-left: 5px solid var(--void-accent) !important;
 
/* ============================================================
  JADNIX SEAM PAGE: ATTACHED IMAGE GALLERY
  ============================================================ */
 
/* The Collapsible Wrapper */
.seam-gallery-wrapper {
    background: #0f0f14;
     border: 1px solid #333;
    margin-top: 20px;
    padding: 10px;
}
}
.cd-comment-part:has(.f-dealer) .cd-signature .mw-userlink { color: #DAA520 !important; }


/* SKIPPERS (Blue) */
/* The Horizontal Scroll Track */
.cd-comment-part:has(.f-skipper) {
.seam-gallery-viewport {
     --void-accent: #21b0cd !important;
    width: 100%;
     border-left: 5px solid var(--void-accent) !important;
    overflow-x: auto;
    padding: 15px 0;
     margin-top: 10px;
     border-top: 1px dashed #333;
}
}
.cd-comment-part:has(.f-skipper) .cd-signature .mw-userlink { color: #21b0cd !important; }
.seam-gallery-viewport::-webkit-scrollbar { height: 8px; }
.seam-gallery-viewport::-webkit-scrollbar-track { background: #050505; }
.seam-gallery-viewport::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }


/* Hide the technical marker so the signature stays clean */
.seam-gallery-track {
.f-still, .f-dealer, .f-skipper {
     display: flex;
     display: none !important;
    gap: 15px;
}
}


/* Hide the technical marker dot */
/* The Image Cards */
.f-marker {
.seam-gallery-card {
     display: inline-block;
     flex: 0 0 250px;
     width: 0;
    height: 180px;
     height: 0;
    background: #050505;
    border: 1px solid #222;
     position: relative;
     cursor: zoom-in; /* Tells the user they can click it */
     overflow: hidden;
     overflow: hidden;
    font-size: 0;
}
}


/* STILL (Purple) */
.seam-gallery-card img {
.comment-theme-still {
     width: 100%;
     border-left: 5px solid #a020f0 !important;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}
}
.comment-theme-still .mw-userlink { color: #a020f0 !important; }


/* DEALERS (Gold) */
.seam-gallery-card:hover img {
.comment-theme-dealer {
     transform: scale(1.05); /* Slight hover zoom */
     border-left: 5px solid #DAA520 !important;
}
}
.comment-theme-dealer .mw-userlink { color: #DAA520 !important; }


/* SKIPPERS (Blue) */
/* ============================================================
.comment-theme-skipper {
  JADNIX GALLERY TOGGLE FIX (CENTERED DRAWER BAR)
     border-left: 5px solid #21b0cd !important;
  ============================================================ */
 
/* Make sure the box doesn't collapse on itself */
.seam-gallery-wrapper {
    clear: both;
}
 
/* Override the default MediaWiki right-float */
.seam-gallery-wrapper .mw-collapsible-toggle {
    float: none !important;
    text-align: center !important;
    display: block !important;
    width: 100%;
    padding: 5px 0;
    font-family: 'Consolas', monospace;
    font-weight: bold;
    letter-spacing: 2px;
}
 
/* Style the actual link text */
.seam-gallery-wrapper .mw-collapsible-toggle a {
    color: #888 !important;
    text-decoration: none !important;
    transition: color 0.2s, text-shadow 0.2s;
}
 
/* Make it light up when they mouse over it */
.seam-gallery-wrapper .mw-collapsible-toggle a:hover {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
 
/* ============================================================
  JADNIX TOC SPACING FIX
  ============================================================ */
#toc, .toc {
    max-width: 350px !important; /* Prevents it from getting too wide */
    margin-left: 30px !important; /* Pushes it away from the text on the left */
    margin-bottom: 20px !important;
}
 
/* ============================================================
  JADNIX CRDD RECEIPT (SIDEBAR INFOBOX)
  ============================================================ */
.crdd-receipt-wrapper {
    float: right;
    width: 320px;
    background: #0f0f14;
    border: 1px solid #333;
    border-top: 4px solid var(--void-accent); /* Inherits faction color */
    margin: 0 0 20px 20px;
    font-family: 'Consolas', monospace;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    clear: right;
}
 
.crdd-receipt-header {
    background: #1a1a24;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: var(--void-accent);
    border-bottom: 1px solid #333;
    letter-spacing: 1px;
}
 
/* Override default MediaWiki toggle specifically for the Receipt */
.crdd-receipt-wrapper .mw-collapsible-toggle {
    float: none !important;
    text-align: center !important;
    display: block !important;
    width: 100%;
    padding: 6px 0;
    background: #050505;
     border-bottom: 1px solid #333;
    font-size: 0.85em;
}
 
.crdd-receipt-wrapper .mw-collapsible-toggle a {
    color: #888 !important;
    text-decoration: none !important;
}
 
.crdd-receipt-wrapper .mw-collapsible-toggle a:hover {
    color: var(--void-accent) !important;
}
 
/* The Data Blocks */
.crdd-section-block {
    padding: 12px 15px;
    border-bottom: 1px dashed #333;
}
.crdd-section-block:last-child {
    border-bottom: none;
}
 
.crdd-section-title {
    color: #000 !important; /* Force black text */
    background-color: var(--void-accent) !important; /* Force colored background */
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9em;
    padding: 4px 8px; /* Give the text some breathing room inside the box */
    display: inline-block; /* Stop it from stretching across the whole receipt */
}
 
.crdd-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #888;
    margin-bottom: 4px;
}
.crdd-stat-val {
    color: #d1d1d1;
    font-weight: bold;
}
 
/* The Totals (Behavior, Utility, Stability) */
.crdd-stat-total {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #fff;
    font-weight: bold;
}
.crdd-stat-total-val {
    color: var(--void-accent);
    text-shadow: 0 0 5px rgba(255,255,255,0.2);
}
}
.comment-theme-skipper .mw-userlink { color: #21b0cd !important; }

Latest revision as of 18:35, 5 May 2026

/* ============================================================
   JADNIX CODEX: MEDIK VOID (FINAL MASTER)
   ============================================================ */

/* 1. ROOT VARIABLES */
:root {
    --void-accent: #a020f0; 
    --void-bg: #0a0a0f;
    --void-card: #13131a;
    --void-text: #d1d1d1;
    --void-hover: rgba(160, 32, 240, 0.4); /* Brighter Hover */
}

/* 2. NUCLEAR BACKGROUND FIX */
html, body, .medik-wrap, .container, .container-fluid, .row, #mw-wrapper {
    background-color: var(--void-bg) !important;
    background-image: none !important;
    color: var(--void-text) !important;
}

/* SCANLINES */
body::before {
    content: " ";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg, rgba(0, 0, 0, 0.15) 0px, rgba(0, 0, 0, 0.15) 1px, 
        transparent 1px, transparent 2px
    );
    z-index: 9999;
    pointer-events: none; 
}

/* 3. HEADER LAYOUT */
.navbar-collapse { display: flex !important; flex-basis: auto !important; }
.navbar-nav { flex-direction: row !important; align-items: center; }
.nav-item { margin-right: 15px !important; margin-left: 15px !important; }

/* Header Text */
.navbar-nav .nav-link, .dropdown-toggle {
    color: var(--void-text) !important;
    font-family: 'Consolas', monospace;
    font-size: 1.1em;
    padding-bottom: 5px;
}
.navbar-nav .nav-link:hover, .dropdown-toggle:hover {
    color: #ffffff !important;
    text-shadow: 0 0 5px var(--void-accent);
}
.nav-item.active .nav-link {
    font-weight: bold;
    color: #fff !important;
    border-bottom: 3px solid var(--void-accent);
}

/* 4. CONTENT CARD */
#content, .mw-body {
    background-color: var(--void-card) !important;
    border: 1px solid #333 !important;
    border-left: 5px solid var(--void-accent) !important;
    box-shadow: 0 0 30px rgba(0,0,0,0.8) !important;
    margin-top: 20px !important;
    padding: 30px !important;
    color: var(--void-text) !important;
}
.col-12, .col-md-9, .col-xl-9, .py-md-3 { background: transparent !important; }

/* 5. SIDEBAR NAVIGATION FIX */
#mw-navigation .nav-link:hover,
.sidebar .nav-link:hover {
    background-color: var(--void-hover) !important; 
    color: #fff !important;
    padding-left: 20px !important;
    opacity: 1 !important; 
}

/* 6. GLOBAL TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 { 
    color: #fff !important; 
    font-family: 'Consolas', monospace; 
    border-bottom: 1px solid #333; 
}
a { 
    color: var(--void-accent); 
    transition: 0.2s; 
}
a:hover { 
    color: #fff; 
    text-shadow: 0 0 5px var(--void-accent); 
    text-decoration: none; 
}

/* 7. DROPDOWNS */
.dropdown-menu { 
    background-color: var(--void-card) !important; 
    border: 1px solid var(--void-accent) !important; 
}
.dropdown-item { color: var(--void-text) !important; }
.dropdown-item:hover { 
    background-color: var(--void-accent) !important; 
    color: #fff !important; 
}

/* ============================================================
   FACTION THEMES
   ============================================================ */

/* DEALERS (Gold) */
body.theme-dealer { 
    --void-accent: #DAA520 !important; 
    --void-hover: rgba(218, 165, 32, 0.4) !important; 
    --font-family-system: 'Georgia', serif; 
}
body.theme-dealer h1, body.theme-dealer h2 {
    font-family: 'Georgia', serif; 
    color: #DAA520 !important;
}

/* SKIPPERS (Blue) */
body.theme-skipper { 
    --void-accent: #21b0cd !important; 
    --void-hover: rgba(33, 176, 205, 0.4) !important;
    --font-family-system: 'Consolas', monospace; 
}
body.theme-skipper h1, body.theme-skipper h2 {
    color: #21b0cd !important;
}

/* STILL (Purple) */
body.theme-still { 
    --void-accent: #a020f0 !important; 
    --void-hover: rgba(160, 32, 240, 0.4) !important;
}

/* ============================================================
   CRDD CALCULATOR
   ============================================================ */
#crdd-interface { background-color: #0a0a0f; border: 2px solid #21b0cd; padding: 20px; font-family: 'Consolas', monospace; color: #21b0cd; box-shadow: 0 0 20px rgba(33, 176, 205, 0.2); margin-top: 20px; max-width: 800px; }
.crdd-header { border-bottom: 1px dashed #21b0cd; padding-bottom: 10px; margin-bottom: 20px; text-align: right; font-size: 0.8em; opacity: 0.8; }
.crdd-section { margin-bottom: 30px; border: 1px solid #333; padding: 15px; background: #0f0f14; }
.crdd-section-title { background: #21b0cd; color: #000; padding: 5px 10px; font-weight: bold; display: inline-block; margin-bottom: 15px; }
.crdd-input-group { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.crdd-input-group label { flex: 1; font-size: 0.9em; }
.crdd-range { flex: 2; margin: 0 15px; accent-color: #21b0cd; }
.crdd-value-display { width: 30px; text-align: right; font-weight: bold; }
.crdd-skip-label { display: block; margin-bottom: 15px; color: #666; font-size: 0.8em; cursor: pointer; }
#crdd-final-result { border-top: 2px solid #21b0cd; padding-top: 20px; margin-top: 20px; text-align: center; font-size: 1.2em; font-weight: bold; min-height: 100px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: #0d1a1d; }
.crdd-rating-text { font-size: 2em; text-shadow: 0 0 10px currentColor; margin-top: 10px; }
@media only screen and (max-width: 768px) {
    .crdd-input-group { display: flex !important; flex-direction: column !important; align-items: flex-start !important; margin-bottom: 25px !important; width: 100% !important; }
    .crdd-input-group label { width: 100% !important; margin-bottom: 10px !important; font-size: 1.2em !important; }
    .crdd-range { width: 100% !important; margin: 10px 0 !important; height: 40px !important; }
    .crdd-value-display { width: 100% !important; text-align: right !important; font-size: 1.2em !important; color: #fff !important; }
    #crdd-interface { padding: 10px !important; width: 100% !important; box-sizing: border-box !important; }
}

/* ============================================================
   SPLASH SCREEN (FULLSCREEN OVERRIDE & VARIABLES)
   ============================================================ */

/* 1. HIDE ALL INTERFACE ELEMENTS */
body.page-Warning #mw-navigation,   /* The Sidebar */
body.page-Warning #mw-navbar,       /* The Header */
body.page-Warning .navbar,          /* Bootstrap Header */
body.page-Warning .mw-footer,       /* The Footer */
body.page-Warning .sidebar,         /* Legacy Sidebar */
body.page-Warning aside,            /* Edit Tools */
body.page-Warning #catlinks {       /* Categories */
    display: none !important;
}

/* 2. REMOVE PADDING/MARGINS FROM BODY */
body.page-Warning #content,
body.page-Warning .mw-body {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important; /* Remove the Purple Left Border */
    box-shadow: none !important;
    background: transparent !important;
}

/* 3. THE FULLSCREEN CONTAINER */
body.page-Warning .splash-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: var(--void-bg) !important;
    z-index: 2147483647 !important; /* Maximum Integer Value */
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* 4. INNER BOX STYLING */
.splash-inner-wrapper {
    width: 100%;
    max-width: 500px;
    border: 1px solid #333;
    border-top: 4px solid var(--void-accent); /* Uses the Dynamic Variable */
    background: var(--void-card);
    padding: 30px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    text-align: center;
}

/* 5. TEXT & BUTTONS */
.splash-title {
    font-family: 'Consolas', monospace;
    font-size: 2em;
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 0 10px var(--void-accent);
}
.splash-subtitle {
    color: var(--void-accent);
    font-size: 0.8em;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-transform: uppercase;
}
.splash-btn {
    display: inline-block;
    border: 1px solid var(--void-accent);
    padding: 12px 24px;
    color: #fff !important;
    text-decoration: none;
    font-family: 'Consolas', monospace;
    margin: 20px 0;
    transition: all 0.3s;
}
.splash-btn:hover {
    background: var(--void-accent);
    color: #000 !important;
    box-shadow: 0 0 15px var(--void-accent);
}

/* 6. VARIABLE MAPPING (Fixes the Gold/Blue Randomizer) */
body.splash-gold { 
    --void-accent: #DAA520 !important; 
    --void-hover: rgba(218, 165, 32, 0.4) !important;
}
body.splash-blue { 
    --void-accent: #21b0cd !important; 
    --void-hover: rgba(33, 176, 205, 0.4) !important;
}
body.splash-purple { 
    --void-accent: #a020f0 !important; 
    --void-hover: rgba(160, 32, 240, 0.4) !important;
}

/* ============================================================
   HOME PAGE NAVIGATION
   ============================================================ */
.nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
.nav-card { position: relative; background-color: #0f0f14; border: 1px solid #333; height: 120px; overflow: hidden; text-decoration: none !important; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: all 0.3s ease; }
.nav-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.1; transition: opacity 0.3s ease, transform 0.5s ease; z-index: 1; filter: grayscale(100%); }
.nav-content { z-index: 2; text-align: center; text-shadow: 0 2px 5px rgba(0,0,0,0.8); }
.nav-title { font-family: 'Consolas', monospace; font-size: 1.2em; font-weight: bold; color: #fff; display: block; background: rgba(0,0,0,0.6); padding: 5px 10px; }
.nav-sub { font-family: 'Arial', sans-serif; font-size: 0.7em; color: #aaa; text-transform: uppercase; letter-spacing: 2px; margin-top: 5px; display: block; }
.nav-card:hover { border-color: var(--void-accent); box-shadow: 0 0 15px var(--void-accent); transform: translateY(-2px); }
.nav-card:hover .nav-bg { opacity: 0.5; transform: scale(1.1); filter: grayscale(0%); }
.nav-card:hover .nav-title { color: var(--void-accent); background: #000; }

/* ============================================================
   PERSONNEL FILE
   ============================================================ */
.personnel-file { background-color: #0f0f14; border: 1px solid #333; border-top: 4px solid var(--void-accent); max-width: 600px; margin: 0 auto; font-family: 'Consolas', monospace; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.id-header { background-color: #1a1a24; padding: 10px 15px; border-bottom: 1px solid #333; display: flex; justify-content: space-between; font-size: 0.9em; color: #888; letter-spacing: 1px; }
.id-clearance { color: var(--void-accent); font-weight: bold; border: 1px solid var(--void-accent); padding: 0 5px; border-radius: 3px; }
.id-body { padding: 20px; display: flex; align-items: center; gap: 20px; }
.void-avatar { width: 100px; height: 100px; background-color: #000; border: 1px solid #333; display: flex; align-items: center; justify-content: center; color: #333; font-size: 2em; }
.id-details h2 { margin: 0 0 10px 0; font-size: 1.5em; color: #fff !important; border: none; text-shadow: 0 0 10px var(--void-accent); }
.id-details ul { list-style: none; margin: 0; padding: 0; font-size: 0.9em; color: #ccc; }
.id-details li { margin-bottom: 5px; }
.id-details strong { color: var(--void-accent); margin-right: 5px; }
@media (max-width: 600px) { .id-body { flex-direction: column; text-align: center; } }

/* ============================================================
   CONVENIENT DISCUSSIONS (VOID THEME PATCH)
   ============================================================ */

/* 1. Comment Layers & Backgrounds */
.cd-comment-part, 
.cd-comment-part-first, 
.cd-comment-part-last {
    background-color: transparent !important;
    color: var(--void-text) !important;
}

/* 2. The "Reply" Button */
.cd-replyButton {
    font-family: 'Consolas', monospace;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8em;
    color: var(--void-accent) !important;
    opacity: 0.7;
}
.cd-replyButton:hover {
    opacity: 1;
    text-shadow: 0 0 5px var(--void-accent);
}

/* 3. The Reply Form (Text Area) */
.cd-commentForm-panel {
    background-color: var(--void-card) !important;
    border: 1px solid var(--void-accent) !important;
    padding: 15px;
}

.cd-commentForm-textarea {
    background-color: #050505 !important;
    color: #00ff9f !important; /* Terminal Green Typing */
    border: 1px solid #333 !important;
    font-family: 'Consolas', monospace !important;
}

/* 4. Form Buttons (Reply / Cancel) */
.cd-button-action, .oo-ui-buttonElement-button {
    background-color: #1a1a24 !important;
    color: #fff !important;
    border: 1px solid var(--void-accent) !important;
}

/* 5. Popups & Dialogs */
.cd-dialog-panel, .oo-ui-window-frame {
    background-color: var(--void-bg) !important;
    border: 1px solid var(--void-accent) !important;
    color: var(--void-text) !important;
}

/* 6. Thread Lines (The visual threading on the left) */
.cd-thread-line {
    border-left-color: #333 !important;
}
.cd-thread-line:hover {
    border-left-color: var(--void-accent) !important;
}

/* ============================================================
   ONYX REGISTRY: VISUALS & BAR GRAPHS
   ============================================================ */

/* 1. The Main Ledger Container */
.onyx-ledger {
    width: 100%;
    border-collapse: collapse;
    background: #050505;
    font-family: 'Consolas', monospace;
    border: 1px solid #333;
}

/* 2. Tier Headers (The Telescopic Row look) */
.onyx-tier-header {
    background: #13131a;
    color: #DAA520; /* Dealer Gold */
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid #DAA520;
    cursor: pointer;
}

/* 3. The Stat Bar Graphs */
.stat-bar-container {
    width: 100px;
    height: 8px;
    background: #1a1a24;
    border: 1px solid #333;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.stat-bar-fill {
    height: 100%;
    /* width is removed from here so the template can set it */
    background: #21b0cd; 
    box-shadow: 0 0 8px rgba(33, 176, 205, 0.6);
    transition: width 0.8s ease-out;
}

/* Ensure the containers don't allow overflow */
.stat-bar-container {
    background: #111;
    border: 1px solid #222;
    height: 6px;
    width: 100%;
    position: relative;
    overflow: hidden; /* Keeps the bars inside the box */
}

/* Specific colors for classes */
.row-class-s { border-left: 4px solid #fff; box-shadow: inset 5px 0 10px rgba(255,255,255,0.1); }
.row-class-a { border-left: 4px solid #a020f0; }
.row-class-b { border-left: 4px solid #DAA520; }
.row-class-c { border-left: 4px solid #666; }

/* 4. The Interactive Search/Jump Bar */
#onyx-scanner-input {
    background: #000;
    color: #DAA520;
    border: 1px solid #DAA520;
    padding: 10px;
    width: 100%;
    font-family: 'Consolas', monospace;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.2);
}

.stat-container { display: grid; grid-template-columns: 35px 1fr; gap: 2px; align-items: center; padding: 5px 0; }
.stat-label { font-size: 0.7em; color: #555; font-weight: bold; }
.stat-bar-container { background: #111; border: 1px solid #222; height: 6px; width: 100%; position: relative; }
.stat-bar-fill { background: #21b0cd; height: 100%; box-shadow: 0 0 8px rgba(33, 176, 205, 0.5); }
.onyx-ledger th { background: #1a1a24; color: #DAA520; padding: 10px; text-align: left; border: 1px solid #333; text-transform: uppercase; font-size: 0.8em; }
.onyx-ledger td { padding: 10px; border: 1px solid #222; vertical-align: top; }
.onyx-row { transition: all 0.3s ease; }

/* ============================================================
   ONYX REGISTRY: THRESHOLD LEGEND
   ============================================================ */
.onyx-legend-bar {
    display: flex;
    justify-content: space-between;
    background: #0f0f14;
    border: 1px solid #333;
    padding: 8px 15px;
    margin-bottom: 10px;
    font-family: 'Consolas', monospace;
    font-size: 0.75em;
}
.threshold-item { color: #888; }
.t-label { color: #555; font-weight: bold; }
.t-value { color: #DAA520; text-shadow: 0 0 5px rgba(218, 165, 32, 0.3); }

/* Mobile optimization for the legend */
@media (max-width: 600px) {
    .onyx-legend-bar { flex-direction: column; gap: 5px; text-align: left; }
}

/* ============================================================
   SUBJECT DOSSIER: MASTER STYLES
   ============================================================ */

/* ============================================================
   SUBJECT DOSSIER: MASTER STYLES (FIXED & TABBED)
   ============================================================ */

/* 1. THE INFOBOX (SIDE CARD) */
.dossier-card {
    float: right;
    width: 350px;
    background: #0f0f14;
    border: 1px solid #333;
    border-top: 5px solid var(--void-accent);
    margin: 0 0 20px 20px;
    font-family: 'Consolas', monospace;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    clear: right;
}

.dossier-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px; /* Added more breathing room */
    font-size: 0.85em;
    border-bottom: 1px solid #1a1a24;
}

.dossier-label { 
    color: #888; 
    font-weight: bold; 
    padding-right: 10px; /* Prevents text from sticking to value */
}
.dossier-value { color: #d1d1d1; text-align: right; flex: 1; }

.dossier-image { 
    background: #050505; 
    text-align: center; 
    overflow: hidden;
}
.dossier-image img { 
    max-width: 100% !important; 
    height: auto !important; 
}

/* 2. DOSSIER STAT BARS (Fixed Height) */
.dossier-stats { padding: 15px; background: #0a0a0f; }
.dossier-stat-item { margin-bottom: 8px; }
.dossier-stat-label { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.75em; 
    margin-bottom: 2px; 
    color: #aaa;
}

/* 3. ART LOADOUT (CLICKABLE TABS) */
.loadout-container {
    margin-top: 20px;
    border: 1px solid #333;
    background: #0a0a0f;
}

/* Tab Headers */
.loadout-navigation {
    display: flex !important;
    flex-direction: row !important; /* Force side-by-side */
    flex-wrap: nowrap !important;
    background: #1a1a24 !important;
    border-bottom: 1px solid #333 !important;
    overflow-x: auto; /* Allow horizontal scroll on phones */
}

.loadout-navigation span {
    padding: 10px 15px;
    font-size: 0.75em;
    color: #666;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    border-right: 1px solid #333;
}

.loadout-navigation span:hover { color: #fff; background: #222; }

/* The Content Area */
.loadout-content {
    padding: 20px;
    min-height: 100px;
}

/* 4. MOBILE OVERRIDE (Stack everything) */
@media (max-width: 991px) {
    .dossier-card {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }
}

/* ART LOADOUT STYLING */
.loadout-matrix { border: 1px solid #333; background: #0a0a0f; }
.loadout-navigation { display: flex; background: #1a1a24; border-bottom: 1px solid #333; overflow-x: auto; }

.loadout-tab {
    flex: 1 0 auto !important; /* Don't let them shrink */
    text-align: center !important;
    padding: 12px 15px !important;
    background: transparent !important;
}

.loadout-tab:hover { color: #fff; background: #222; }

/* The Active Tab follows the Faction Color */
.loadout-tab.active {
    background: #13131a;
    color: var(--void-accent);
    border-top: 2px solid var(--void-accent);
}

.loadout-content { padding: 25px; line-height: 1.6; }

/* ART LOADOUT FIXES */
.loadout-container {
    margin-top: 20px;
    border: 1px solid #333;
    background: #0a0a0f !important; /* DARK BACKGROUND */
}

.loadout-navigation {
    display: flex !important;
    flex-direction: row !important; /* FORCE HORIZONTAL */
    background: #1a1a24 !important;
    border-bottom: 1px solid #333 !important;
    overflow-x: auto;
}

.loadout-tab {
    padding: 12px 20px !important;
    font-size: 0.75em !important;
    color: #666 !important;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    border-right: 1px solid #333 !important;
}

.loadout-content {
    background: #13131a !important; /* Matches Dossier dark grey */
    color: #d1d1d1 !important;
    border: none !important;
}

/* Fix the White Box in loadout (CDX/Bootstrap override) */
.loadout-content, .loadout-pane, .loadout-content p, .loadout-content ul, .loadout-content li {
    background: transparent !important;
    color: #d1d1d1 !important;
}

/* STAT BAR FIX: Remove forced 100% width */
.stat-bar-fill {
    height: 100%;
    /* width is handled by calc() in the template */
    background: var(--void-accent) !important;
    box-shadow: 0 0 10px var(--void-accent);
}

/* DOSSIER IMAGE RESPONSIVENESS */
.dossier-image img {
    max-width: 100% !important;
    height: auto !important;
}

/* DOSSIER IMAGE ZOOM SYSTEM */
.dossier-image-box {
    width: 350px;
    height: 350px;
    background-color: #050505;
    background-size: cover;      /* Zooms image to fill the square */
    background-position: center; /* Keeps face centered */
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    font-family: 'Consolas', monospace;
    font-size: 0.8em;
    letter-spacing: 2px;
    border-bottom: 1px solid #333;
}

/* Mobile Fix for the Image box */
@media (max-width: 991px) {
    .dossier-image-box {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1; /* Maintains square shape on phones */
    }
}
/* ============================================================
   JADNIX FORUM ENGINE (CONVENIENT DISCUSSIONS OVERHAUL)
   ============================================================ */

/* 1. THE COMMENT CARD */
.cd-comment-part {
    background-color: #13131a !important; 
    border: 1px solid #333 !important;
    border-radius: 4px;
    padding: 15px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    display: block !important; /* Ensure vertical stacking */
    overflow: hidden;
}

/* 2. THE SIGNATURE (Simple Header Look) */
.cd-signature {
    display: block;
    background: #1a1a24;
    padding: 8px 15px !important;
    margin: 0 0 10px 0 !important; /* Removed negative margins */
    border-bottom: 1px solid #333;
    font-family: 'Consolas', monospace;
    font-size: 0.85em;
    color: #888 !important;
}

.cd-signature .mw-userlink {
    color: var(--void-accent) !important;
    font-weight: bold;
    text-transform: uppercase;
}

/* 3. THREADING */
.cd-comment-level:not(.cd-comment-level-0) {
    border-left: 3px solid #333 !important;
    margin-left: 20px !important;
    padding-left: 15px !important;
}

/* 4. EMERGENCY IMAGE KILLER */
/* If any ghost script tries to inject an image, this hides it */
.cd-comment-avatar, .j-avatar-img, .cd-comment-part img {
    display: none !important;
}

/* 5. ACTION BUTTONS */
.cd-comment-actions {
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px dashed #222;
}
/* ============================================================
   MISC THINGS I DON'T KNOW WHERE ELSE TO PUT
   ============================================================ */

/* Remove the "Powered By" icons, and icons in the footer in general */
#footer-icons, .footer-icons {
    display: none !important;
}

/* Special footer look to fit the site theme */
.mw-footer {
    background-color: #050505 !important;
    border-top: 1px solid #333 !important;
    font-family: 'Consolas', monospace;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mw-footer a {
    color: #555 !important;
}

.mw-footer a:hover {
    color: var(--void-accent) !important;
    text-shadow: 0 0 5px var(--void-accent);
}

/* Hide the Convenient Discussions 'Run once' link in the footer */
#footer-places-convenient-discussions-run {
    display: none !important;
}

/* ============================================================
   JADNIX CONVENIENT DISCUSSIONS: PREVIEW & DIFF PATCH
   ============================================================ */

/* 1. Fix the blinding white Preview Box */
.cd-commentForm-previewArea {
    background-color: #050505 !important; /* Darkest terminal background */
    color: #d1d1d1 !important;
    border: 1px solid var(--void-accent) !important;
    margin-top: 10px !important;
    padding: 10px !important;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8) !important;
}

/* 2. Fix the blinding white "View Changes" (Diff) Table */
table.diff, .diff td, .diff th {
    background-color: #0f0f14 !important;
    border-color: #333 !important;
    color: #d1d1d1 !important;
}

/* The empty/unchanged context lines */
td.diff-context {
    background-color: #0a0a0f !important;
    color: #666 !important;
    border-color: #222 !important;
}

/* The + / - Markers */
td.diff-marker {
    background-color: #050505 !important;
    color: #888 !important;
    border: none !important;
    font-weight: bold;
}

/* Lines that were ADDED (+) */
td.diff-addedline {
    background-color: #13131a !important;
    border-color: var(--void-accent) !important;
}
td.diff-addedline .diffchange {
    background-color: rgba(160, 32, 240, 0.4) !important; /* Semi-transparent purple highlight */
    color: #fff !important;
    font-weight: bold;
    border-radius: 2px;
}

/* Lines that were REMOVED (-) */
td.diff-deletedline {
    background-color: #1a0d0d !important; /* Very dark red */
    border-color: #ff4500 !important;
}
td.diff-deletedline .diffchange {
    background-color: rgba(255, 69, 0, 0.3) !important;
    color: #ffcaaf !important;
    text-decoration: line-through;
    border-radius: 2px;
}

/* 3. The "Changes" Header Text */
.cd-commentForm-diff > div:first-child {
    color: var(--void-accent) !important;
    font-weight: bold !important;
    font-family: 'Consolas', monospace;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* ============================================================
   R&R CORPS: SEAM FRACTURE TRACKER
   ============================================================ */

/* The Main Scrolling Viewport */
.seam-tracker-viewport {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0 40px 0;
    background: #0a0a0f;
    border: 1px solid #21b0cd; /* Skipper Blue Border */
    box-shadow: inset 0 0 20px rgba(33, 176, 205, 0.1);
}

/* Custom Scrollbar for the Tracker */
.seam-tracker-viewport::-webkit-scrollbar { height: 10px; }
.seam-tracker-viewport::-webkit-scrollbar-track { background: #050505; border-top: 1px solid #333; }
.seam-tracker-viewport::-webkit-scrollbar-thumb { background: #21b0cd; border-radius: 5px; }

/* The Track holding the Cards */
.seam-track {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    align-items: flex-start; /* Keeps cards from stretching to match the tallest one */
}

/* The Individual Seam Card */
.seam-card {
    flex: 0 0 280px; /* Fixed width, won't shrink */
    background: #13131a;
    border: 1px solid #333;
    border-top: 4px solid var(--seam-color, #888);
    display: flex;
    flex-direction: column;
    font-family: 'Consolas', monospace;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.8), 0 0 15px var(--seam-color, #888);
}

/* Card Header (ID & Dot) */
.seam-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #1a1a24;
    border-bottom: 1px solid #333;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
}

/* The Glowing Stability Dot */
.seam-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--seam-color, #888);
    box-shadow: 0 0 8px var(--seam-color, #888);
}

/* Image / Static Area */
.seam-card-image {
    height: 160px;
    background: #050505;
    border-bottom: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.seam-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* "NO SIGNAL" CSS Static Animation */
.seam-static {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, #111 0px, #222 2px, #111 4px);
    animation: static-flicker 0.1s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 1.5em;
    letter-spacing: 2px;
}

@keyframes static-flicker {
    0% { background-position: 0 0; }
    50% { background-position: 10px 10px; }
    100% { background-position: -10px -5px; }
}

/* Epithet / Name Area */
.seam-card-epithet {
    padding: 15px;
    text-align: center;
    color: #d1d1d1;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Nested Seams (The Dropdown) */
.seam-nested-container {
    max-height: 0;
    overflow: hidden;
    background: #0a0a0f;
    transition: max-height 0.4s ease-in-out;
}

/* Expands on desktop hover OR mobile tap/focus */
.seam-card:hover .seam-nested-container, 
.seam-card:focus-within .seam-nested-container {
    max-height: 300px; 
    border-top: 1px dashed #333;
}

.nested-seam-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    font-size: 0.8em;
    border-bottom: 1px solid #111;
    color: #888;
    transition: background 0.2s, color 0.2s;
}

.nested-seam-item:hover {
    background: #1a1a24;
    color: #fff;
    cursor: crosshair;
}

/* Stability Color Variables */
.rating-anchored { --seam-color: #00ff9f; } /* Green */
.rating-volatile { --seam-color: #ffd700; } /* Yellow */
.rating-fractured { --seam-color: #ff4500; } /* Red */
.rating-realm { --seam-color: #a020f0; } /* Purple */
.rating-null { --seam-color: #888888; } /* Grey */

/* ============================================================
   JADNIX SEAM PAGE TEMPLATE: CUSTODY SPINE & MARGINALIA
   ============================================================ */

/* 1. The Cinematic Banner */
.seam-page-banner {
    position: relative;
    width: 100%;
    height: 250px;
    background: #050505;
    border: 1px solid #333;
    border-bottom: 3px solid #fff; /* Changes dynamically via inline style */
    margin-bottom: 30px;
    overflow: hidden;
}

/* 2. Banner Metadata Overlay */
.seam-banner-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(10,10,15,1), rgba(10,10,15,0.8) 60%, transparent);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.seam-banner-title {
    font-family: 'Consolas', monospace;
}
.seam-banner-title h1 {
    font-size: 2.5em;
    color: #fff !important;
    border: none !important;
    margin: 0 0 5px 0 !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}
.seam-banner-title h2 {
    font-size: 1.2em;
    color: #aaa !important;
    border: none !important;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 3. The Shifting Custody Spine */
.seam-custody-section {
    padding: 0 0 40px 30px;
    margin-bottom: 0;
    font-size: 1.05em;
    line-height: 1.6;
}
.custody-still { border-left: 5px solid #a020f0; }
.custody-skipper { border-left: 5px solid #21b0cd; }
.custody-dealer { border-left: 5px solid #DAA520; }

.seam-custody-section h2 {
    margin-top: 0 !important;
    padding-top: 10px;
}

/* 4. The Marginalia (Injection Boxes) */
.seam-injection {
    background: #13131a;
    border: 1px solid #333;
    padding: 15px 20px;
    margin: 20px 0 20px 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    font-size: 0.95em;
    position: relative;
    overflow: hidden; /* Fixes the overlap for injection note boxes */
}

/* Injection Faction Colors */
.inj-still { border-left: 4px solid #a020f0; }
.inj-skipper { border-left: 4px solid #21b0cd; }
.inj-dealer { border-left: 4px solid #DAA520; }

.seam-injection-header {
    font-family: 'Consolas', monospace;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    border-bottom: 1px dashed #333;
    padding-bottom: 5px;
}

.inj-still .seam-injection-header { color: #a020f0; }
.inj-skipper .seam-injection-header { color: #21b0cd; }
.inj-dealer .seam-injection-header { color: #DAA520; }

/* ============================================================
   JADNIX SEAM PAGE: ATTACHED IMAGE GALLERY
   ============================================================ */

/* The Collapsible Wrapper */
.seam-gallery-wrapper {
    background: #0f0f14;
    border: 1px solid #333;
    margin-top: 20px;
    padding: 10px;
}

/* The Horizontal Scroll Track */
.seam-gallery-viewport {
    width: 100%;
    overflow-x: auto;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 1px dashed #333;
}
.seam-gallery-viewport::-webkit-scrollbar { height: 8px; }
.seam-gallery-viewport::-webkit-scrollbar-track { background: #050505; }
.seam-gallery-viewport::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }

.seam-gallery-track {
    display: flex;
    gap: 15px;
}

/* The Image Cards */
.seam-gallery-card {
    flex: 0 0 250px;
    height: 180px;
    background: #050505;
    border: 1px solid #222;
    position: relative;
    cursor: zoom-in; /* Tells the user they can click it */
    overflow: hidden;
}

.seam-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.seam-gallery-card:hover img {
    transform: scale(1.05); /* Slight hover zoom */
}

/* ============================================================
   JADNIX GALLERY TOGGLE FIX (CENTERED DRAWER BAR)
   ============================================================ */

/* Make sure the box doesn't collapse on itself */
.seam-gallery-wrapper {
    clear: both;
}

/* Override the default MediaWiki right-float */
.seam-gallery-wrapper .mw-collapsible-toggle {
    float: none !important;
    text-align: center !important;
    display: block !important;
    width: 100%;
    padding: 5px 0;
    font-family: 'Consolas', monospace;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Style the actual link text */
.seam-gallery-wrapper .mw-collapsible-toggle a {
    color: #888 !important;
    text-decoration: none !important;
    transition: color 0.2s, text-shadow 0.2s;
}

/* Make it light up when they mouse over it */
.seam-gallery-wrapper .mw-collapsible-toggle a:hover {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* ============================================================
   JADNIX TOC SPACING FIX
   ============================================================ */
#toc, .toc {
    max-width: 350px !important; /* Prevents it from getting too wide */
    margin-left: 30px !important; /* Pushes it away from the text on the left */
    margin-bottom: 20px !important; 
}

/* ============================================================
   JADNIX CRDD RECEIPT (SIDEBAR INFOBOX)
   ============================================================ */
.crdd-receipt-wrapper {
    float: right;
    width: 320px;
    background: #0f0f14;
    border: 1px solid #333;
    border-top: 4px solid var(--void-accent); /* Inherits faction color */
    margin: 0 0 20px 20px;
    font-family: 'Consolas', monospace;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    clear: right;
}

.crdd-receipt-header {
    background: #1a1a24;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: var(--void-accent);
    border-bottom: 1px solid #333;
    letter-spacing: 1px;
}

/* Override default MediaWiki toggle specifically for the Receipt */
.crdd-receipt-wrapper .mw-collapsible-toggle {
    float: none !important;
    text-align: center !important;
    display: block !important;
    width: 100%;
    padding: 6px 0;
    background: #050505;
    border-bottom: 1px solid #333;
    font-size: 0.85em;
}

.crdd-receipt-wrapper .mw-collapsible-toggle a {
    color: #888 !important;
    text-decoration: none !important;
}

.crdd-receipt-wrapper .mw-collapsible-toggle a:hover {
    color: var(--void-accent) !important;
}

/* The Data Blocks */
.crdd-section-block {
    padding: 12px 15px;
    border-bottom: 1px dashed #333;
}
.crdd-section-block:last-child {
    border-bottom: none;
}

.crdd-section-title {
    color: #000 !important; /* Force black text */
    background-color: var(--void-accent) !important; /* Force colored background */
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9em;
    padding: 4px 8px; /* Give the text some breathing room inside the box */
    display: inline-block; /* Stop it from stretching across the whole receipt */
}

.crdd-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #888;
    margin-bottom: 4px;
}
.crdd-stat-val {
    color: #d1d1d1;
    font-weight: bold;
}

/* The Totals (Behavior, Utility, Stability) */
.crdd-stat-total {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #fff;
    font-weight: bold;
}
.crdd-stat-total-val {
    color: var(--void-accent);
    text-shadow: 0 0 5px rgba(255,255,255,0.2);
}