/* ==========================================================
   1. GLOBAL VARIABLES (THE CONTROL PANEL)
   ========================================================== */
:root {
    /* Colors */
    --lotro-gold: #f7cb4d; 
    --lotro-bg: #000014; /* Reverted to original hex code */


    
    /* Math Engine (Do not touch these) */
    --sidebar-top-clearance: calc(var(--header-height) + 20px);
}

/* ==========================================================
   2. TYPOGRAPHY
   ========================================================== */
.heading1, .heading2 {
    color: var(--lotro-gold);
    border: 1px solid var(--lotro-gold);
    padding: 10px;
}

/* ==========================================================
   3. HEADER (EXACTLY AS PROVIDED)
   ========================================================== */
#lotro-hub-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
   /* background-color: #111111 !important;*/
    border-bottom: 2px solid var(--lotro-gold) !important;
}

body {
    margin-top: var(--header-height) !important; 
}

/* Admin Bar Fixes */
.admin-bar #lotro-hub-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar #lotro-hub-header {
        top: 46px !important;
    }
} 


/* ==========================================================
   ICON LIST: Two-column Icon List — implemented tweak
   (class: two-col-list) — columns forced and tighter gap
   ========================================================== */

/* Preferred: target by CSS class added to the Icon List widget */
.two-col-list .elementor-icon-list-items,
.elementor-widget-icon-list.two-col-list .elementor-icon-list-items {
  -webkit-columns: 2 !important;
  -moz-columns: 2 !important;
  columns: 2 !important;
  column-gap: 8px !important;
  list-style: none;
}

/* If you prefer to target a specific widget ID, replace WIDGET_ID below with the actual ID */
#WIDGET_ID .elementor-icon-list-items {
  -webkit-columns: 2 !important;
  -moz-columns: 2 !important;
  columns: 2 !important;
  column-gap: 8px !important;
  list-style: none;
}

/* Prevent items splitting across columns */
.two-col-list .elementor-icon-list-item,
#WIDGET_ID .elementor-icon-list-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 8px;
}

/* Keep icon vertically aligned with multi-line text */
.two-col-list .elementor-icon-list-icon,
#WIDGET_ID .elementor-icon-list-icon {
  display: inline-block;
  vertical-align: top;
  padding-top: 4px;
}

/* Stronger specificity if theme overrides rules */
body .elementor-widget-icon-list.two-col-list .elementor-icon-list-items {
  columns: 2 !important;
  -webkit-columns: 2 !important;
  -moz-columns: 2 !important;
  column-gap: 8px !important;
}

/* Responsive: collapse to single column on small screens */
@media (max-width: 767px) {
  .two-col-list .elementor-icon-list-items,
  #WIDGET_ID .elementor-icon-list-items {
    columns: 1 !important;
    -webkit-columns: 1 !important;
    -moz-columns: 1 !important;
    column-gap: 0 !important;
  }
}


/* --- UNIFIED SIDEBAR ELEMENT RESETS --- */
.lh-sidebar-search-block {
    margin-bottom: 20px;
    width: 100%;
}

/* Form factor overrides to adapt homepage search engine into sidebar proportions */
.sidebar-search-override {
    padding: 4px 4px 4px 16px !important;
    background: rgba(5, 10, 31, 0.90) !important;
}
.sidebar-btn-override {
    height: 36px !important;
    padding: 0 18px !important;
    font-size: 0.85rem !important;
}

/* --- THE AUTOMATED STICKY TOC COMPONENT --- */
.lh-toc-container {
    background: rgba(5, 10, 31, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    margin-bottom: 25px;
    box-sizing: border-box;
    
    /* ELITE SCROLL MECHANIC: Locks to screen view once user scrolls past search */
    position: sticky;
    top: 100px; /* Adjust this value if you have an active top admin bar or floating header */
    z-index: 100;
}

.lh-toc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Philosopher', serif;
    color: #ffffff;
    font-size: 1.2rem;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}
.lh-toc-icon {
    color: var(--lotro-gold, #f7cb4d);
}

.lh-toc-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lh-toc-link {
    color: #b0b5c1;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}
.lh-toc-link:hover {
    color: var(--lotro-gold, #f7cb4d);
    padding-left: 4px;
}

/* Elegant indentation tree nesting */
.lh-level-h2 { font-weight: 500; }
.lh-level-h3 {
    padding-left: 18px;
    font-size: 0.9rem;
}
.lh-level-h3 .lh-toc-link {
    color: #8a92a6;
}