
.post-info, h1 {
  text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.9);
}

body > div.nav-header {
    background-color: rgba(0,0,0,0.3)
}

/* stars page */
h4.archive-title {
    margin-bottom: 0 !important;
}

.codehilite pre {
    margin: 0; /* Remove excess margins */
    padding: 0; /* Remove excess padding */
}

pre.mermaid {
    text-align: center;
    background-color: #fff
}

small {
    overflow-wrap: break-word; /* Modern and recommended */
    word-break: break-word; /* For older browsers */
}
                          
/* ----------- tags on star-collector.html ------- */

.startags-filter {
    margin: 2rem 0;
    font-size:  1.5em;
    padding: 1rem;
    border-radius: 4px;
}

.startags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.startags-button {
    padding: 0.25rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.startags-button:hover {
    background: #eee;
}

.startags-button.active {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

.startags-count {
    font-size: 0.9em;
    opacity: 0.8;
}

.startags-button.active .startags-count {
    color: rgba(255, 255, 255, 0.9);
}

/* for my form at https://app.kit.com/forms/designers/7560513/edit */
form.formkit-form div {
    padding-top: 0px !important;
}


.headerlink {
    font-size: 0.5em;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    visibility: hidden; /* Hidden but space reserved */
    vertical-align: middle;
    margin-left: 5px; /* Optional spacing from the header text */
}

h2:hover .headerlink {
    visibility: visible; /* Show when h2 is hovered */
}

/* light */

.light-comment {
    font-size: small;
    color:grey;
}

.light-comment a {
     box-shadow: inset 0 -2px 0 grey;
}

/* ================================================================================ */
/* for details summaty combination */
details {
  --spacing: 1rem;
}

/* Remove ALL default triangles */
details summary {
  list-style-type: none;
}

/* Remove the default triangle in Firefox */
details summary::-webkit-details-marker,
details summary::marker {
  display: none;
}

/* Single custom triangle for all summaries */
details summary::before {
  content: "►";
  flex-shrink: 0;
  width: 1em;
  display: inline-block;
  margin-right: var(--spacing);
  transition: transform 0.2s;
  font-style: normal;  /* Ensure triangle stays non-italic */
}

/* Basic layout with italic text */
details summary {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  padding: 0.5rem 0;
  font-style: italic;  /* Make the text italic */
}

/* Rotate triangle when expanded */
details[open] > summary::before {
  transform: rotate(90deg);
}

/* Spacing */
details {
  margin-bottom: 0.5rem;
}

details[open] {
  margin-bottom: 1rem;
}


