* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    margin: 0 auto;
    font-family: 'Roboto', Arial, sans-serif;
    
}

.heading-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 50px;
    
}

/* Heading */
.page-heading {
    font-size: 52px;
    text-align: center;
    padding: 0 100px 80px 100px;    
    font-weight: 700;
    line-height: 64px;
}

.page-heading-discription {
    font-size: 22px;
    text-align: center;
    font-weight: 500;
    line-height: 28px;
    padding-top: 20px;
    color: #4374ba;
}

.full-box-container {
    max-width: 1440px;
    height: auto;
    margin: 0 auto;
    padding: 0 50px;
    margin-bottom: 100px;
    
    
}

.box-header-layer {
    width: 100%;   
    border: 1px solid #808080;
    margin-top: 65px;  
        
}

.box-header-layer:first-child {
    margin-top: 0;
}

.box-header-title {
    background-color: #4D4D4D;
    color: #ffffff;
    text-align: center;
    font-size: 30px;
    font-weight: 500;
    padding: 19.5px;
    line-height: 34px;
    border: 1px solid #4D4D4D;   
}

.box-header-title-discription {
    background-color: #4D4D4D;
    color: #ffffff;
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    line-height: 34px;
    
}

.content-full-box-container {
    width: 100%;   
    background-color: #fbfeff;
    border: 1px solid #808080;  
    padding: 65px 40px 0 40px;  
        
}

/* Legend container box */
.legend-container {
    width: 100%;
    padding: 50px;
    
    
        
}


.legend-grid-box{
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr); /* fill full width */
  border: 1px solid #808080;
  background-color: #808080; /* 1px grid lines */
  gap: 1px;
}

.legend-grid-item{
  background-color: #fff;
  padding: 15px 20px;
  font-size: 20px;
  line-height: 24px;
  display: flex;                   /* left text + right status */
  justify-content: space-between;
  align-items: center;
  min-width: 0;                    /* critical: let items shrink */
}

.legend-grid-item span {
    font-size: 18px;

}

.legend-status {
    font-size: 18px;
}

.legend-status-upcoming {
    color: #828282;
}

.table-container {
    width: 100%;   
    padding-bottom: 65px;   
        
}



.table-header-container {
    width: 100%;   
              
}

.table-header-box-wrapper {
    border: 1px solid #808080;
    
    background-color: #ffffff;
    
  }

.table-header-container-3colum {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    border: 1px solid #808080;
    background-color: #808080; /* Sets border color */
    gap: 1px; /* Creates 1px lines */
}


.table-header-container-4colum {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    border: 1px solid #808080;
    background-color: #808080; /* Sets border color */
    gap: 1px; /* Creates 1px lines */
}

.table-header-title {
    
    background-color: #ffffff;
    text-align: center;
    font-size: 28px;
    font-weight: 500;
    padding: 17.5px;
    line-height: 33.6px;
    border: 1px solid #808080;
    border-bottom: none;
    box-sizing: border-box;   
}

.table-header-title span {
    background-color: #ffffff;
    text-align: center;
    font-size: 19px;
    font-weight: 400;
    line-height: 28.8px;
    

}

.table-header-title-graybox {
    background-color: #f2f2f2;
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    padding: 23.01px;
    line-height: 36px;
    border: 1px solid #808080;
    border-bottom: none;
    box-sizing: border-box; 
}

.table-header-title-graybox-bottom {
    background-color: #f2f2f2;
    text-align: center;
    font-size: 28px;
    font-weight: 500;
    padding: 23.01px;
    line-height: 36px;
    border: 1px solid #808080;    
    box-sizing: border-box; 
}

.table-header-sub-title-3colum {
    background-color: #ffffff;
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    padding: 15.5px;
    line-height: 34px;
    /* border: 1px solid #4d4d4d; */ /* REMOVED */
    
}



.table-header-sub-title {
    background-color: #ffffff;
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    padding: 15.5px;
    line-height: 34px;
    border: 1px solid #4d4d4d;   
}



.table-header-sub-title-only {
    background-color: #ffffff;
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    padding: 15.5px;
    line-height: 34px;
    border: 1px solid #4d4d4d;   
}

.table-header-sub-title-graybox {
    background-color: #f2f2f2;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    padding: 23.45px;
    line-height: 34px;
    border: 1px solid #4d4d4d; 
    border-bottom: none;
    box-sizing: border-box;   
    
}

