/* ===== Article/Post Page — aligned with homepage design system ===== */

.page-post {
  --home-radius: 20px;
  --home-radius-lg: 24px;
  --home-shadow-sm: 0 12px 32px rgba(15, 23, 42, 0.06);
  --home-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --home-container: 1280px;
  --home-gutter: 20px;
  --home-border: 1px solid rgba(148, 163, 184, 0.18);
  --home-text-title: #0f172a;
  --home-text-muted: #64748b;
  --home-text-faint: #94a3b8;
  font-family: var(--home-font);
  background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 240px, #ffffff 100%);
  min-height: 100vh;
}

.page-post .headband { display: none !important; }

.page-post .container.use-motion {
  width: 100%;
  max-width: none;
  padding: 0;
  background: transparent;
}

/* ===== Header ===== */
.page-post .header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100% !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.page-post .header-inner {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: var(--home-container);
  margin: 0 auto !important;
  padding: 0 var(--home-gutter) !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.page-post .site-brand-container {
  background: transparent !important;
  box-shadow: none !important;
  padding: 10px 0 !important;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
}

.page-post .site-meta {
  flex: 0 1 auto;
  text-align: left;
  padding: 0 !important;
}

.page-post .site-subtitle { display: none; }
.page-post .brand { padding: 0 !important; }
.page-post .site-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a !important;
}

.page-post .site-nav {
  position: static !important;
  display: block !important;
  width: auto !important;
  flex: 0 0 auto;
  margin: 0 !important;
  background: transparent !important;
}

.page-post .site-nav .menu {
  display: flex !important;
  align-items: center;
  gap: 2px;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.page-post .site-nav .menu-item {
  display: block !important;
  margin: 0 !important;
}

.page-post .site-nav .menu-item a {
  border-bottom: none !important;
  padding: 8px 12px !important;
  border-radius: 8px;
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-post .site-nav .menu-item a:hover,
.page-post .site-nav .menu-item-active a {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #2563eb !important;
}

.page-post .main-menu .menu-item-active a::after { display: none !important; }
.page-post .site-nav-toggle,
.page-post .site-nav-right { display: none !important; }

/* Force motion visibility */
.page-post.use-motion .brand,
.page-post.use-motion .site-title,
.page-post.use-motion .menu-item { opacity: 1 !important; top: 0 !important; }

.page-post.use-motion .post-block,
.page-post.use-motion .post-body,
.page-post.use-motion .post-header {
  opacity: 1 !important;
  top: 0 !important;
  transform: none !important;
}

/* ===== Main layout ===== */
.page-post .main-inner {
  width: calc(100% - var(--home-gutter) * 2) !important;
  max-width: var(--home-container) !important;
  margin: 0 auto !important;
  display: flex !important;
  gap: 28px;
  padding-top: 20px;
}

.page-post .content-wrap {
  flex: 1;
  min-width: 0;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Content panel */
.page-post .post-block {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
  padding: 32px 36px;
  margin-bottom: 20px;
}

/* Post meta & header */
.page-post .post-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.page-post .post-title {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.page-post .post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
}

.page-post .post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.page-post .post-meta-item-icon {
  color: #94a3b8;
  font-size: 12px;
}

.page-post .post-meta-item-text {
  margin-right: 2px;
}

.page-post .post-meta a {
  color: #2563eb !important;
  font-weight: 600;
  border-bottom: none !important;
}

/* Post body typography */
.page-post .post-body {
  color: #334155;
  font-size: 16px;
  line-height: 1.85;
}

.page-post .post-body h1,
.page-post .post-body h2,
.page-post .post-body h3,
.page-post .post-body h4 {
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  line-height: 1.35;
}

.page-post .post-body h1 { font-size: 1.65em; }
.page-post .post-body h2 {
  font-size: 1.45em;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.page-post .post-body h3 { font-size: 1.2em; }
.page-post .post-body h4 { font-size: 1.05em; }

.page-post .post-body p {
  margin: 0 0 1em;
  line-height: 1.85;
}

.page-post .post-body strong {
  color: #0f172a;
  font-weight: 700;
}

.page-post .post-body a {
  color: #2563eb;
  border-bottom: 1px solid rgba(37, 99, 235, 0.25);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.page-post .post-body a:hover {
  border-bottom-color: #2563eb;
}

.page-post .post-body ul,
.page-post .post-body ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

.page-post .post-body li {
  margin-bottom: 0.4em;
  line-height: 1.7;
}

.page-post .post-body blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  border-left: 4px solid #2563eb;
  background: rgba(37, 99, 235, 0.04);
  border-radius: 0 10px 10px 0;
  color: #475569;
  font-size: 0.95em;
  line-height: 1.7;
}

.page-post .post-body blockquote p:last-child { margin-bottom: 0; }

.page-post .post-body code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.12);
  color: #2563eb;
  font-size: 0.88em;
  font-family: "SF Mono", "Fira Code", "Fira Mono", monospace;
}

.page-post .post-body pre {
  margin: 1em 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.page-post .post-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
  border-radius: 0;
}

.page-post .post-body table {
  width: 100%;
  margin: 1.2em 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.page-post .post-body table th,
.page-post .post-body table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  text-align: left;
  font-size: 14px;
}

.page-post .post-body table th {
  background: rgba(37, 99, 235, 0.06);
  color: #0f172a;
  font-weight: 700;
}

.page-post .post-body table tr:last-child td {
  border-bottom: none;
}

.page-post .post-body hr {
  margin: 1.5em 0;
  border: none;
  height: 1px;
  background: rgba(148, 163, 184, 0.18);
}

.page-post .post-body img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  margin: 1em 0;
}

/* Thinking note */
.page-post .post-body .thinking-note {
  margin: 1.2em 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(20, 184, 166, 0.04));
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-left: 4px solid #2563eb;
}

