/* Enlarge dates in recent-posts list on home */
.list-layout li span {
  font-size: 1.1rem;
  color: var(--text-secondary-color, #888);
  margin-left: 8px;
}

/* Make the date stand out more on dark and light themes */
@media (prefers-color-scheme: dark) {
  .list-layout li span {
    color: #b0b0b0;
  }
}

/* Home profile image left alignment and style */
.profile-left {
  float: left;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 16px 8px 0;
}

/* Make the intro line visually striking */
em, i {
  font-size: 1.25rem;
}

/* Ensure post titles render prominently */
.content-margin h1, .content-margin h2, .content-margin h3 {
  color: inherit;
}

/* Hide table borders on the projects page */
.content-margin table,
.content-margin table th,
.content-margin table td {
  border: none !important;
  border-collapse: collapse;
}

/* Specifically target projects page tables */
.projects table,
.projects table th,
.projects table td {
  border: none !important;
  border-collapse: collapse;
}

/* Projects page styling */
.content-margin table a {
  text-decoration: underline;
}

/* Blog list styling */
.blog-year-header {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.blog-post-item {
  margin-bottom: 2rem;
}

.blog-post-date {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.blog-post-title {
  margin: 0 0 0.5rem 0;
}

.blog-post-title a {
  text-decoration: underline;
}

.blog-post-description {
  margin: 0;
  line-height: 1.5;
}

/* Theme-aware colors using data-theme attribute */
html[data-theme="light"] .blog-post-title a {
  color: #000;
}

html[data-theme="light"] .blog-post-date {
  color: #666;
}

html[data-theme="light"] .blog-post-description {
  color: #555;
}

html[data-theme="light"] .content-margin table a {
  color: #000;
}

html[data-theme="dark"] .blog-post-title a {
  color: #fff;
}

html[data-theme="dark"] .blog-post-date {
  color: #ccc;
}

html[data-theme="dark"] .blog-post-description {
  color: #ddd;
}

html[data-theme="dark"] .content-margin table a {
  color: #fff;
}

/* Ensure content doesn't wrap under the avatar on home */
.intro-wrap {
  min-height: 180px;
  overflow: hidden;
}

/* Mobile: stack text under image */
@media (max-width: 640px) {
  .profile-left {
    float: none;
    display: block;
    margin: 0 auto 12px auto;
    width: 140px;
    height: 140px;
  }
  .intro-wrap {
    min-height: initial;
    overflow: visible;
  }
}

/* Footer layout - match main element width */
footer {
  margin-left: auto;
  margin-right: auto;
  width: 93vw; /* sm_main_width */
}

footer article {
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
}

footer article span {
  flex: 1;
  text-align: center;
}

footer .footer-social {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  position: absolute;
  right: 0;
}

/* Responsive footer widths to match main content */
@media (min-width: 768px) {
  footer {
    width: 80vw; /* md_main_width */
  }
}

@media (min-width: 1024px) {
  footer {
    width: 70vw; /* lg_main_width */
  }
}

@media (min-width: 1280px) {
  footer {
    width: 50vw; /* xl_main_width */
  }
}

@media (min-width: 1536px) {
  footer {
    width: 50vw; /* xxl_main_width */
  }
}

/* Footer social icons styling */
footer .icon {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}

footer .icon a {
  color: var(--color-text-footer);
  transition: color 0.2s ease;
}

footer .icon a:hover {
  color: var(--color-text);
}

/* Mobile footer: social links before copyright with padding */
@media (max-width: 640px) {
  footer article {
    flex-direction: column-reverse;
    gap: 1rem;
    text-align: center;
  }
  
  footer .footer-social {
    position: static;
    justify-content: center;
    padding-bottom: 0.5rem;
  }
}