.table-header-sub-title-graybox-topless {
    background-color: #f2f2f2;
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    padding: 23.45px;
    line-height: 34px;
    border: 1px solid #4d4d4d; 
    border-bottom: none;
    border-top: none;    
    box-sizing: border-box;   
    
}





.table-grid-container {
    width: 100%;   
    display: flex;
    flex-direction: column;
    
}


.table-grid-container-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}



.table-grid-box {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(800px, 1fr));
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    border: 1px solid #808080;
    background-color: #808080; /* Sets border color */
    gap: 1px; /* Creates 1px lines */
    align-items: center; /* FIX: Vertically center items in the grid cell */
}

.table-grid-box-max2grid {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    border: 1px solid #808080;
    background-color: #808080; /* Sets border color */
    gap: 1px; /* Creates 1px lines */
    align-items: center; /* FIX: Vertically center items in the grid cell */
}



.table-grid-box-max3grid {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    border: 1px solid #808080;
    background-color: #808080; /* Sets border color */
    gap: 1px; /* Creates 1px lines */
    align-items: center; /* FIX: Vertically center items in the grid cell */
}


.table-grid-box-max4grid {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    border: 1px solid #808080;
    background-color: #808080; /* Sets border color */
    gap: 1px; /* Creates 1px lines */
    align-items: center; /* FIX: Vertically center items in the grid cell */
}

.table-grid-box-max5grid {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    border: 1px solid #808080;
    background-color: #808080; /* Sets border color */
    gap: 1px; /* Creates 1px lines */
    align-items: center; /* FIX: Vertically center items in the grid cell */
}

.table-grid-box-max6grid {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    border: 1px solid #808080;
    background-color: #808080; /* Sets border color */
    gap: 1px; /* Creates 1px lines */
    align-items: center; /* FIX: Vertically center items in the grid cell */
}



.table-grid-box-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 82px;
    padding: 10px 6px;
    font-size: 24px;
    line-height: 28.8px;
    font-weight: 500;
    text-align: center;
    background-color: #fff;
    min-width: 0;
    flex: 1;
    word-break: break-word;
}

.table-grid-box-item span {
    
    text-align: center;
    font-size: 19px;
    font-weight: 400;
    line-height: 26px;
    
}





.table-grid-box-sub-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #808080;
    height: 65px;
    padding: 10px 6px;
    font-size: 24px;
    line-height: 26px;
    font-weight: 500;
    text-align: center;
    background-color: #fff;
    min-width: 0;
    flex: 1;
    word-break: break-word;
}

  


.sub-table-container {
    width: 100%;  
}

.sub-table-container-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    align-items: stretch;
}

.sub-table-box {
    flex: 1;
    min-width: 150px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* FIX: Prevents background overflow on active state */
}

.empty-white-box {
    height: 200px;
    background-color: #fff;
    width: 100%;
}


.paragraph-box-container {
    width: 100%;
    
}

/* Original style for dropdowns INSIDE a grid */
.paragraph-box {
    background-color: #f1f1f1;
    padding: 50px 80px;
    font-size: 18px;
    line-height: 1.6;
    grid-column: 1 / -1; /* This makes it span the full grid width */
}

/* New style for dropdowns OUTSIDE a grid (between sections) */
.sub-paragraph-box {
    background-color: #f1f1f1;
    padding: 50px 80px;
    font-size: 18px;
    line-height: 1.6;
    border: 1px solid #808080;
    border-top: none;
}

.page-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 50px;
    
    
}

.page-header {
    width: 100%;
    padding: 50px;
    counter-reset: paragraph-counter; /* reset counter */
}


.page-header h1{
    font-size: 24px;
}

.page-content {
    width: 100%;
    padding: 50px;
    margin-top: 150px;
    margin-bottom: 350px;
    counter-reset: paragraph-counter; /* reset counter */
}

.page-content p {
        font-size: 17px;
        font-weight: 300;
        line-height: 1.5;
        color: #000;
        margin: 0 0 12px 0;
                
    }

.page-content p strong {
        font-weight: 700; /* adjust boldness */
        font-size: 18px;
        
}
.page-content .subtext {
    font-size: 17px;
    color: #000;
    font-style: italic;
    padding-top: 20px;
}

