
.mark {
    background-color: yellow;             /* highlighter color */
    padding: 0.2em 0.4em;                 /* padding top/bottom + left/right */
    -webkit-box-decoration-break: clone;  /* Safari/Chrome: repeat per line */
    box-decoration-break: clone;          /* Standard: repeat per line */
    display: inline;                      /* keep as inline so wrapping occurs */
}

.codeblock {
    color: #eee;
    font-family: "Lucida Console", Monaco, monospace;
    padding: 0;
    font-size: 15px;
    border: 4px solid #a8c2d7;
    overflow: auto;
    height: auto;
    margin-bottom: 2em;
    background-color: #343432;
    border-style: outset;
    opacity: 1;
  }

.codeblock pre {
    max-width: 100%;
    padding: 10px 10px 10px 20px;
    overflow: overlay;
    line-height: 1.5em;
  }



.copy-highlite {
    background-color: #ccc !important; 
  }
.copy-btn{
    float: right;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    padding: 0px;
  }
   
       
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: 0.5em;
    margin-top: 1em;
}

.media-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.media-wrapper {

    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio = 9 / 16 = 0.5625 */
    height: 0;
    overflow: hidden;
}

.media-wrapper iframe, 
.media-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.table-wrapper{
        max-height: 1200px;
        overflow-y: scroll;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(720px, 1fr)); 
    }

.table-wrapper::-webkit-scrollbar{
        width: 0;

    }

@media screen and (max-width:980px) {
.table-wrapper{
        grid-template-columns: 1fr; 
    }
    
}

table {
  width: 100%;
  border-collapse: collapse;
  vertical-align: top;
  font-size: 0.82rem; /* Using rem/px is slightly more predictable than em for tables */
  
  /* 1. The Ultimate Data Font Stack */
font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  /* 2. Forces all numbers to be the exact same width and line up vertically */
  font-variant-numeric: tabular-nums lining-nums;
  
  /* 3. Smooths out pixels on modern screens */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 4. Crucial for financial tables: Numbers should always be right-aligned */
th.numeric-col, 
td.numeric-col {
  text-align: right;
}

table, head{
    background-color: var(--bg-color);
}

th{
  background: #7D2EFF;
  color: #fff;
}
 th, td {
      border: 1px solid #ddd;
      padding: 0.5em;
      text-align: left;
      font-weight: 500;
    }

.table-border  th,.table-border td {
    border: 1px solid var(--border) ;
    padding: 5px;
    background-color: #fff ;
    }

.table-hover td:hover {
    cursor: pointer;
}

.table-hover tr:hover, .table-hover tr:nth-child(odd):hover {
    background-color: #fdfdea;
}

.table-hover tr:nth-child(odd) {
    background-color: #f3f3f3;
}

.table-borderless  th,.table-borderless td {
    border: none;
    padding: 5px;
   
    }
.table-outline{
    border: 1px solid var(--border) !important;
}
.table-outline th,.table-outline td {
    border: none !important;
    padding: 5px;
}

.sortable-table th {
  cursor: pointer;
  position: relative;
  user-select: none; /* Prevents text highlighting on double click */
}

/* Base style for the arrows */
.sortable-table th::after {
  content: '⇅';
  font-size: 1em;
  padding-left: 5px;
  color: #fff;
}

/* Active Ascending State */
.sortable-table th.th-sort-ascending::after {
  content: '▲';
  color: #fff;
}

/* Active Descending State */
.sortable-table th.th-sort-descending::after {
  content: '▼';
  color: #fff;
}

@media screen and (max-width:980px) {
 
  th:first-child,
  td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: var(--background);
  }

  th:first-child {
    background: #7D2EFF;
    z-index: 3; /* higher z-index for header */
  }  
    
}




.outer-wrapper{
        border: 1px var(--border) solid;
        box-shadow: 0px 0px  0.2px var(--border) solid;
        border-radius: 5px;
}

.quote-area {
        background-color: #fdfdea;
        border: 1px #99bbd8 solid;
        font-family: Garamond, serif;
        padding: 1em;
        max-width: 640px;
        margin: 0 auto;
        border-radius: 12px;
}

.quote-area .quotation {
    font-weight: bold;
    font-size: 1.33em;
}


.badge{
     padding: 5px 25px 5px 25px;
     border-radius: 25px !important;
}
a{
    text-decoration:none;
    color:var(--c-text);
    transition:all .25s ease;
}

a:hover{
    color:#2563eb;
    text-decoration:underline;
}

a:active{
    color:#1d4ed8;
}




.sticky{
    position: sticky;
    top: -1px;
    z-index: 100 !important;
    background: var(--background);
}
