
@import url('https://googleapis.com');

#backToTop {
   
    cursor: pointer;
  
}

#backToTop:hover {
  background-color: white;
  color: rgb(100.096,98.56,167.68)
}

#refreshBtn {
     
    cursor: pointer;
    
}

/* #refreshBtn:hover {
    background-color: white;
  color: rgb(100.096,98.56,167.68)
} */

.grid-container {
    display: grid;
    position: relative;
    grid-template-columns: 1fr 3fr;
    padding-left: 0;
    /* justify-self: start; */
    gap: 20px; /* Optional spacing between columns */
}

.column_R {
  background: rgb(255,255,255);
  padding: 20px;
  padding-top: 0;
  padding-left: 0;

}
.column_L {
    place-items: center;
  background: rgb(255,255,255);
  padding: 10px;
  padding-right: 0;
  /* justify-self: start; */
}

.image-container {
  width: 30%; /* Or your 1.5fr / 1fr width from the grid */
  overflow: hidden;
    display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center;     /* Center vertically */
}

.image-container img {
  width: 100%;    /* Makes image fill the div width */
  height: auto;   /* Maintains aspect ratio */
  display: block; /* Removes tiny gap at bottom */

}

.regals {
    place-items: center;
    padding: 50px;
    justify-content: center; /* Center horizontally */
  align-items: center;     /* Center vertically */
}

.text-perfect-centered {
  /* display: flex; */
  /*flex-direction: column;   /* Keeps text stacked vertically */
  /*justify-content: center;  /* Centers vertically */
  align-items: center;      /* Centers horizontally */
  text-align: center;       /* Ensures multi-line text is centered */
  height: 100%;             /* Requires a height to center vertically */
  font-weight: normal;
  padding-top: 50px;
  line-height: 1.5;
}

/* Basic Layout & Styling */
.outerBox { font-family: 'PT Serif', Georgia, 'Times New Roman', serif; padding: 1px; }

/* .boxSubstrate { border: 1px solid #ddd; padding: 15px; margin-bottom: 10px; background: #fff; } */

.gray { color: rgb(100.096,98.56,167.68); 
    margin-right: 4px; 
    font-weight: bold; 
    font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
    font-optical-sizing: auto;
    font-style: normal;}
.text_size_x2 {
    font-size: 50px;
    padding: 1px;
}

        /* --- POPUP STYLES --- */

.popup-trigger::before {
    content: "";
    position: absolute;
    
    /* Position and Size */
    top: 50%;
    left: 50%;
    width: 4px;  /* Adjust these to make the "sharp" point */
    height: 4px; 
    
    /* Center the tiny box */
    transform: translate(-50%, -50%);
    
    /* 3. This box IS the trigger */
    pointer-events: auto; 
    background: transparent; /* Keep it invisible */
    z-index: 10;
}

.popup-content {
    visibility: hidden;
    width: 220px;
    background-color: rgba(255, 255, 255, 0.1); /* Slight glass effect, or use 'transparent' */
    backdrop-filter: blur(2px); /* Optional: makes text more readable if background is busy */
    color: #004085; /* Green font */
    border: 1px solid #004085;; /* Green border to define the transparent box */
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    line-height: 1.4;
    font-weight: bold;
}

/* Arrow at the bottom of the popup (made green) */
.popup-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #004085;
}

/* Show the popup on hover */
.popup-trigger:hover .popup-content {
    visibility: visible;
    opacity: 1;
}

.popup-trigger {
    position: relative;
    display: inline-block;
    /* cursor: help; */
    font-weight: bold;
}

.popup-content {
    visibility: hidden;
    width: 240px;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    text-align: center;
    border-radius: 6px;
    padding: 12px;
    position: absolute;
    z-index: 10;
    bottom: 110%; /* Spaced slightly for easier hover transition */
    left: 50%;
    margin-left: -120px;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid;
}

/* Ensure the popup stays open when moving mouse from trigger to content */
.popup-trigger::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 20px;
    top: -20px;
    left: 0;
}

.popup-trigger:hover .popup-content {
    visibility: visible;
    opacity: 1;
}

