  /* Section wrapper */
  #toc {
    text-align: center;
    margin: 2rem auto;
    max-width: 400px;
    font-family: system-ui, sans-serif;
  }

  #toc h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0.5rem 0 0.3rem 0;
    color: #333;
  }

  /* Decorative symbol under title */
  #toc  .decor {
    display: flex;
    justify-content: center; /* centers horizontally */
    gap: 10px;               /* spacing between stars */
    font-size: 20px;
  }

  .middle-star {
    color: orange;
    display: inline-block;
    animation: breathe 2s infinite ease-in-out;
  }

  @keyframes breathe {
    0%, 100% {
      transform: scale(1);
      color: orange;
    }
    50% {
      transform: scale(1.5);
      color: darkorange;
    }
  }

  #toc hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #666, transparent);
    margin: 1rem 0;
  }

  /* TOC root list */
  .toc-root {
    list-style: none;
    padding-left: 0;
    margin: 0 auto;
    display: inline-block; /* centers the whole list */
    text-align: center;  /* center align main items */
  }

  .toc-root > li {
    margin: 0.5rem 0;
  }

  /* Subsection lists */
  .toc-root li ul {
    list-style: none;
    margin: 0.3rem auto 0 auto;
    padding-left: 0.75rem;
    border-left: 2px solid #ddd;
    display: inline-block; /* keeps subsections centered under parent */
    text-align: left;      /* align subsection entries neatly */
  }

  .toc-root li ul li {
    margin: 0.3rem 0;
  }

  /* Links */
  #toc a {
    text-decoration: none;
    color: orange;
    transition: color 0.2s ease;
    display: inline-block; /* makes alignment clean */
  }

  #toc a:hover {
    color: darkorange;
    text-decoration: underline;
  }

  .back-to-toc {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-decoration: none;
    color: #333;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s ease;
  }

  .back-to-toc:hover {
    background: darkorange;
    color: white;
  }

.cv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 20px; /* row-gap, column-gap */
}
.cv-grid div {
  padding: 2px 0;
}

hr.fancy-hr-separator {
  all: unset;               /* wipe UA + theme defaults */
  display: block;           /* restore block layout */
  width: 100%;
  height: 2px;              /* thickness */
  margin: 20px 0;
  background-image: linear-gradient(to right, #ccc, #333, #ccc);
  /* optional hardening */
  /* -webkit-appearance: none; */
  box-sizing: content-box;
}

hr.fancy-hr-separator::before {
  content: "";
  display: block;
  height: 2px;  /* thickness you want */
  background: linear-gradient(to right, #ccc, #333, #ccc);
}

.fancy-sep {
  height: 2px;
  margin: 20px 0;
  background-image: linear-gradient(to right, #ccc, #333, #ccc);
}

.button-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.cv-bar {
  display: flex;
  justify-content: center;    /* center horizontally */
  align-items: center;        /* center vertically */
  padding: 30px 0;            /* top/bottom spacing */
}

/*
.cv-btn {
  background: #333;         
  color: orange;               
  font-weight: bold;
  padding: 12px 24px;
  text-decoration: none !important;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}
.cv-btn:hover {
  background: darkorange;
  color: white;
}
*/

.button {
  position: relative;
  display: inline-block;
  padding: 0.9em 1.2em;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none !important;
  color: #333;
  background: orange;
  font-weight: bold;
  overflow: hidden;
  z-index: 2;
  transition: background-color 180ms ease, color 180ms ease;
}

/* highlight layer */
.button.delaunay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/delaunay_button.svg");
  background-size: 100% 100%;   /* force fit both width + height */
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.35;
  transition: opacity 180ms ease, transform 300ms ease;
  z-index: 1;
}

/* HOVER state -> brighten everything */
.button:hover {
  background-color: #333;   /* lighter background */
  color: #fff;              /* ensure text stays bright */
}

.button.delaunay:hover::before {
  opacity: 0.7;
  transform: scale(1.08);   /* gentle zoom for motion */
}