/* Baize default article detail page.
 * Scope stays on normal post detail templates and avoids resource/tool pages.
 */

body.single-post:not(.dark-theme) {
  --baize-article-panel: rgba(255, 255, 255, 0.94);
  --baize-article-line: rgba(214, 228, 248, 0.96);
  --baize-article-text: #101828;
  --baize-article-subtext: #475467;
  --baize-article-muted: #667085;
  --baize-article-blue: #2f80ff;
  --baize-article-deep: #1e5fd9;
  --baize-article-green: #18a36b;
  --baize-article-warm: #f59e0b;
  --baize-article-radius: 8px;
  --baize-article-shadow: 0 16px 36px rgba(36, 72, 132, 0.10);
}

body.single-post:not(.dark-theme) .baize-article-container {
  width: min(1400px, calc(100% - 64px)) !important;
  max-width: 1400px !important;
  padding-top: 22px;
  padding-bottom: 84px;
}

body.single-post:not(.dark-theme) .baize-article-crumb {
  margin-bottom: 16px;
  color: var(--baize-article-muted);
  font-size: 13px;
}

body.single-post:not(.dark-theme) .baize-article-crumb .breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
}

body.single-post:not(.dark-theme) .baize-article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 26px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--baize-article-line);
  border-radius: var(--baize-article-radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(247,251,255,0.96));
  box-shadow: var(--baize-article-shadow);
}

body.single-post:not(.dark-theme) .baize-article-hero.no-cover {
  grid-template-columns: minmax(0, 1fr);
}

body.single-post:not(.dark-theme) .baize-article-hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.single-post:not(.dark-theme) .baize-article-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

body.single-post:not(.dark-theme) .baize-article-kicker span,
body.single-post:not(.dark-theme) .baize-article-kicker a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(194, 216, 252, 0.96);
  border-radius: 999px;
  background: #eef5ff;
  color: #2268e8;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

body.single-post:not(.dark-theme) .baize-article-kicker span:first-child {
  border-color: rgba(165, 226, 197, 0.9);
  background: #ecfff6;
  color: var(--baize-article-green);
}

body.single-post:not(.dark-theme) .baize-article-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--baize-article-text);
  font-size: 40px;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
}

body.single-post:not(.dark-theme) .baize-article-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--baize-article-subtext);
  font-size: 16px;
  line-height: 1.9;
}

body.single-post:not(.dark-theme) .baize-article-authorbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

body.single-post:not(.dark-theme) .baize-article-author {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--baize-article-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--baize-article-text);
}

body.single-post:not(.dark-theme) .baize-article-author-avatar,
body.single-post:not(.dark-theme) .baize-article-author img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(238, 245, 255, 0.96);
}

body.single-post:not(.dark-theme) .baize-article-author span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body.single-post:not(.dark-theme) .baize-article-author strong {
  color: var(--baize-article-text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

body.single-post:not(.dark-theme) .baize-article-author small {
  color: var(--baize-article-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

body.single-post:not(.dark-theme) .baize-article-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.single-post:not(.dark-theme) .baize-article-meta-strip span,
body.single-post:not(.dark-theme) .baize-article-meta-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--baize-article-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--baize-article-muted);
  font-size: 13px;
  font-weight: 700;
}

body.single-post:not(.dark-theme) .baize-article-meta-strip a.baize-article-manage {
  border-color: rgba(194, 216, 252, 0.96);
  background: #eef5ff;
  color: var(--baize-article-blue);
  font-weight: 900;
}

body.single-post:not(.dark-theme) .baize-article-meta-strip a.baize-article-delete {
  border-color: rgba(255, 196, 196, 0.96);
  background: #fff1f1;
  color: #d92d20;
}

body.single-post:not(.dark-theme) .baize-article-meta-strip a.baize-article-manage:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(36, 72, 132, 0.10);
}

body.single-post:not(.dark-theme) .baize-article-cover {
  position: relative;
  height: 220px;
  max-height: 220px;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 219, 246, 0.96);
  border-radius: var(--baize-article-radius);
  background: #eaf2ff;
}

body.single-post:not(.dark-theme) .baize-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.single-post:not(.dark-theme) .baize-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
  width: 100%;
}

body.single-post:not(.dark-theme) .baize-article-main {
  min-width: 0;
  display: grid;
  gap: 20px;
}

body.single-post:not(.dark-theme) .baize-article-sidebar {
  position: sticky;
  top: 96px;
  min-width: 0;
  display: grid;
  gap: 16px;
}

body.single-post:not(.dark-theme) .baize-article-side-card {
  padding: 20px;
  border: 1px solid var(--baize-article-line);
  border-radius: var(--baize-article-radius);
  background: var(--baize-article-panel);
  box-shadow: 0 12px 28px rgba(36, 72, 132, 0.07);
}

body.single-post:not(.dark-theme) .baize-article-side-card h3 {
  margin: 0 0 14px;
  color: var(--baize-article-text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
}

body.single-post:not(.dark-theme) .baize-article-side-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body.single-post:not(.dark-theme) .baize-article-side-avatar,
body.single-post:not(.dark-theme) .baize-article-side-author img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px #eef5ff;
}

