body:has(.home-with-sidebar) #board > .container > .row > .col-md-10 {
  flex: 0 0 100%;
  max-width: 100%;
}

.home-with-sidebar {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin: 0 auto;
  max-width: 1180px;
}

.home-sidebar {
  --sidebar-accent: #39854b;
  --sidebar-accent-hover: #2f6d3d;
  --sidebar-muted: #5e6e62;
  --sidebar-subtle: #8a988d;
  --sidebar-heat-empty: #edf3ee;
  position: static;
  min-width: 0;
}
.home-side-card { background: var(--board-bg-color); border-radius: 14px; padding: 1.1rem 1.15rem; margin-bottom: 1rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.home-profile-card { text-align: center; }
.home-profile-link { display: block; margin: -.25rem; padding: .25rem; border-radius: 12px; color: inherit; text-decoration: none; transition: transform 280ms var(--motion-spring), box-shadow 240ms var(--motion-smooth), background-color 200ms ease; }
.home-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 4px solid #e6f0e7; }
.home-profile-card h2 { margin: .65rem 0 .85rem; font-size: 1.25rem; color: var(--text-color); }
.home-profile-link:hover h2, .home-profile-link:focus-visible h2 { color: var(--sidebar-accent); }
.home-social-links { display: flex; justify-content: center; gap: .9rem; flex-wrap: wrap; }
.home-social-links a { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; color: var(--text-color); font-size: 1.35rem; line-height: 1; cursor: pointer; }
.home-social-links a:hover { color: var(--sidebar-accent); }
.home-social-links .home-feed-link { width: 2.6rem; padding: 0; }
.home-rss-icon { width: 1.35rem; height: 1.35rem; fill: currentColor; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.home-stats-card { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: .35rem; }
.home-stats-card strong, .home-stats-card span { display: block; }
.home-stats-card strong { color: var(--text-color); font-size: 1.12rem; }
.home-stats-card span { color: var(--sec-text-color); font-size: .72rem; margin-top: .2rem; }
.home-side-card h3 { color: var(--text-color); font-size: 1rem; margin: 0 0 .7rem; }
.home-heatmap { display: grid; grid-template-columns: repeat(18, 10px); grid-auto-flow: row; grid-auto-rows: 10px; gap: 3px; overflow: hidden; }
.home-heat-cell, .home-heatmap-legend i { display: block; border-radius: 2px; background: var(--sidebar-heat-empty); }
.home-heat-cell.level-1, .home-heatmap-legend .level-1 { background: #cfe5d2; }
.home-heat-cell.level-2, .home-heatmap-legend .level-2 { background: #9dcc9f; }
.home-heat-cell.level-3, .home-heatmap-legend .level-3 { background: #68ad75; }
.home-heat-cell.level-4, .home-heatmap-legend .level-4 { background: #39854b; }
.home-heatmap-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: .55rem; color: var(--sidebar-subtle); font-size: .68rem; }
.home-heatmap-legend i { width: 9px; height: 9px; }
.home-taxonomy-list a, .home-recent-list a { display: flex; justify-content: space-between; gap: .75rem; align-items: center; color: var(--sidebar-muted); font-size: .85rem; padding: .28rem 0; }
.home-taxonomy-list a:hover, .home-recent-list a:hover { color: var(--sidebar-accent); }
.home-taxonomy-list em { color: var(--sidebar-subtle); font-size: .72rem; font-style: normal; }
.home-recent-list a { align-items: flex-start; line-height: 1.35; }
.home-recent-list a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-recent-list time { flex: 0 0 auto; color: var(--sidebar-subtle); font-size: .72rem; }
.home-list-card details { margin-top: .35rem; }
.home-list-card summary { color: var(--sidebar-accent); cursor: pointer; font-size: .78rem; }
.home-list-card details[open] { display: flex; flex-direction: column; }
.home-list-card details[open] > summary { order: 2; margin-top: .35rem; }
.collapse-label { display: none; }
.home-list-card details[open] .expand-label { display: none; }
.home-list-card details[open] .collapse-label { display: inline; }
.home-taxonomy-more { margin-top: .35rem; }
.home-post-list { min-width: 0; }

:root[data-user-color-scheme="dark"] .home-sidebar {
  --sidebar-accent: #8fbd77;
  --sidebar-accent-hover: #b0d998;
  --sidebar-muted: #c4cbd5;
  --sidebar-subtle: #9ba6b5;
  --sidebar-heat-empty: #3a4451;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-user-color-scheme]) .home-sidebar {
    --sidebar-accent: #8fbd77;
    --sidebar-accent-hover: #b0d998;
    --sidebar-muted: #c4cbd5;
    --sidebar-subtle: #9ba6b5;
    --sidebar-heat-empty: #3a4451;
  }
}

@media (max-width: 767px) {
  .home-with-sidebar { display: block; }
  .home-sidebar { display: none; }
}

@media (hover: hover) and (pointer: fine) {
  .home-profile-link:hover, .home-profile-link:focus-visible { transform: translateY(-5px) scale(1.02); box-shadow: var(--motion-shadow); background: var(--board-bg-color); }
}
.home-profile-link:active { transform: translateY(1px) scale(.98); transition-duration: 90ms; }
