body {
  max-width: 640px;
  margin: auto;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
time {
  font-style: italic;
}
main h1 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
pre { 
  /* white-space: pre; */
  overflow: auto;
  /* border-style: solid;
  border-width: 0.1em;
  */
  padding-left: 0.3rem;
  padding-right: 0.3rem;
  padding-top:0.5rem;
  padding-bottom:0.5rem;
}
.entry-title a {
  text-decoration: none;
  color: black;
}
.draft-warn {
  color: orange;
}
.cursive-quote {
  font-family: cursive;
  font-size: 1.6rem;
}
#post-list li a {
  text-decoration: none;
}
#post-list li a:hover {
  color: white;
  background-color: blue;
}
#post-list li a:hover:visited {
  color: white;
  background-color: purple;
}
nav h1 {
  padding-right: 1rem;
}
nav h1 a {
  text-decoration: none;
  color: black;
}
nav .menu-item {
}
nav .menu-item a {
  color:black; 
  text-decoration:none;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  display: inline-block;
}
nav .menu-item a:hover {
  color: white;
  background-color: black;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;

}
.wordmark {
  padding-top: 10px;
  padding-right: 0.5rem;
}

.category-title {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
  margin-top: 1.35em;
}

.category-title h1 {
  margin: 0;
}

.feed-icon {
  width: 18px;
  height: 18px;
}

div.notice {
  border: 1px dashed grey;
  padding: 4px;
}

.prolog-result {
  color: darkred;
  background: #E8E8E8;
  border-radius: 8px;
  padding: 2px 4px;
  font-weight: 500;
}

.prolog-result a {
  color: darkred;
  text-decoration: none;
}

.prolog-result a:hover {
  text-decoration: underline;
}

.hover-link {
  position: relative;
  display: inline-block;
  /*
  color: #2563eb;
  text-decoration: underline;

   */
}

/* 2. Hide and position the popup box */
.hover-link .popup-text {
  visibility: hidden;
  opacity: 0;
  /*width: 180px; */
  background-color: #fff;
  color: darkred;
  text-align: center;
  border-radius: 6px;
  border: #E8E8E8 1px solid;
  padding: 8px 12px;
  /*font-size: 0.85rem; */
  white-space: nowrap;

  /* Position absolute relative to parent link */
  position: absolute;
  bottom: 125%; /* Places popup above the text */
  left: 50%;
  transform: translateX(-50%); /* Centers horizontally */
  z-index: 10;

  /* Smooth fade-in transition */
  transition: opacity 0.2s ease-in-out, visibility 0.2s;
}

/* 3. Reveal the popup on link hover */
.hover-link:hover .popup-text {
  visibility: visible;
  opacity: 1;
}