.p-header {
    padding-bottom: 8px;
}

/* Banner-Nav-icon */
.header-icon-container {
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 35px;
}

.header-icon-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;  
  color: inherit;  
  margin-top: 30px;       
}

.header-icon-item:hover {
  color: #5265f6;           
}
.header-icon-item .icon {
  height: 20px;
  width: auto;
  display: block;
}

.header-icon-item span {
    font-size: 17px;
    font-weight: 500;
    line-height: 28.8px;
}

/* Page Two extras */
.page-content h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.indented-paragraph {
    padding-left: 60px;
    padding-right: 80px;
    position: relative;
}

.indented-paragraph::before {
    counter-increment: paragraph-counter; /* increase counter */
    content: counter(paragraph-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    font-size: 20px;
    padding-left: 30px;
}

.indented-paragraph-a {
    padding-left: 40px;
    padding-right: 80px;
    position: relative;
    padding-top: 32px;
}


.table-grid-box-item.filler {
    visibility: hidden;
}

/* Recent Releases */
.recent-release-container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* makes flex children align left */
  text-align: left;         /* makes text content align left */
  padding: 1rem 0;
  margin-bottom: 30px;
  
}

.recent-release-container h1 {
   
    font-size: 30px;
    font-weight: 600;
    
}

/* RecentReleases-Nav-icon */
.recent-releases-icon-container {
  margin: 0;                
  display: flex;
  justify-content: flex-start; 
  align-items: center;
  width: auto;              /* shrink to content instead of 100% */
  padding-left: 50px;
      
}

.recent-releases-icon-container:last-child {
  border-bottom: none; /* remove line after last item */
}


.recent-releases-item {
  display: flex;
  gap: 80px;
  justify-content: flex-start;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid #f0f0f0;
  width: 78%;          /* 🔥 make all rows same width */
  box-sizing: border-box;

}




.recent-releases-item h4 {
  min-width: 180px; /* keeps left alignment consistent */
  font-size: 24px;
  font-weight: 500;
  text-align: left;
  
}


.recent-releases-icon-section {
  margin: 0;                
  display: flex;
  justify-content: flex-start; 
  align-items: center;
  width: 100%;
  gap: 50px;
  
}

.recent-releases-icon-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;  
  color: inherit;  
}

.recent-releases-icon-item:hover {
  color: #5265f6;           
}

.recent-releases-icon-item .icon {
  height: 20px;
  width: auto;
  display: block;
  
}

