/* Widen homepage container only — article pages stay 864px */
.container.center:has(.home-grid) {
  max-width: 1180px;
}

/* Two-column homepage layout: posts left, microblog sidebar right */
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
}

.home-grid .posts {
  min-width: 0;
}

@media (max-width: 900px) {
  .container.center:has(.home-grid) {
    max-width: 864px;
  }
  .home-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .microblog-sidebar {
    order: -1;
    position: static;
  }
  .microblog-sidebar__list {
    max-height: 5rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  }
  .microblog-sidebar__list::-webkit-scrollbar {
    width: 4px;
  }
  .microblog-sidebar__list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
  }
}

/* Sidebar panel — matches the .table-of-contents recipe in post.css */
.microblog-sidebar {
  background: #143A6E;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 20px;
  position: sticky;
  top: 24px;
  font-size: 0.9rem;
}

.microblog-sidebar__header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.microblog-sidebar__prompt {
  color: var(--accent);
  font-weight: bold;
  letter-spacing: 0.02em;
}
.microblog-sidebar__prompt::before {
  content: "~$ ";
  color: #8fa0b3;
  font-weight: normal;
}

.microblog-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.microblog-sidebar__item {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.microblog-sidebar__item:last-child {
  border-bottom: none;
}
.microblog-sidebar__item::before {
  content: none !important;
}

.microblog-sidebar__time-link {
  display: block;
  text-decoration: none !important;
  border: none !important;
  color: #8fa0b3 !important;
  margin-bottom: 6px;
  transition: color 120ms cubic-bezier(0.4, 0, 0.2, 1);
}
.microblog-sidebar__time-link:hover {
  color: var(--accent) !important;
}
.microblog-sidebar__time {
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}
.microblog-sidebar__permalink-icon {
  margin-left: 6px;
  font-size: 0.75rem;
  color: #556679;
  font-weight: bold;
  transition: color 120ms cubic-bezier(0.4, 0, 0.2, 1);
}
.microblog-sidebar__time-link:hover .microblog-sidebar__permalink-icon {
  color: var(--accent);
}

/* The cited article — primary headline of a link-post */
.microblog-sidebar__citation {
  font-size: 0.9rem;
  line-height: 1.35;
  margin-bottom: 8px;
  color: #c8d3df;
}
.microblog-sidebar__citation p {
  margin: 0;
}
.microblog-sidebar__citation a {
  color: #ffffff !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-weight: 600;
  transition: color 120ms cubic-bezier(0.4, 0, 0.2, 1), border-color 120ms cubic-bezier(0.4, 0, 0.2, 1);
}
.microblog-sidebar__citation a:hover {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}
.microblog-sidebar__citation a::after {
  content: " ↗";
  font-size: 0.75em;
  opacity: 0.6;
}

/* The user's take — secondary excerpt below the citation */
.microblog-sidebar__take {
  display: block;
  color: #8fa0b3 !important;
  text-decoration: none !important;
  border: none !important;
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.4;
  padding-left: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.08) !important;
  transition: color 120ms cubic-bezier(0.4, 0, 0.2, 1), border-color 120ms cubic-bezier(0.4, 0, 0.2, 1);
}
.microblog-sidebar__take:hover {
  color: #c8d3df !important;
  border-left-color: var(--accent) !important;
}

.microblog-sidebar__footer {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
}
.microblog-sidebar__footer a {
  color: #8fa0b3 !important;
  text-decoration: none !important;
  border: none !important;
}
.microblog-sidebar__footer a:hover {
  color: var(--accent) !important;
}

/* Single + list page styles for /micro/ */
.micro-list__header {
  margin-bottom: 32px;
}
.micro-list__header h1 {
  margin-bottom: 4px;
}
.micro-list__description {
  color: #8fa0b3;
  margin: 0;
}

.micro-list .micro-entry {
  padding: 20px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.micro-list .micro-entry:last-child {
  border-bottom: none;
}

.micro-entry__meta {
  font-size: 0.85rem;
  color: #8fa0b3;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.micro-entry__meta a {
  color: #8fa0b3 !important;
  text-decoration: none !important;
  border: none !important;
}
.micro-entry__meta a:hover {
  color: var(--accent) !important;
}
.micro-entry__meta time::before {
  content: "~$ ";
  color: #556679;
}
.micro-entry__permalink-icon {
  margin-left: 8px;
  color: #556679;
  font-weight: bold;
  transition: color 120ms cubic-bezier(0.4, 0, 0.2, 1);
}
.micro-entry__meta a:hover .micro-entry__permalink-icon {
  color: var(--accent);
}

/* Mark external links in entry bodies so it's clear they leave the site */
.micro-entry__content a[href^="http"]:not([href*="mcculleytech.github.io"])::after {
  content: " ↗";
  font-size: 0.75em;
  opacity: 0.6;
}

.micro-entry__title {
  font-size: 1.1rem;
  margin: 0 0 8px 0;
  color: #ffffff;
}
.micro-entry__title a {
  color: #ffffff !important;
}
.micro-entry__title a:hover {
  color: var(--accent) !important;
}

.micro-entry__content {
  color: var(--color);
}
.micro-entry__content p:first-child {
  margin-top: 0;
}
.micro-entry__content p:last-child {
  margin-bottom: 0;
}

.micro-entry--single {
  padding: 16px 0 24px;
}
.micro-entry--single .micro-entry__content {
  font-size: 1rem;
  line-height: 1.6;
}

.micro-entry__nav {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
}
.micro-entry__nav a {
  color: #8fa0b3 !important;
  text-decoration: none !important;
}
.micro-entry__nav a:hover {
  color: var(--accent) !important;
}
