.btn-toggle-nav a {
    display: inline-flex;
    padding: .1875rem .5rem;
    margin-top: .125rem;
    margin-left: 1.25rem;
    text-decoration: none;
}
.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
    background-color: #d2f4ea;
}

.dropdown-toggle { outline: 0; }

.nav-flush .nav-link {
  border-radius: 0;
}

.btn-toggle {
  display: flex;
  align-items: center;
  padding: .25rem .5rem;
  font-weight: 600;
  color: rgba(0, 0, 0, .65);
  background-color: transparent;
  border: 0;  
}
.btn-toggle:hover,
.btn-toggle:focus {
  color: rgba(0, 0, 0, .85);
  background-color: #d2f4ea;
}

.btn-toggle:hover,
.btn-toggle:focus {
  color: rgba(0, 0, 0, .85);
  background-color: #d2f4ea;
}

.btn:hover {
    background-color: coral;
}

.btn-toggle::after {
  width: 1.25em;
  line-height: 0;  
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  transform-origin: .5em 50%;
}

.btn-toggle-sign {
    width: 0.75em;
    line-height: 0;  
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
    transition: transform .35s ease;
    transform-origin: .5em 50%;
    transform: rotate(0deg);    
  }

.btn-toggle[aria-expanded="true"] {
    color: rgba(0, 0, 0, .85);
}
.btn-toggle[aria-expanded="true"]::after {
    transform: rotate(90deg);
}

/* .parent[aria-expanded="true"] .btn-toggle-sign {
    transform: rotate(90deg);
} */

.main-content {
    display: grid;
    grid-template-areas:
        "menu content";
    grid-template-columns: 270px auto;
    grid-template-rows: auto;
}

.md-left-menu{
    grid-area: menu;    
}
.md-content {
    grid-area: content;    
}

.bd-sidebar {
    position: sticky;
    /* top: 5rem; */
    display: block;
    height: calc(100vh - 1.9rem);
    overflow-y: auto;
}

.doc-content {
    display: grid;
    grid-template-areas:
        "doc toc";
    grid-template-columns: 4fr 1fr;
    grid-template-rows: auto;
}

.my-nav-top {
    max-width: 100vh;
}

.md-doc-content {
    grid-area: doc;
}

.md-toc {
    grid-area: toc;     
    height: calc(100vh - 7rem);
    padding-right: 2rem;    
}

.toc-nav a{
    display: block;
    text-decoration: none;
    color:black;   
    padding: .125rem 0 .125rem .75rem; 
}

.toc-nav ul {
    list-style: none;  
    display: block;  
    padding-left: 0;
}

.toc-nav ul ul {
    padding-left: 1rem;
}

.post-adjacent {
    margin: 2.5rem 0 1.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(15, 23, 42, 0.12);
}

.post-adjacent__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .post-adjacent__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}

.post-adjacent__link {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    height: 100%;
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.post-adjacent__link:hover {
    color: inherit;
    border-color: rgba(15, 23, 42, 0.22);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.post-adjacent__cell--next .post-adjacent__link {
    text-align: right;
    align-items: flex-end;
}

.post-adjacent__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.45);
}

.post-adjacent__title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-adjacent__desc {
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgba(15, 23, 42, 0.55);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-adjacent__link:hover .post-adjacent__title {
    color: #0d6efd;
}

.toc-font {
    font-size: 20px;    
}

.md-doc-view {
    margin-left: auto;
}

/* 
.md-toc {
    grid-area: toc;
} */

h1, h2, h3, h4, h5, h6 {
    scroll-margin-top: 90px;
}

h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.25em; }

.vert-nav {
    font-size: 30px;
}

.top-nav-item {
    font-size: 30px;
}

.nav-start-icon {
    margin-top: 12px;
    font-size: 17px;
}

.nav-top-text {
    font-size: 40px;
}

.form-select {
    font-size: 1.25rem;
}

.pagination-center {
    justify-content: center;
    display: grid;
}

li p {
    margin-bottom: 0.25rem;
}

/* Docutils/MyST tables: th.head must keep readable contrast (OS dark color-scheme
   + forced black text otherwise becomes dark-on-dark). */
.md-doc-view table,
.doc-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    color: #0f172a;
    background-color: #ffffff;
}

.md-doc-view th,
.md-doc-view td,
.doc-article-body th,
.doc-article-body td {
    border: 1px solid #cbd5e1;
    padding: 0.5rem 0.75rem;
    vertical-align: top;
    font-size: 1.125rem;
}

.md-doc-view thead tr th,
.md-doc-view th.head,
.doc-article-body thead tr th,
.doc-article-body th.head {
    background-color: #e2e8f0;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 700;
}

.md-doc-view th.head p,
.md-doc-view td p,
.doc-article-body th.head p,
.doc-article-body td p {
    margin: 0;
    color: inherit;
}

thead tr th {
    color: #0f172a;
    font-size: 20px;
}

.table-row-cell-link {
    font-size: 20px;
    width: 100%;
    font-weight: bold;
}

.table-row-cell-link:hover {
    color: blueviolet;
}

/* .table-row-item {
    padding: 0%;
} */

.table-caption {
    padding-bottom: 0.1rem;
    font-size: 30px;
    text-align: left;
}

.pagination-button {
    width: 5%;
    padding-top: 58px;
    text-align: center;
    /* padding-bottom: 16px; */
    line-height: 310px;
}

.previous-page:hover {
    background-color:ghostwhite;    
}

.next-page:hover {
    background-color: ghostwhite;
}

.ripple-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.ripple {
    position: relative;
    overflow: hidden;
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 18px;
}

.ripple:before {
    content: "";
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.7);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
}

.header {
    position: absolute;
    background: linear-gradient(
        60deg,
        rgb(37, 151, 98, 1) 0%,
        rgb(200, 240, 171, 1) 100%
    );
    width: -webkit-fill-available;
    color: white
}

.inner-header {
    height: 15vh;
    /* width: 100%; */
    margin-left: 32vh;
    margin-top: 10vh;
    padding-top: 1.0rem;
}

.home-content {
    margin-top: 26vh;
}

.waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px;
    /*Fix for safari gap*/
    min-height: 100px;
    max-height: 150px;
  }

  .parallax > use {
    animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
  }
  
  .parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
  }
  
  .parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
  }
  
  .parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
  }
  
  .parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
  }
  
  @keyframes move-forever {
    0% {
      transform: translate3d(-90px, 0, 0);
    }
  
    100% {
      transform: translate3d(85px, 0, 0);
    }
  }
  
  /* /* Shrinking for mobile */
  @media (max-width: 768px) {
    .waves {
      height: 40px;
      min-height: 40px;
    }
  
    .content {
      height: 30vh;
    }
  
    h1 {
      font-size: 24px;
    }
  }