.page-post .post-body .thinking-note h3 {
  margin-top: 0;
  color: #2563eb;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Guide card */
.page-post .post-body .guide-card {
  width: 100%;
  margin: 1.2em 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #fff;
}

.page-post .post-body .guide-card thead {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
}

.page-post .post-body .guide-card thead th {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  border: none;
  background: transparent;
}

.page-post .post-body .guide-card .guide-card-header {
  cursor: pointer;
  background: rgba(37, 99, 235, 0.06) !important;
}

.page-post .post-body .guide-card .guide-card-header td {
  padding: 10px 16px;
  font-weight: 700;
  color: #2563eb;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.page-post .post-body .guide-card td {
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.65;
}

.page-post .post-body .guide-card td strong {
  white-space: nowrap;
  font-size: 13px;
}

/* ===== Sidebar ===== */
.page-post .sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  align-self: flex-start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.page-post .sidebar-inner {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  padding: 18px 0;
}

.page-post .sidebar-nav {
  display: flex;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding: 0 16px 10px;
  gap: 12px;
}

.page-post .sidebar-nav li {
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s ease;
}

.page-post .sidebar-nav li.sidebar-nav-active {
  color: #2563eb;
}

.page-post .sidebar-panel {
  padding: 12px 16px 8px;
}

/* ===== TOC — Reading Progress Bar ===== */
.page-post .toc-progress {
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
  border-radius: 0 2px 2px 0;
  width: 0%;
  transition: width 0.15s ease;
  position: sticky;
  top: 0;
  z-index: 2;
}

/* ===== TOC Sidebar ===== */
.page-post .post-toc-wrap {
  position: relative;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Fade scroll shadows */
.page-post .post-toc-wrap::before,
.page-post .post-toc-wrap::after {
  content: '';
  position: sticky;
  display: block;
  height: 12px;
  z-index: 1;
  pointer-events: none;
}
.page-post .post-toc-wrap::before {
  top: 0;
  background: linear-gradient(180deg, #fff 0%, transparent 100%);
  margin-bottom: -12px;
}
.page-post .post-toc-wrap::after {
  bottom: 0;
  background: linear-gradient(0deg, #fff 0%, transparent 100%);
  margin-top: -12px;
}

/* ===== TOC — enhanced with scroll spy indicator ===== */
.page-post .post-toc {
  font-size: 13px;
  position: relative;
  padding: 0 4px;
}

.page-post .post-toc .nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Active indicator track */
.page-post .post-toc > .nav {
  position: relative;
}

.page-post .post-toc > .nav::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 1px;
  pointer-events: none;
}

.page-post .post-toc .nav-item {
  position: relative;
  margin: 1px 0;
}

/* Dot indicator */
.page-post .post-toc .nav-item::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.2);
  z-index: 1;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-post .post-toc .nav-item.active::before {
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 0 12px rgba(37, 99, 235, 0.15);
  transform: translateY(-50%) scale(1.1);
}

.page-post .post-toc .nav-item a {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 8px 5px 16px;
  border-radius: 8px;
  color: #94a3b8 !important;
  font-weight: 500;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.45;
  position: relative;
}

.page-post .post-toc .nav-item a:hover {
  background: rgba(37, 99, 235, 0.05);
  color: #64748b !important;
}

.page-post .post-toc .nav-item.active > a {
  color: #1e40af !important;
  font-weight: 700;
}

.page-post .post-toc .nav-item.active > a .nav-text {
  color: #2563eb;
}

/* Active left accent bar - slides in smoothly */
.page-post .post-toc .nav-item.active > a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 3px;
  background: #2563eb;
  border-radius: 0 3px 3px 0;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

/* Section number styling */
.page-post .post-toc .toc-num {
  font-size: 10px;
  font-weight: 600;
  color: #cbd5e1;
  flex-shrink: 0;
  min-width: 20px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.page-post .post-toc .nav-item.active .toc-num {
  color: #2563eb;
  font-weight: 800;
}

.page-post .post-toc .nav-item a:hover .toc-num {
  color: #94a3b8;
}

/* Nav text */
.page-post .post-toc .nav-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Child nesting */
.page-post .post-toc .nav-child {
  list-style: none;
  padding-left: 26px;
  margin: 0;
  position: relative;
}

.page-post .post-toc .nav-child .nav-item a {
  padding-left: 10px;
}

/* Depth-based sizing */
.page-post .post-toc .nav-level-3 a {
  font-size: 12px;
}

.page-post .post-toc .nav-level-3 .toc-num {
  font-size: 9px;
  min-width: 16px;
}

.page-post .post-toc .nav-level-4 a {
  font-size: 11.5px;
}

.page-post .post-toc .nav-level-4 .toc-num {
  font-size: 9px;
  min-width: 14px;
}

/* ===== Mobile Floating TOC Button ===== */
.page-post .mobile-toc-toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  color: #2563eb;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: inherit;
}

.page-post .mobile-toc-toggle:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18);
  transform: translateY(-2px);
  background: #2563eb;
  color: #fff;
}

