/* Realistic Comment Section */
.post-comments {
  margin-top: 40px;
  background: #ffffff; /* White background */
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #c0c0c0; /* Darker border for better contrast */
  max-width: 800px;
}

.comments-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 2px solid #b0b0b0; /* Darker border for contrast */
  padding-bottom: 6px;
  color: #1a1a1a; /* Near-black for high contrast (4.5:1+ on white) */
}

.comment {
  background: #ffffff; /* White background */
  border: 1px solid #b0b0b0; /* Darker border for contrast */
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  transition: box-shadow 0.2s ease;
}

.comment:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Slightly darker shadow for visibility */
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: 600;
  color: #1a1a1a; /* Near-black for high contrast */
}

.comment-date {
  font-size: 0.9rem;
  color: #4a4a4a; /* Darker gray for contrast (4.5:1+ on white) */
}

.comment-text {
  line-height: 1.6;
  color: #2d2d2d; /* Darker gray for readability (4.5:1+ on white) */
  font-size: 0.95rem;
}

/* -----------------------------------------
   Accessible, consistent link styling
   ----------------------------------------- */

/* Base link styles */
a,
.text-gray-500 a,
.text-gray-400 a,
.dark\:text-gray-400 a {
    color: #0056b3 !important; /* AAA contrast blue on white */
    text-decoration: none;
    padding: 6px 4px; /* Improves tap area */
    display: inline-block; /* Make padding clickable */
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Hover, focus, and active states */
a:hover,
a:focus,
a:active,
.text-gray-500 a:hover,
.text-gray-400 a:hover,
.dark\:text-gray-400 a:hover {
    color: #003399 !important; /* Darker blue for hover/focus */
    background-color: #e6f0ff; /* Subtle visual feedback */
    text-decoration: none; /* Add underline for accessibility */
}

/* Add spacing between consecutive links */
a + a {
    margin-left: 6px;
}

/* Tag links or post meta links — give them button-like appearance */
a[rel="tag"],
.post-tags a {
    margin: 4px 6px;
    border-radius: 4px;
    background: #f9f9f9;
    padding: 6px 10px;
    color: #0056b3 !important;
    text-decoration: none;
}

/* Hover effect for tags */
a[rel="tag"]:hover,
.post-tags a:hover {
    background-color: #e6f0ff;
    color: #003399 !important;
    text-decoration: none;
}

/* Admin Tool Bar */
#toolbar {background: #fff !important;}