.recent-releases-icon-item span {
  font-size: 17px;
  
  font-weight: 400;
  line-height: 28.8px;
  text-align: left; 
  
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.table-grid-box-item.active {
    background-color: #4d4d4d;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

.table-header-sub-title.active,
.table-header-sub-title-3colum.active  {
    background-color: #4d4d4d;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
}


@media (max-width: 1200px) {
    .heading-container {
        padding: 0 50px;
    }
}

@media (max-width: 600px) {
    .heading-container {
        padding: 0 20px;
    }
}


@media (max-width: 1200px) {
    .full-box-container {
        padding: 0 50px;
    }
}

@media (max-width: 600px) {
    .full-box-container {
        padding: 0 20px;
    }
}


@media (max-width: 1400px) {
    .table-grid-box-max2grid {
    
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }

    .table-grid-box-max3grid {
    
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .table-grid-box-max4grid {
    
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .table-grid-box-max5grid {
    
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .table-grid-box-max6grid {
    
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    
}

@media (max-width: 1050px) {
    .sub-table-container-wrapper {  
        flex-direction: column;
    }

    .table-grid-box-max2grid {
    
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    }

    .table-grid-box-max3grid {
    
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .table-grid-box-max4grid {
    
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .table-grid-box-max5grid {
    
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .table-grid-box-max6grid {
    
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .sub-table-box {
        width: 100%;
        
    }

    .sub-table-box:last-child {
        margin-bottom: 0;
    }

    .break-on-small {
      display: block;
    }
   
    .paragraph-box {
        padding: 40px 40px;
    }
    .table-header-container-3colum {
        grid-template-columns: repeat(2, 1fr);
    }

    /* RecentReleases-Nav-icon */
    .recent-releases-icon-container {
        padding-left: 0px;
    }

    .recent-releases-item {
        width: 100%;  
    }

    .recent-releases-item h4{
        min-width: 150px;  
    }

    .recent-releases-icon-section {
        gap: 33px;
    }

    .recent-releases-icon-item {
        gap: 0.5rem;
    }
    .recent-release-container {
        margin-bottom: 5px;
    }


    
}



@media (max-width: 820px) {

    .table-grid-box {
    
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    }
    
    .table-grid-box-max2grid {
    
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }

    .table-grid-box-max3grid {
    
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .table-grid-box-max4grid {
    
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .table-grid-box-max5grid {
    
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .paragraph-box {
        padding: 40px 30px;
    }

    .recent-releases-item {
        flex-direction: column; 
        align-items: flex-start;
        gap: 20px;
    }
    .recent-releases-item h4 {
        font-size: 22px;
    }

}


@media (max-width: 768px) {
    .table-grid-box {
    
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    }
    
    .table-grid-box-max2grid {
    
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .table-grid-box-max3grid {
    
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .table-grid-box-max4grid {
    
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .table-grid-box-max5grid {
    
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}


@media (max-width: 480px) {

    .page-heading {
        word-wrap: break-word;   /* older syntax */
        
        padding: 0 0px;
        padding-bottom: 75px;
        margin: 10px;
        
    }
    .page-content {
        padding: 0px;
        margin-top: 250px;
        margin-bottom: 250px;
    }

    .indented-paragraph {
        padding-right: 20px;
        padding-left: 40px;
        
    }

    .indented-paragraph::before {
    counter-increment: paragraph-counter; /* increase counter */
    content: counter(paragraph-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    font-size: 20px;
    padding-left: 10px;
    }

    .indented-paragraph-a {
        padding-right: 20px;
        padding-left: 20px;
    }
    

    .table-grid-box {
        grid-template-columns: 1fr; /* 1 per row on mobile */
    }

    .content-full-box-container {
    width: 100%;   
    background-color: #fbfeff;
    border: 1px solid #808080;  
    padding: 65px 20px 0 20px;
        
    }
    .table-grid-box {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .table-grid-box-max2grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .table-grid-box-max4grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .paragraph-box, .sub-paragraph-box {
        padding: 40px 30px;
    }
    .legend-grid-box {
    grid-template-columns: 1fr; /* one column */
    grid-auto-rows: auto; /* let each row size automatically */
    
    }
    .legend-container {
        padding: 20px;
    }

    .legend-status {
    text-align: right;
    }

    .page-header {
    padding: 0 0 0 0;
    padding-top: 100px;
    }
}

@media (max-width: 480px) {
    .recent-release-container {
        margin-bottom: 0;
    }

    .recent-releases-icon-container {
        padding-left: 20px;
        padding-right: 30px;
    }

  .recent-releases-item {
    flex-direction: column;   /* stack heading + icons vertically */
    align-items: flex-start;  /* keep left alignment */
    gap: 20px;                /* smaller gap between title and icons */
    width: 100%;              /* use full width on mobile */
  }

  .recent-releases-item h4 {
    min-width: auto;          /* let title shrink naturally */
    font-size: 20px;          /* slightly smaller heading */
  }

  .recent-releases-icon-section {
    flex-wrap: wrap;          /* wrap icons onto new lines if needed */
    gap: 20px;                /* tighter spacing between icons */
  }

  .recent-releases-icon-item span {
    font-size: 15px;          /* smaller text for mobile */
  }

  
  
    
}



/* === FIX START === */
/* Corrects the dark center line in two-column substrate tables by removing the left border from elements in the second column to prevent a 2px double border. */
/* This is controlled to only apply on screens 1350px and wider. */
@media (min-width: 1350px) {
    .substrates-layout .sub-table-container-wrapper .sub-table-box:nth-child(2) .table-header-sub-title-graybox-topless,
    .substrates-layout .sub-table-container-wrapper .sub-table-box:nth-child(2) .table-grid-box,
    .substrates-layout .sub-table-container-wrapper .sub-table-box:nth-child(2) .table-grid-box-max2grid,
    .substrates-layout .sub-table-container-wrapper .sub-table-box:nth-child(2) .table-grid-box-max4grid,
    .substrates-layout .sub-table-container-wrapper .sub-table-box:nth-child(2) .table-grid-box-max5grid {
        border-left: none;
    }
}
/* === FIX END === */