/* Mobile TOC overlay */
.page-post .mobile-toc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.page-post .mobile-toc-overlay.active {
  display: block;
  opacity: 1;
}

.page-post .mobile-toc-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  max-height: 70vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 0 0 20px;
}

.page-post .mobile-toc-overlay.active .mobile-toc-panel {
  transform: translateY(0);
}

.page-post .mobile-toc-handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.page-post .mobile-toc-handle strong {
  font-size: 15px;
  color: #0f172a;
}

.page-post .mobile-toc-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.1);
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  font-family: inherit;
}

.page-post .mobile-toc-close:hover {
  background: rgba(148, 163, 184, 0.2);
}

.page-post .mobile-toc-body {
  padding: 8px 16px;
}

.page-post .mobile-toc-body .post-toc .nav-item a {
  padding: 7px 8px 7px 16px;
  font-size: 14px;
}

@media (max-width: 767px) {
  .page-post .mobile-toc-toggle {
    display: flex;
  }
}

/* Site overview in sidebar */
.page-post .site-overview-wrap {
  padding: 0 16px 8px;
}

.page-post .site-author {
  text-align: center;
  padding: 10px 0 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  margin-bottom: 10px;
}

.page-post .site-author-image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.2);
  margin: 0 auto 8px;
  display: block;
}

