/* Wrapper limits it to viewport width */
.tag-line-container {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  
  .tag-line-container::-webkit-scrollbar {
    display: none;
  }
  
  /* Inner content scrolls */
  .tag-line-scroll {
    display: inline-flex;
    gap: 0.75rem;
  }
  
  /* Pills */
  .tag-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-third);
    border-radius: 999px;
    font-family: var(--font-slab);
    font-weight: 700;
    text-decoration: none;
    color: var(--color-dark);
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .tag-pill:hover {
    background-color: var(--color-dark);
    color: white;
    border: 1px solid var(--color-dark);
  }

  body {
    overflow-x: hidden;
  }

  body.dark-mode {
    background-color: #121212;
    color: #e4e4e4;
    font-family: 'Roboto', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .dark-mode a {
    color: #90caf9;
  }
  
  .dark-mode a:hover {
    color: #ffffff;
  }
  
  .dark-mode .tag-pill {
    border-color: #333;
    color: #e4e4e4;
  }
  
  .dark-mode .tag-pill:hover {
    background-color: #e4e4e4;
    color: #121212;
  }


  @media (max-width: 640px) {
    .tag-pill {
      display: inline-block;
      padding: 0.5rem 1rem;
      border: 1px solid var(--color-third);
      border-radius: 999px;
      font-weight: bold;
      font-size: var(--font-size-sm);
      white-space: nowrap;
    }
  }