body.single-post:not(.dark-theme) .baize-article-side-author span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.single-post:not(.dark-theme) .baize-article-side-author strong {
  color: var(--baize-article-text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

body.single-post:not(.dark-theme) .baize-article-side-author small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--baize-article-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.single-post:not(.dark-theme) .baize-article-side-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

body.single-post:not(.dark-theme) .baize-article-side-identity-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  color: var(--baize-article-subtext);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

body.single-post:not(.dark-theme) .baize-article-side-identity-item img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

body.single-post:not(.dark-theme) .baize-article-side-identity-item em {
  color: inherit;
  font-style: normal;
}

body.single-post:not(.dark-theme) .baize-article-side-identity-item.is-level {
  color: var(--baize-article-blue);
}

body.single-post:not(.dark-theme) .baize-article-side-identity-item.is-vip {
  color: #7a4f01;
}

body.single-post:not(.dark-theme) .baize-article-side-identity-item.is-auth {
  color: #157f57;
}

body.single-post:not(.dark-theme) .baize-article-side-identity-item.is-auth .user-auth-icon {
  width: 16px;
  height: 16px;
  color: #1f9d6a;
}

body.single-post:not(.dark-theme) .baize-article-side-identity-item.is-auth .user-auth-icon svg,
body.single-post:not(.dark-theme) .baize-article-side-identity-item.is-auth .user-auth-icon .icon {
  width: 16px;
  height: 16px;
}

body.single-post:not(.dark-theme) .baize-article-side-medal-row {
  margin-top: 12px;
}

body.single-post:not(.dark-theme) .baize-article-side-medals {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--baize-article-muted);
  font-size: 12px;
  font-weight: 700;
}

body.single-post:not(.dark-theme) .baize-article-side-medals img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

body.single-post:not(.dark-theme) .baize-article-side-medals .ml3 {
  margin-left: 4px !important;
}

body.single-post:not(.dark-theme) .baize-article-side-medals .fa-angle-right {
  font-size: 12px;
}

body.single-post:not(.dark-theme) .baize-article-side-tags,
body.single-post:not(.dark-theme) .baize-article-side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.single-post:not(.dark-theme) .baize-article-side-tags a,
body.single-post:not(.dark-theme) .baize-article-side-action {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(194, 216, 252, 0.96);
  border-radius: 999px;
  background: #eef5ff;
  color: var(--baize-article-blue);
  font-size: 12px;
  font-weight: 900;
}

body.single-post:not(.dark-theme) .baize-article-side-action.is-delete {
  border-color: rgba(255, 196, 196, 0.96);
  background: #fff1f1;
  color: #d92d20;
}

body.single-post:not(.dark-theme) .baize-article-panel,
body.single-post:not(.dark-theme) .baize-article-main > .theme-box,
body.single-post:not(.dark-theme) .baize-article-main > .zib-widget,
body.single-post:not(.dark-theme) .baize-article-comments,
body.single-post:not(.dark-theme) .baize-article-comments > .theme-box,
body.single-post:not(.dark-theme) .baize-article-comments > .zib-widget,
body.single-post:not(.dark-theme) .baize-article-layout > .sidebar .zib-widget,
body.single-post:not(.dark-theme) .baize-article-layout > .sidebar .theme-box {
  border: 1px solid var(--baize-article-line) !important;
  border-radius: var(--baize-article-radius) !important;
  background: var(--baize-article-panel) !important;
  box-shadow: 0 12px 28px rgba(36, 72, 132, 0.07) !important;
}

body.single-post:not(.dark-theme) .baize-article-panel {
  padding: 0 !important;
  overflow: hidden;
}

body.single-post:not(.dark-theme) .baize-article-panel .article-header {
  display: none !important;
  padding: 0 !important;
  background: transparent !important;
}

body.single-post:not(.dark-theme) .baize-article-panel .article-avatar {
  display: none !important;
}

body.single-post:not(.dark-theme) .baize-article-panel .single-metabox {
  display: none !important;
}

body.single-post:not(.dark-theme) .baize-article-panel .single-metabox .post-metas {
  color: var(--baize-article-muted);
  font-size: 13px;
}

body.single-post:not(.dark-theme) .baize-article-panel .article-content {
  padding: 30px;
}

body.single-post:not(.dark-theme) .baize-article-panel .wp-posts-content {
  padding: 0 !important;
  background: transparent !important;
  color: var(--baize-article-subtext);
  font-size: 16px;
  line-height: 2;
}

body.single-post:not(.dark-theme) .baize-article-panel .wp-posts-content > :first-child {
  margin-top: 0;
}

body.single-post:not(.dark-theme) .baize-article-panel .wp-posts-content h2 {
  margin-top: 34px;
  margin-bottom: 14px;
  color: var(--baize-article-text);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
}

body.single-post:not(.dark-theme) .baize-article-panel .wp-posts-content h3 {
  margin-top: 26px;
  margin-bottom: 12px;
  color: var(--baize-article-text);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0;
}

body.single-post:not(.dark-theme) .baize-article-panel .wp-posts-content p,
body.single-post:not(.dark-theme) .baize-article-panel .wp-posts-content li {
  color: var(--baize-article-subtext);
  line-height: 2;
}

body.single-post:not(.dark-theme) .baize-article-panel .wp-posts-content blockquote,
body.single-post:not(.dark-theme) .baize-article-panel .wp-posts-content .notice {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid rgba(194, 216, 252, 0.96);
  border-left: 4px solid var(--baize-article-blue);
  border-radius: var(--baize-article-radius);
  background: #f7faff;
  color: #344054;
}

body.single-post:not(.dark-theme) .baize-article-panel .wp-posts-content img {
  border-radius: var(--baize-article-radius);
}

body.single-post:not(.dark-theme) .baize-article-panel .separator,
body.single-post:not(.dark-theme) .baize-article-panel .article-tags {
  border-top: 1px solid var(--baize-article-line) !important;
  background: transparent !important;
}

body.single-post:not(.dark-theme) .baize-article-panel .article-tags {
  padding: 18px 0 0 !important;
}

body.single-post:not(.dark-theme) .baize-article-panel .post-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-bottom: 28px;
}