.page-post .site-author-name {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
}

.page-post .site-description {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
}

.page-post .site-state {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 8px 0 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  margin-bottom: 8px;
}

.page-post .site-state-item {
  text-align: center;
  list-style: none;
}

.page-post .site-state-item a {
  text-decoration: none !important;
  border-bottom: none !important;
}

.page-post .site-state-item-count {
  display: block;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.page-post .site-state-item-name {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}

.page-post .links-of-author {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0 4px;
}

.page-post .links-of-author-item {
  list-style: none;
}

.page-post .links-of-author-item a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.08);
  color: #475569 !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.page-post .links-of-author-item a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb !important;
}

/* Sidebar scrollbar */
.page-post .sidebar::-webkit-scrollbar {
  width: 4px;
}
.page-post .sidebar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 2px;
}

.page-post .sidebar-toggle,
.page-post #sidebar-dimmer {
  display: none !important;
}

/* ===== Footer ===== */
.page-post .back-to-top {
  right: max(16px, calc((100vw - min(100vw, var(--home-container))) / 2 + var(--home-gutter)));
}

.page-post .footer-inner {
  width: calc(100% - var(--home-gutter) * 2) !important;
  max-width: var(--home-container) !important;
  margin: 0 auto !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.page-post .footer {
  margin-top: 12px;
}

.page-post .home-footer { margin-top: var(--home-section-gap, 28px); }

.page-post .home-footer-inner {
  padding: 20px 24px !important;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  text-align: left !important;
}

.page-post .home-footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.page-post .home-footer-site { display: block; color: #0f172a; font-size: 15px; font-weight: 800; }
.page-post .home-footer-tagline { display: block; margin-top: 4px; color: #94a3b8; font-size: 12px; }
.page-post .home-footer-meta { display: flex; flex-wrap: wrap; gap: 10px; }

.page-post .home-footer-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.page-post .home-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
}

.page-post .home-footer-copy { margin: 0; color: #64748b; font-size: 12px; }
.page-post .home-footer-visitors { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; color: #94a3b8; font-size: 12px; }
.page-post .home-footer-visitor { display: inline-flex; align-items: center; gap: 6px; }

/* Hide old footer elements that are replaced by home-footer */
.page-post .footer .copyright,
.page-post .footer .powered-by {
  display: none;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .page-post .main-inner {
    flex-direction: column;
  }

  .page-post .sidebar {
    width: 100%;
    position: static;
    max-height: none;
    order: -1;
  }

  .page-post .sidebar-inner {
    padding: 14px 0;
  }

  .page-post .post-block {
    padding: 24px 20px;
  }

  .page-post .post-title {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  .page-post {
    --home-gutter: 16px;
  }

  .page-post .post-block {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .page-post .post-title {
    font-size: 20px;
  }

  .page-post .post-body {
    font-size: 15px;
  }

  .page-post .post-body pre {
    padding: 14px 16px;
    font-size: 13px;
  }

  .page-post .home-footer-inner {
    padding: 16px 18px !important;
  }

  .page-post .home-footer-top,
  .page-post .home-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-post .sidebar {
    display: none;
  }
}

@media (min-width: 1280px) {
  .page-post {
    --home-container: 1360px;
    --home-gutter: 24px;
  }

  .page-post .main-inner {
    gap: 32px;
  }

  .page-post .sidebar {
    width: 300px;
  }
}
