/* Jinnuo Resources article content */
.jn-article-prose,
.editor-styles-wrapper {
  --jn-ink: #111111;
  --jn-body: #5f5f5f;
  --jn-muted: #858585;
  --jn-gold: #c8a45d;
  --jn-gold-dark: #6f572a;
  --jn-line: #dedbd5;
  --jn-line-soft: #e8e5df;
  --jn-surface: #ffffff;
  --jn-warm: #faf8f4;
}

/* Editorial heading rhythm */
.jn-article-prose h2,
.editor-styles-wrapper h2 {
  margin: 46px 0 18px;
  color: var(--jn-ink);
  font-size: clamp(27px, 2.35vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: normal;
  scroll-margin-top: 135px;
}
.jn-article-prose h3,
.editor-styles-wrapper h3 {
  margin: 32px 0 12px;
  color: var(--jn-ink);
  font-size: clamp(21px, 1.7vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: pretty;
  scroll-margin-top: 135px;
}
.jn-article-prose h4,
.editor-styles-wrapper h4 {
  margin: 26px 0 10px;
  color: var(--jn-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  scroll-margin-top: 135px;
}
.jn-article-prose > h2:first-child,
.jn-article-prose > h3:first-child,
.editor-styles-wrapper > h2:first-child,
.editor-styles-wrapper > h3:first-child { margin-top: 0; }
.jn-article-prose p + h2,
.jn-article-prose ul + h2,
.jn-article-prose ol + h2,
.jn-article-prose figure + h2 { margin-top: 48px; }

/* Links: warm editorial accent with clear hover */
.jn-article-prose a:not(.wp-element-button),
.editor-styles-wrapper a:not(.wp-element-button) {
  color: var(--jn-gold-dark);
  text-decoration-line: underline;
  text-decoration-color: rgba(200, 164, 93, .65);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.jn-article-prose a:not(.wp-element-button):hover,
.jn-article-prose a:not(.wp-element-button):focus-visible,
.editor-styles-wrapper a:not(.wp-element-button):hover {
  color: var(--jn-ink);
  text-decoration-color: var(--jn-gold);
}

/* Tables: one clean outer frame, quiet internal rules */
.jn-article-prose .wp-block-table,
.editor-styles-wrapper .wp-block-table {
  width: 100%;
  margin: 32px 0;
  overflow-x: auto;
  border: 1px solid var(--jn-line);
  border-radius: 12px;
  background: var(--jn-surface);
  box-shadow: 0 1px 0 rgba(17,17,17,.025);
}
.jn-article-prose .wp-block-table table,
.editor-styles-wrapper .wp-block-table table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  border: 0 !important;
  border-collapse: separate;
  border-spacing: 0;
}
.jn-article-prose .wp-block-table thead,
.editor-styles-wrapper .wp-block-table thead { background: #f2efe9; }
.jn-article-prose .wp-block-table th,
.jn-article-prose .wp-block-table td,
.editor-styles-wrapper .wp-block-table th,
.editor-styles-wrapper .wp-block-table td {
  border: 0 !important;
  text-align: left;
  vertical-align: top;
}
.jn-article-prose .wp-block-table th,
.editor-styles-wrapper .wp-block-table th {
  padding: 15px 17px;
  color: var(--jn-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.jn-article-prose .wp-block-table td,
.editor-styles-wrapper .wp-block-table td {
  padding: 16px 17px;
  color: var(--jn-body);
  font-size: 14px;
  line-height: 1.65;
}
.jn-article-prose .wp-block-table tr > *:not(:last-child),
.editor-styles-wrapper .wp-block-table tr > *:not(:last-child) {
  border-right: 1px solid var(--jn-line-soft) !important;
}
.jn-article-prose .wp-block-table thead tr > *,
.jn-article-prose .wp-block-table tbody tr:not(:last-child) > *,
.editor-styles-wrapper .wp-block-table thead tr > *,
.editor-styles-wrapper .wp-block-table tbody tr:not(:last-child) > * {
  border-bottom: 1px solid var(--jn-line-soft) !important;
}
.jn-article-prose .wp-block-table tbody td:first-child,
.editor-styles-wrapper .wp-block-table tbody td:first-child {
  color: var(--jn-ink);
  font-weight: 650;
}
.jn-article-prose .wp-block-table tbody tr:nth-child(even),
.editor-styles-wrapper .wp-block-table tbody tr:nth-child(even) { background: #fcfbf9; }
.jn-article-prose .wp-block-table tbody tr:hover,
.editor-styles-wrapper .wp-block-table tbody tr:hover { background: var(--jn-warm); }
.jn-article-prose .wp-block-table figcaption,
.editor-styles-wrapper .wp-block-table figcaption {
  margin: 0;
  padding: 11px 16px;
  color: var(--jn-muted);
  font-size: 12px;
  background: var(--jn-warm);
  border-top: 1px solid var(--jn-line-soft);
}

/* Buyer / manufacturing notes */
.jn-article-prose blockquote.wp-block-quote,
.editor-styles-wrapper blockquote.wp-block-quote {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 30px 0;
  padding: 24px 26px;
  border: 0;
  border-left: 4px solid var(--jn-gold);
  border-radius: 0 12px 12px 0;
  background: #f5f3ef;
  box-shadow: none;
  font-style: normal;
}
.jn-article-prose blockquote.wp-block-quote cite,
.editor-styles-wrapper blockquote.wp-block-quote cite {
  order: 1;
  color: #896c33;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-style: normal;
}
.jn-article-prose blockquote.wp-block-quote p,
.editor-styles-wrapper blockquote.wp-block-quote p {
  order: 2;
  margin: 0;
  color: #4f4f4f;
  font-size: 15px;
  line-height: 1.8;
  font-style: normal;
}

/* Rank Math FAQ */
.jn-article-prose .rank-math-block {
  display: grid;
  gap: 12px;
  margin: 28px 0 8px;
}
.jn-article-prose .rank-math-list-item {
  margin: 0;
  padding: 21px 23px;
  border: 1px solid var(--jn-line);
  border-radius: 10px;
  background: var(--jn-surface);
}
.jn-article-prose .rank-math-question {
  margin: 0 0 9px;
  color: var(--jn-ink);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}
.jn-article-prose .rank-math-answer,
.jn-article-prose .rank-math-answer p {
  margin: 0;
  color: var(--jn-body);
  font-size: 15px;
  line-height: 1.75;
}

/* Desktop TOC: only the wrapper sticks */
.jn-sticky-sidebar {
  display: block;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c9c4ba transparent;
}
.jn-sticky-sidebar > .brxe-heading {
  margin: 0 0 10px;
  padding: 0 3px;
}
.jn-table-of-contents {
  position: static !important;
  top: auto !important;
  width: 100%;
  overflow: visible;
  padding: 8px;
  border: 1px solid var(--jn-line);
  border-radius: 12px;
  background: var(--jn-surface);
}
.jn-table-of-contents .toc-list {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  list-style: none;
}
.jn-table-of-contents .toc-list-item + .toc-list-item {
  border-top: 1px solid #eeeae3;
}
.jn-table-of-contents .toc-link {
  display: block;
  padding: 10px 11px;
  border-left: 2px solid transparent;
  color: #68645e;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.jn-table-of-contents .toc-link:hover {
  color: var(--jn-ink);
  background: #fbfaf7;
}
.jn-table-of-contents .toc-link.is-active-link {
  color: var(--jn-ink);
  font-weight: 700;
  border-left-color: var(--jn-gold);
  background: var(--jn-warm);
}

/* Related guide cards */
.jn-related-card {
  width: 100%;
}
.jn-related-card .related-posts {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 0;
  padding: 0;
}
.jn-related-card .repeater-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--jn-line);
  border-radius: 12px;
  background: var(--jn-surface);
  transition: transform .2s ease, border-color .2s ease;
}
.jn-related-card .repeater-item:hover {
  transform: translateY(-3px);
  border-color: #c8b98f;
}
.jn-related-card figure,
.jn-related-card figure a {
  display: block;
  width: 100%;
  margin: 0;
}
.jn-related-card img {
  display: block;
  width: 100%;
  height: 220px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.jn-related-card .post-content {
  width: 100%;
  padding: 22px;
  background: var(--jn-surface);
}
.jn-related-card .post-content h3,
.jn-related-card .post-content p { margin: 0; }
.jn-related-card .post-content h3 a {
  color: var(--jn-ink);
  text-decoration: none;
}
.jn-related-card .post-content h3 a:hover { color: var(--jn-gold-dark); }

/* Final CTA */
.jn-final-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}
.jn-final-cta-panel > div:first-child {
  max-width: 760px;
}
.jn-final-cta-panel > div:first-child > * { margin-left: 0; margin-right: 0; }
.jn-final-cta-panel > div:first-child .brxe-heading {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.18;
  text-wrap: pretty;
}
.jn-final-cta-panel > div:last-child {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: auto;
}
.jn-final-cta-panel .jn-btn-primary {
  background: var(--jn-ink);
  border-color: var(--jn-ink);
  color: #ffffff;
}
.jn-final-cta-panel .jn-btn-primary:hover {
  background: var(--jn-gold);
  border-color: var(--jn-gold);
  color: var(--jn-ink);
}
.jn-final-cta-panel .jn-btn-secondary {
  background: transparent;
  border-color: #aaa49a;
  color: var(--jn-ink);
}
.jn-final-cta-panel .jn-btn-secondary:hover {
  background: #ffffff;
  border-color: var(--jn-ink);
  color: var(--jn-ink);
}

@media (max-width: 991px) {
  .jn-related-card .related-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jn-final-cta-panel { grid-template-columns: 1fr; gap: 24px; }
  .jn-final-cta-panel > div:last-child {
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 767px) {
  .jn-article-prose h2 { font-size: 27px; margin-top: 40px; }
  .jn-article-prose h3 { font-size: 21px; margin-top: 28px; }
  .jn-article-prose .wp-block-table table,
  .editor-styles-wrapper .wp-block-table table { min-width: 660px; }
  .jn-article-prose .rank-math-list-item { padding: 18px; }
  .jn-related-card .related-posts { grid-template-columns: 1fr; }
  .jn-related-card img { height: auto; }
  .jn-final-cta-panel > div:last-child {
    flex-direction: column;
    align-items: stretch;
  }
  .jn-final-cta-panel .bricks-button { width: 100%; justify-content: center; }
}

/* Specificity guards against Bricks generated element CSS */
body .jn-table-of-contents { border: 1px solid #dedbd5 !important; border-radius: 12px !important; background: #ffffff !important; }
body .jn-final-cta-panel > div:last-child { width: max-content; max-width: 100%; justify-self: end; }
@media (max-width: 991px) { body .jn-final-cta-panel > div:last-child { width: 100%; justify-self: stretch; } }

/* Article refinement pass: compact headings, independent TOC, unified CTA colors */
.jn-article-prose h2, .editor-styles-wrapper h2 { margin-top: 32px; margin-bottom: 14px; font-size: clamp(25px, 1.9vw, 29px); line-height: 1.24; letter-spacing: -0.02em; }
.jn-article-prose p + h2, .jn-article-prose ul + h2, .jn-article-prose ol + h2, .jn-article-prose figure + h2 { margin-top: 34px; }
body .jn-sticky-sidebar { position: static !important; top: auto !important; display: block; max-height: none; overflow: visible; }
body .jn-table-of-contents { position: sticky !important; top: 125px !important; width: 100%; max-height: calc(100vh - 150px); overflow-y: auto; border: 1px solid #dedbd5 !important; border-radius: 10px !important; background: #ffffff !important; scrollbar-width: thin; scrollbar-color: #c9c4ba transparent; }
body .jn-sidebar-cta { position: static; margin-top: 24px; border-top-color: #c8a45d !important; background: #faf8f4; box-shadow: none; }
body .jn-sidebar-cta .brxe-heading { margin: 7px 0 8px; }
body .jn-sidebar-cta .jn-btn-primary { width: 100%; margin-top: 14px; justify-content: center; background: #111111 !important; border-color: #111111 !important; color: #ffffff !important; }
body .jn-sidebar-cta .jn-btn-primary:hover { background: #c8a45d !important; border-color: #c8a45d !important; color: #111111 !important; }
body .jn-final-cta-panel .jn-btn-primary { background: #111111 !important; border-color: #111111 !important; color: #ffffff !important; }
body .jn-final-cta-panel .jn-btn-primary:hover { background: #c8a45d !important; border-color: #c8a45d !important; color: #111111 !important; }
body .jn-final-cta-panel .jn-btn-secondary { background: #ffffff !important; border-color: #8f8a82 !important; color: #111111 !important; }
body .jn-final-cta-panel .jn-btn-secondary:hover { background: #f3ecdf !important; border-color: #111111 !important; color: #111111 !important; }
@media (max-width: 991px) { body .jn-table-of-contents { position: static !important; max-height: none; } }
@media (max-width: 767px) { .jn-article-prose h2, .editor-styles-wrapper h2 { margin-top: 29px; font-size: 25px; } }

/* Sticky sidebar revision: TOC and CTA stay together, without an inner scrollbar */
body .jn-sticky-sidebar { position: sticky !important; top: 125px !important; display: block; height: auto; max-height: none !important; overflow: visible !important; }
body .jn-table-of-contents { position: static !important; top: auto !important; max-height: none !important; overflow: visible !important; }
body .jn-table-of-contents .toc-link { padding: 7px 9px; font-size: 12.5px; line-height: 1.38; }
body .jn-sidebar-cta { margin-top: 18px; padding: 18px; }
body .jn-sidebar-cta .brxe-heading { font-size: 18px; line-height: 1.25; }
body .jn-sidebar-cta .brxe-text-basic { font-size: 13px; line-height: 1.6; }
@media (max-width: 991px) { body .jn-sticky-sidebar { position: static !important; top: auto !important; } }

/* Keep the combined sticky sidebar shorter than the desktop viewport */
body .jn-table-of-contents { padding: 6px; }
body .jn-table-of-contents .toc-link { display: block; padding: 6px 8px; font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .jn-sidebar-cta { padding: 16px; }
body .jn-sidebar-cta .brxe-heading { font-size: 17px; }
body .jn-sidebar-cta .brxe-text-basic { font-size: 12.5px; line-height: 1.5; }
body .jn-sidebar-cta .jn-btn-primary { margin-top: 10px; padding-top: 10px; padding-bottom: 10px; }

/* JN ARTICLE FINAL BALANCE 2026-07-28 */
@media (min-width: 1025px) {
  body .jn-article-header { padding-top: 38px !important; padding-bottom: 46px !important; }
  body .jn-article-header .brxe-breadcrumbs { margin-bottom: 26px !important; }
  body .jn-article-header h1,
  body .jn-article-header .brxe-post-title { max-width: 940px !important; margin: 0 auto !important; font-size: clamp(34px, 2.35vw, 40px) !important; line-height: 1.12 !important; letter-spacing: -0.025em !important; }
  body .jn-article-meta { margin-top: 18px !important; column-gap: 10px !important; row-gap: 8px !important; font-size: 14px !important; line-height: 1.5 !important; }
  body .jn-article-body-grid { align-items: stretch !important; overflow: visible !important; }
  body .jn-article-sidebar { align-self: stretch !important; height: 100% !important; min-height: 100% !important; overflow: visible !important; }
  body .jn-sticky-sidebar { position: sticky !important; top: 125px !important; width: 100% !important; height: auto !important; max-height: none !important; overflow: visible !important; z-index: 5 !important; }
  body .jn-table-of-contents { position: static !important; top: auto !important; padding: 14px 12px !important; max-height: none !important; overflow: visible !important; }
  body .jn-table-of-contents .toc-link { display: block !important; padding: 4px 8px !important; font-size: 11.5px !important; line-height: 1.4 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  body .jn-sidebar-cta { margin-top: 16px !important; padding: 18px !important; }
  body .jn-sidebar-cta .brxe-heading { font-size: 18px !important; line-height: 1.22 !important; }
  body .jn-sidebar-cta .brxe-text-basic { display: none !important; margin-top: 8px !important; font-size: 13px !important; line-height: 1.55 !important; }
  body .jn-sidebar-cta .jn-btn-primary { margin-top: 12px !important; padding-top: 11px !important; padding-bottom: 11px !important; }
}
@media (max-width: 1024px) {
  body .jn-article-header h1,
  body .jn-article-header .brxe-post-title { font-size: clamp(32px, 6vw, 38px) !important; line-height: 1.12 !important; }
}