/* Green Theme (Agentic AI) */
.green-theme { color: #004085; border-bottom: 1px dotted #004085; }
.green-theme .popup-content { color: #004085; border-color: #004085; }

/* Blue Theme (References) */
.blue-theme { color: #004085; border-bottom: 1px dotted #004085; }
.blue-theme .popup-content { color: #004085; border-color: #004085; }

/* Reference Popup Button Styling */
.ref-text { margin-bottom: 10px; font-size: 14px; font-weight: normal; }

.btn-group button {
    display: block;
    width: 100%;
    margin: 4px 0;
    padding: 4px;
    font-size: 14px;
    cursor: pointer;
    background: rgba(0, 64, 133, 0.1);
    border: 1px solid #004085;
    color: #004085;
    border-radius: 4px;
}
.btn-group button:hover {
    background: #004085;
    color: white;
}

body { font-family: 'PT Serif', Georgia, 'Times New Roman', serif;  line-height: 1; margin: 20px; color: #333; }

.document-container { 
    max-width: 1024px; 
    /* margin: auto;  */
    padding-left: 0; 
    margin-left: 0;
    /* position: absolute; */
    top: 0;
    left: 0;
    justify-self: start;
}

/* Tree structure styling */
/* details { margin-bottom: 10px; border: 1px solid #eee; border-radius: 4px; } */
summary {
    padding: 10px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: bold;
    list-style: none; /* Removes default arrow */
}
 summary::-webkit-details-marker { display: none; } /* Hide arrow in Chrome/Safari */
 summary:before { content: "\25B6"; color: #007bff; margin-right: 5px; }
 details[open] > summary:before { content: "\25BC"; }

/* The 2-column layout inside the expanded paragraph */
.paragraph-row_inside {
    display: flex;
    padding: 5px;
    background: #fff;
    border-top: 1px solid #eee;
}

.paragraph-row {
    display: flex;
    flex-direction: column; /* Stacks content vertically */
    justify-content: space-between; /* Spreads content out vertically */
    min-height: 100px; /* Gives the container height to spread within */
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

.paragraph-row-inner{
    display: flex;
    /* flex-direction: column; */
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}
.meta-col {
    flex: 0 0 90px; /* Fixed width for labels */
    font-size: 1em;
    color: #666;
    border-right: 2px solid #007bff;
    padding-right: 15px;
    margin-right: 15px;
    line-height: 1.5
}

.text-col { 
    flex: 1;
    line-height: 1.5;
    font-size: 1.2em;
}

.summary-col:hover { color: #0056b3; text-decoration: underline; }

/* Visual indentation for nested items */
.nested { margin-left: 20px; }
.nested-list { margin-top: 10px; max-height: 1200px; overflow-y: auto; }

/*search */
.search-section { margin-bottom: 20px; padding: 10px; }
#searchInput { width: 100%; padding: 10px; border-radius: 5px; border: 1px solid #ccc; }

.results-list { margin-top: 10px; max-height: 400px; overflow-y: auto; }
.search-result-item { 
    background: #f9f9f9; 
    padding: 10px; 
    border-bottom: 1px solid #ddd; 
    cursor: pointer;
    font-size: 0.9em;
}
.search-result-item:hover { background: #f0f0f0; }
.result-path { font-weight: bold; color: #2c3e50; display: block; font-size: 0.8em; }

 /* body { font-family: "Inter", sans-serif;  line-height: 1; margin: 20px; color: #333; } */
        /* .chapter { border-left: 5px solid #333; padding-left: 20px; margin-bottom: 40px; } */
        .section { padding-left: 20px; margin-top: 10px; margin-bottom: 20px; line-height: 1.5;}

        /* 10-column fixed grid */
        .article-grid {
            display: grid;
            grid-template-columns: repeat(18, 1fr);
            gap: 8px;
            max-width: 800px;
        }

        .article-btn {
            height: 35px;
            width: 35px;
            /* aspect-ratio: 1; */
            /* background: #007bff; */
            /* color: #fff; */
            border: 1px solid;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            font-size: 14px;
            transition: 0.2s;
            z-index: 1; /* Keeps buttons above content transitions */
        }
        .article-btn:hover { background: #6b6d6ebb; } 
        .article-btn.active { background: #3333335e; }

        /* Content block spanning full width */
        .article-content {
            display: none;
            grid-column: 1 / span 18; 
            background: #fff;
            padding: 10px;
            border: 1px solid #696262;
            border-radius: 4px;
            margin-top: 8px;
            margin-bottom: 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            font-size: 18px;
        }
