/* Shared navigation geometry for public pages; the article reader is excluded. */
body:not(.article-page) {
  --public-content-inset: 62px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body:not(.article-page) .blog-shell { width: min(100%, 1600px); grid-template-columns: 360px minmax(0, 1fr); }
body:not(.article-page) .sidebar { height: 100vh; height: 100dvh; padding: 32px 38px 40px; }
body:not(.article-page) .theme-button { top: 28px; left: 110px; width: 40px; height: 40px; }
body:not(.article-page) .theme-button .icon { width: 21px; height: 21px; }
body:not(.article-page) .profile { padding-left: 82px; margin: auto 0; }
body:not(.article-page) .avatar { width: 96px; height: 96px; border-radius: 12px; box-shadow: var(--shadow); }
body:not(.article-page) .avatar span { left: 14px; font-size: 67px; }
body:not(.article-page) .avatar i { width: 34px; height: 34px; }
body:not(.article-page) .profile h1 { margin: 32px 0 24px; font-size: 36px; line-height: 1.15; font-weight: 700; letter-spacing: -.035em; }
body:not(.article-page) .profile > p { font-size: 16px; line-height: 1.75; }
body:not(.article-page) .profile-socials { gap: 10px; margin: 18px 0 26px; }
body:not(.article-page) .profile-socials a { width: 28px; height: 30px; }
body:not(.article-page) .side-nav { width: 190px; gap: 4px; }
body:not(.article-page) .side-nav a { min-height: 48px; height: 48px; gap: 10px; font-size: 17px; color: var(--ink-soft); white-space: nowrap; }
body:not(.article-page) .side-nav a .icon { display: block; width: 18px; height: 18px; color: var(--ink-faint); }
body:not(.article-page) .side-nav a.active { color: var(--ink); font-weight: 600; }
body:not(.article-page) .side-nav a.active .icon { color: var(--accent); }
body:not(.article-page) .side-nav a.active::before { display: none; }
body:not(.article-page) .feed { padding: 31px 48px 70px 72px; }
body:not(.article-page) .feed-header,
body:not(.article-page) .feed-content,
body:not(.article-page) .site-footer { width: 100%; max-width: none; }
/* Preserve the approved right-aligned home layout across every destination. */
body:not(.article-page) .feed-content,
body:not(.article-page) .site-footer { width: calc(100% - var(--public-content-inset)); margin-left: var(--public-content-inset); }
/* The shared content container owns the inset, never apply it twice at home. */
body:not(.article-page) .home-page-content { margin-left: 0; }
body:not(.article-page) .feed-header { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 0; min-height: 53px; padding-bottom: 16px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
body:not(.article-page) .feed-header h2 { grid-column: 2; grid-row: 1; font-size: 18px; font-weight: 600; letter-spacing: .01em; }
body:not(.article-page) .feed-header h2 .icon { width: 16px; height: 16px; }
/* Keep the original fixed desktop search anchor; the base stylesheet switches
   it into the first header column on mobile. */
body:not(.article-page) .feed-search { width: 36px; height: 36px; border-radius: 8px; }
body:not(.article-page) .feed-search .icon { width: 19px; height: 19px; }
body:not(.article-page) .site-footer { margin-top: 32px; text-align: left; }

@media (max-width: 1050px) {
  body:not(.article-page) { --public-content-inset: 0px; }
}

@media (max-width: 1050px) and (min-width: 761px) {
  body:not(.article-page) .blog-shell { grid-template-columns: 270px minmax(0, 1fr); }
  body:not(.article-page) .sidebar { padding-inline: 28px; }
  body:not(.article-page) .theme-button { left: 44px; }
  body:not(.article-page) .profile { padding-left: 16px; }
  body:not(.article-page) .profile h1 { font-size: 30px; }
  body:not(.article-page) .feed { padding-left: 38px; padding-right: 28px; }
}
@media (min-width: 761px) and (max-height: 760px) {
  body:not(.article-page) .sidebar { padding-block: 24px; }
  body:not(.article-page) .profile h1 { margin-top: 20px; font-size: 30px; }
  body:not(.article-page) .profile-socials { margin-bottom: 18px; }
  body:not(.article-page) .side-nav a { min-height: 40px; height: 40px; }
}
@media (max-width: 760px) {
  body:not(.article-page) .blog-shell { display: block; width: 100%; }
  body:not(.article-page) .sidebar { height: auto; padding: 22px 20px 24px; }
  body:not(.article-page) .theme-button { top: 20px; right: 18px; left: auto; }
  body:not(.article-page) .profile { grid-template-columns: 72px minmax(0, 1fr); gap: 0 18px; padding: 0; margin: 0; }
  body:not(.article-page) .avatar { width: 72px; height: 72px; border-radius: 11px; }
  body:not(.article-page) .avatar span { left: 10px; font-size: 50px; }
  body:not(.article-page) .profile h1 { margin: 6px 48px 2px 0; font-size: 25px; line-height: 1.4; }
  body:not(.article-page) .profile > p { font-size: 13px; }
  body:not(.article-page) .profile-socials { gap: 12px; margin: 6px 0 0; }
  body:not(.article-page) .profile-socials a { width: 26px; height: 26px; }
  body:not(.article-page) .side-nav { min-width: 0; width: auto; gap: 12px; margin-top: 16px; }
  body:not(.article-page) .side-nav a { min-height: 40px; height: 40px; gap: 8px; font-size: 14px; }
  body:not(.article-page) .side-nav a .icon { width: 16px; height: 16px; }
  body:not(.article-page) .feed { padding: 28px 20px 50px; }
  body:not(.article-page) .feed-header { min-height: 44px; padding-bottom: 12px; margin-bottom: 20px; }
  body:not(.article-page) .feed-header h2 { font-size: 16px; }
}
