/* Book prompts: kept separate from the theme build and loaded only for /hdu/p/. */
.post-content pre.hdu-prompt {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 1.05em;
  line-height: 1.55;
  background: #f8f0dc;
  border-left: 4px solid #b0822b;
  padding: 1em 1.2em;
  border-radius: 6px;
  color: #1f3864;
}

.post-content .hdu-meta {
  color: #6d7171;
  font-size: 0.9em;
  margin-bottom: 0.4em;
}

.post-content .hdu-hint {
  color: #1f3864;
  margin: 1em 0 0.6em;
}

.post-content .hdu-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.post-content .hdu-btn {
  display: inline-block;
  width: auto;
  padding: 0.6em 1em;
  border-radius: 6px;
  border: 2px solid #1f3864;
  background: #fff;
  color: #1f3864 !important;
  text-decoration: none !important;
  font: inherit;
  font-weight: 600;
  font-size: 0.95em;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
}

.post-content .hdu-btn:hover,
.post-content .hdu-btn:focus-visible {
  background: #eef2f8;
}

.post-content .hdu-btn:focus-visible {
  outline: 2px solid #1f3864;
  outline-offset: 2px;
}

.post-content .hdu-btn.hdu-fav {
  background: #1f3864;
  color: #fff !important;
}

.post-content .hdu-btn.hdu-copy {
  border-color: #b0822b;
  color: #5b4314 !important;
}

.post-content .hdu-note {
  color: #6d7171;
  font-size: 0.85em;
  margin-top: 1em;
}

.post-content a.hdu-back {
  display: inline-block;
  margin-top: 0.8em;
  color: #b0822b;
  font-weight: 600;
}

.post-content ul.hdu-index li {
  margin: 0.25em 0;
}

@media (max-width: 600px) {
  .post-content .hdu-buttons {
    flex-direction: column;
  }

  .post-content .hdu-btn {
    width: 100%;
  }
}