body.single-post:not(.dark-theme) .baize-article-panel .post-actions .action {
  border: 1px solid rgba(194, 216, 252, 0.96) !important;
  border-radius: var(--baize-article-radius) !important;
  background: #eef5ff !important;
  color: var(--baize-article-blue) !important;
  box-shadow: none !important;
}

body.single-post:not(.dark-theme) .baize-article-panel .post-actions .action:hover,
body.single-post:not(.dark-theme) .baize-article-panel .post-actions .action.active,
body.single-post:not(.dark-theme) .baize-article-panel .post-actions .action.actived {
  border-color: var(--baize-article-blue) !important;
  background: linear-gradient(135deg, var(--baize-article-blue), var(--baize-article-deep)) !important;
  color: #fff !important;
}

body.single-post:not(.dark-theme) .baize-article-main > .theme-box,
body.single-post:not(.dark-theme) .baize-article-main > .zib-widget,
body.single-post:not(.dark-theme) .baize-article-comments,
body.single-post:not(.dark-theme) .baize-article-comments > .theme-box,
body.single-post:not(.dark-theme) .baize-article-comments > .zib-widget {
  padding: 22px !important;
}

body.single-post:not(.dark-theme) .baize-article-comments > .theme-box,
body.single-post:not(.dark-theme) .baize-article-comments > .zib-widget {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-post:not(.dark-theme) .baize-article-main > .posts-related,
body.single-post:not(.dark-theme) .baize-article-main > .author,
body.single-post:not(.dark-theme) .baize-article-main > .article-nav {
  overflow: hidden;
}

body.single-post:not(.dark-theme) .baize-article-layout > .sidebar {
  min-width: 0;
}

body.single-post:not(.dark-theme) .baize-article-layout > .sidebar .zib-widget,
body.single-post:not(.dark-theme) .baize-article-layout > .sidebar .theme-box {
  padding: 18px !important;
  overflow: hidden;
}

body.single-post:not(.dark-theme) .baize-article-layout > .sidebar .box-body {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.single-post:not(.dark-theme) .baize-article-layout > .sidebar .title-theme,
body.single-post:not(.dark-theme) .baize-article-layout > .sidebar .box-body > h3:first-child {
  color: var(--baize-article-text);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

@media (max-width: 1199px) {
  body.single-post:not(.dark-theme) .baize-article-container {
    width: min(1400px, calc(100% - 40px)) !important;
  }

  body.single-post:not(.dark-theme) .baize-article-layout {
    grid-template-columns: 1fr;
  }

  body.single-post:not(.dark-theme) .baize-article-hero {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  body.single-post:not(.dark-theme) .baize-article-cover,
  body.single-post:not(.dark-theme) .baize-article-cover img {
    height: 190px;
    max-height: 190px;
  }
}

@media (max-width: 767px) {
  body.single-post:not(.dark-theme) .baize-article-container {
    width: min(1400px, calc(100% - 24px)) !important;
    padding-top: 14px;
  }

  body.single-post:not(.dark-theme) .baize-article-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  body.single-post:not(.dark-theme) .baize-article-hero h1 {
    font-size: 30px;
  }

  body.single-post:not(.dark-theme) .baize-article-hero p,
  body.single-post:not(.dark-theme) .baize-article-panel .wp-posts-content {
    font-size: 15px;
  }

  body.single-post:not(.dark-theme) .baize-article-panel .article-header {
    padding: 0 !important;
  }

  body.single-post:not(.dark-theme) .baize-article-panel .article-content {
    padding: 18px 18px 24px;
  }

  body.single-post:not(.dark-theme) .baize-article-cover,
  body.single-post:not(.dark-theme) .baize-article-cover img {
    width: 100%;
    height: 180px;
    max-height: 180px;
  }
}
