/* Editorial layout for WordPress articles. */
.jn-single-post .single-post-main { padding-top: 7rem; background: var(--jn-color-bg); }
.jn-single-post .single-post-section { padding: 2rem 0 6rem; }
.jn-single-post .single-post-grid { grid-template-columns: minmax(0, 1fr); gap: 4rem; align-items: start; }
.jn-single-post .post-content, .jn-single-post .post-sidebar { min-width: 0; }
.jn-single-post .post-content .post-featured-image { overflow: hidden; margin-bottom: 2rem; border-radius: 8px; background: var(--jn-color-surface-muted); }
.jn-single-post .post-content .post-featured-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.jn-single-post .post-content .post-meta { margin-bottom: 1rem; gap: .75rem; flex-wrap: wrap; }
.jn-single-post .post-content .post-title { margin: 0 0 2rem; font-family: var(--jn-font-serif); font-size: clamp(2.1rem, 3.5vw, 3.4rem); line-height: 1.12; font-weight: 500; letter-spacing: -.035em; color: var(--jn-color-text); overflow-wrap: anywhere; }
.jn-single-post .post-content .post-toc { margin: 0 0 2.5rem; padding: 1.5rem; border: 1px solid var(--jn-color-border); border-radius: 8px; background: var(--jn-color-surface-soft); }
.jn-single-post .post-content .post-toc-head { margin-bottom: .75rem; }
.jn-single-post .post-content .post-toc-title { color: var(--jn-color-text); }
.jn-single-post .post-content .post-toc-toggle { color: #715622; }
.jn-single-post .post-content .post-toc-list { gap: .15rem; }
.jn-single-post .post-content .post-toc-list a { line-height: 1.5; }
.jn-single-post .post-content .post-body { font-size: 1rem; line-height: 1.85; color: #43484e; overflow-wrap: break-word; }
.jn-single-post .post-content .post-body h2, .jn-single-post .post-content .post-body h3, .jn-single-post .post-content .post-body h4 { color: var(--jn-color-text); }
.jn-single-post .post-content .post-body h2 { margin: 3.5rem 0 1.25rem; font-family: var(--jn-font-serif); font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
.jn-single-post .post-content .post-body h3 { margin: 2.25rem 0 .8rem; font-size: 1.2rem; line-height: 1.4; }
.jn-single-post .post-content .post-body a { color: #795e2b; text-decoration-color: #c6a15b; text-underline-offset: .2em; }
.jn-single-post .post-content .post-body blockquote { margin: 1.5rem 0 2rem; padding: 1rem 1.4rem; border-left: 3px solid #c6a15b; background: var(--jn-color-surface-soft); color: var(--jn-color-text); font-style: normal; }
.jn-single-post .post-content .post-body img { max-width: 100%; height: auto; }
.jn-single-post .post-body figure { max-width: 100%; margin: 2rem 0; }
.jn-single-post .post-body figcaption { margin-top: .5rem; font-size: .85rem; color: #687079; }
.jn-single-post .post-body .wp-block-table { overflow-x: auto; }
.jn-single-post .post-body table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.6; }
.jn-single-post .post-body th, .jn-single-post .post-body td { padding: .9rem; border: 1px solid var(--jn-color-border); text-align: left; vertical-align: top; }
.jn-single-post .post-body th, .jn-single-post .post-body tr:first-child td { background: var(--jn-color-surface-soft); font-weight: 700; }
.jn-single-post .post-sidebar { position: static; max-height: none; overflow: visible; }
.jn-single-post .post-sidebar .sidebar-widget { padding: 1.5rem; border: 1px solid var(--jn-color-border); border-radius: 8px; background: #fff; }
.jn-single-post .post-sidebar .sidebar-widget h4 { font-family: var(--jn-font-serif); font-size: 1.6rem; font-weight: 500; color: var(--jn-color-text); }
.jn-single-post .post-sidebar .jn-infility-form :is(.form-grid, .infility-form-grid) { grid-template-columns: minmax(0, 1fr); }
.jn-single-post .post-sidebar input, .jn-single-post .post-sidebar select, .jn-single-post .post-sidebar textarea { max-width: 100%; min-width: 0; }
.jn-single-post .post-content .post-author-card { background: var(--jn-color-surface-soft); border-color: var(--jn-color-border); }
@media (min-width: 992px) {
  .jn-single-post .single-post-grid { grid-template-columns: minmax(0, 2fr) minmax(290px, .9fr); gap: clamp(3rem, 5vw, 5rem); }
}
@media (max-width: 767px) {
  .jn-single-post .single-post-main { padding-top: 5.5rem; }
  .jn-single-post .single-post-section { padding: 1.5rem 0 4rem; }
  .jn-single-post .single-post-grid { gap: 3rem; }
  .jn-single-post .post-content .post-featured-image { margin-bottom: 1.5rem; }
  .jn-single-post .post-content .post-toc { padding: 1.1rem; }
  .jn-single-post .post-content .post-body h2 { margin-top: 2.75rem; }
}
/* The inquiry shortcode outputs multi-column flex rows; the sidebar is too narrow for them. */
.jn-single-post .post-sidebar .jn-infility-form .infility-form-539 .infility-form-col { flex-basis: 100%; }
/* Some imported articles use a bare table rather than a WordPress table block. */
.jn-single-post .post-body > table { display: block; max-width: 100%; overflow-x: auto; }

/* Article navigation and inquiry layout */
.jn-single-post .post-toc-mobile { display: none; }
.jn-single-post .post-sidebar { align-self: stretch; }
.jn-single-post .post-sidebar-sticky { position: sticky; top: 6.25rem; display: flex; flex-direction: column; gap: 1.25rem; max-height: calc(100vh - 7.5rem); }
.jn-single-post .post-toc-desktop { min-height: 0; display: flex; flex-direction: column; padding: 0 0 0 1rem; border-left: 1px solid var(--jn-color-border); }
.jn-single-post .post-toc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.jn-single-post .post-toc-title { color: var(--jn-color-text); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.jn-single-post .post-toc-list { list-style: none; margin: 0; padding: 0; counter-reset: post-toc; }
.jn-single-post .post-toc-desktop .post-toc-list { overflow-y: auto; overscroll-behavior: contain; }
.jn-single-post .post-toc-list li { counter-increment: post-toc; margin: 0; padding: 0; }
.jn-single-post .post-toc-list a { display: flex; gap: .7rem; padding: .42rem .6rem; border-left: 2px solid transparent; color: #606a75; font-size: .8rem; line-height: 1.45; text-decoration: none; transition: color .2s, border-color .2s, background .2s; }
.jn-single-post .post-toc-list a::before { content: counter(post-toc, decimal-leading-zero); color: #929aa1; font-size: .7rem; font-weight: 700; }
.jn-single-post .post-toc-list a:hover, .jn-single-post .post-toc-list a.is-active { color: #725522; border-left-color: #c6a15b; background: #f5f2ec; }
.jn-single-post .post-sidebar-cta { flex: none; padding: 1.25rem; border-radius: 8px; background: #f2ede3; }
.jn-single-post .post-sidebar-cta-label, .jn-single-post .post-inquiry-eyebrow { color: #80632f; font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.jn-single-post .post-sidebar-cta h2 { margin: .55rem 0 .4rem; color: var(--jn-color-text); font-family: var(--jn-font-serif); font-size: 1.35rem; line-height: 1.25; font-weight: 500; }
.jn-single-post .post-sidebar-cta p { margin: 0 0 .9rem; color: #626469; font-size: .8rem; line-height: 1.5; }
.jn-single-post .post-sidebar-cta a { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: .7rem .9rem; border-radius: 999px; background: #b99b52; color: #fff; font-size: .75rem; font-weight: 700; text-decoration: none; }
.jn-single-post .post-sidebar-cta a:hover { background: #947639; }
.jn-single-post .post-body h2[id], .jn-single-post #post-inquiry { scroll-margin-top: 7rem; }
.jn-single-post .post-inquiry { margin-top: 3.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--jn-color-border); border-radius: 8px; background: #fff; }
.jn-single-post .post-inquiry-intro { margin-bottom: 1.75rem; }
.jn-single-post .post-inquiry-intro h2 { margin: .5rem 0; font-family: var(--jn-font-serif); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 500; line-height: 1.2; }
.jn-single-post .post-inquiry-intro p { margin: 0; color: #626469; line-height: 1.65; }
.jn-single-post .post-inquiry :is(input, select, textarea) { max-width: 100%; min-width: 0; }
.jn-single-post .post-content > .sidebar-widget { margin-top: 3rem; }
.jn-single-post .post-content > .sidebar-widget h4 { font-family: var(--jn-font-serif); font-size: 1.6rem; }
@media (min-width: 992px) {
  .jn-single-post .single-post-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 320px); }
}
@media (max-width: 991px) {
  .jn-single-post .post-sidebar { display: none; }
  .jn-single-post .post-content .post-toc-mobile { display: block; margin: 0 0 2rem; padding: 1rem 1.1rem; }
  .jn-single-post .post-toc-mobile .post-toc-head { margin: 0; }
  .jn-single-post .post-toc-mobile .post-toc-list:not([hidden]) { margin-top: .8rem; }
  .jn-single-post .post-toc-toggle { border: 0; background: none; font-size: .8rem; font-weight: 700; cursor: pointer; }
}
@media (prefers-reduced-motion: no-preference) { .jn-single-post { scroll-behavior: smooth; } }
.jn-single-post .post-toc-list[hidden] { display: none !important; }

/* Related articles: a three-column card grid within the article. */
.jn-single-post .post-content > .sidebar-widget { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--jn-color-border); border-radius: 8px; background: #fff; }
.jn-single-post .post-content > .sidebar-widget h4 { margin: 0 0 1.25rem; line-height: 1.25; }
.jn-single-post .post-content .related-posts-sidebar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.jn-single-post .post-content .related-posts-sidebar .related-item { display: flex; flex-direction: column; gap: .8rem; min-width: 0; padding: 0 0 .25rem; border: 0; background: transparent; }
.jn-single-post .post-content .related-posts-sidebar .related-item:hover { background: transparent; }
.jn-single-post .post-content .related-posts-sidebar .related-thumb { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 6px; background: var(--jn-color-surface-soft); }
.jn-single-post .post-content .related-posts-sidebar .related-thumb img { display: block; transition: transform .25s ease; }
.jn-single-post .post-content .related-posts-sidebar .related-item:hover .related-thumb img { transform: scale(1.04); }
.jn-single-post .post-content .related-posts-sidebar .related-info { justify-content: flex-start; gap: .5rem; }
.jn-single-post .post-content .related-posts-sidebar .related-title { color: var(--jn-color-text); font-size: .9rem; font-weight: 700; line-height: 1.45; }
.jn-single-post .post-content .related-posts-sidebar .related-item:hover .related-title { color: #80632f; }
.jn-single-post .post-content .related-posts-sidebar .related-date { font-size: .75rem; }
@media (max-width: 600px) {
  .jn-single-post .post-content .related-posts-sidebar { grid-template-columns: 1fr; gap: 1.25rem; }
  .jn-single-post .post-content .related-posts-sidebar .related-item { flex-direction: row; align-items: flex-start; gap: 1rem; }
  .jn-single-post .post-content .related-posts-sidebar .related-thumb { width: 35%; max-width: 140px; flex: 0 0 35%; }
}
@media (prefers-reduced-motion: reduce) { .jn-single-post .post-content .related-posts-sidebar .related-thumb img { transition: none; } }
/* Imported articles can carry an inline red quote border; use the site accent. */
.jn-single-post .post-body blockquote { border-left-color: #c6a15b !important; }
