.htmx-indicator {
    opacity: 0;
    transition: opacity 500ms ease-in;
}
.htmx-request .htmx-indicator {
    opacity: 1;
}
.htmx-request.htmx-indicator {
    opacity: 1;
}

/* Global font */
body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #f3f4f0;
}

/* Profile image styling */
.profile-img {
    width: 192px;
    height: 192px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}

.banner {
    width: 50%;
    margin: 0 auto;
    display: flex;           /* make children (img + text div) sit in a row */
    gap: 16px;               /* space between image and text */
    border-bottom: 1px solid black;
    padding-bottom: 5px
}

/* Action buttons */
.actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px; /* pill */
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  color: #111827;
  background: white;
  border-color: #D1D5DB; /* gray-300 */
}

.btn:hover {
  background: #F9FAFB; /* gray-50 */
}

.btn-icon {
  padding: 6px;           /* tighter padding for icon-only */
  line-height: 0;         /* remove extra inline spacing */
}

.btn-icon img {
  width: 20px;
  height: 20px;
  display: block;         /* avoid descender whitespace */
  object-fit: contain;
}

/* Optional: adjust layout on small screens */
@media (max-width: 640px) {
  .banner {
    width: 90%;
    flex-direction: column;
  }
  .profile-img {
    width: 72px;
    height: 72px;
  }
  .list{
    width: 90%;
  }
}

/* Timeline section */
.timeline-section {
  width: 50%;
  margin: 20px auto 60px auto;
}

.timeline-section h2 {
  margin: 16px 0 20px 0;
  font-size: 22px;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

/* vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 120px; /* aligns with date width */
  top: 0;
  bottom: 0;
  width: 2px;
  background: #E5E7EB; /* gray-200 */
}

.timeline li {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 16px 0;
}

.timeline li:not(:last-child) {
  border-bottom: 1px dashed #E5E7EB;
}

.timeline-date {
  flex: 0 0 120px; /* fixed column for dates */
  font-weight: 600;
  color: #374151; /* gray-700 */
}

.timeline-content {
  flex: 1;
}

.timeline-content h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
}

.timeline-content p {
  margin: 0;
  color: #4B5563; /* gray-600 */
}

/* small screens */
@media (max-width: 640px) {
  .timeline-section {
    width: 90%;
  }
  .timeline::before {
    left: 100px;
  }
  .timeline-date {
    flex-basis: 100px;
    font-size: 14px;
  }
}

/* Article page */
.article-section {
  width: 40%;
  margin: 20px auto 60px auto;
}

.article-section h1 {
  margin-bottom: 4px;
}

.article-date {
  color: #6B7280;
  font-size: 14px;
  margin: 0 0 24px 0;
}

.article-body {
  line-height: 1.7;
  font-size: 17px;
}

@media (max-width: 640px) {
  .article-section {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }
}

.list {
  width: 50%;
  margin: 20px auto 60px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 640px) {
  .list{
    width: 90%;
  }
}

.center-text {
  width: 50%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.main {
  max-width: 1000px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.link {
  text-decoration: none;
  color: inherit;
}

.link:hover {
  text-decoration: underline;
}

.footer {
  width: 50%;
  margin: 20px auto 60px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}