/* Neslor Studio: Journal article blocks (used on the live article and inside the Blog editor).
   Built on the site tokens in style.css: --ink, --body, --muted, --line, --bg, --green, --green-deep, --mint, --sage, --r-*. */

.nb-article { --nb-r: 20px; }
.nb-article > * + *, .prose.nb-article > * + * { margin-top: 20px; }
.nb-article h2 { scroll-margin-top: 96px; }
.nb-article img { max-width: 100%; height: auto; border-radius: 16px; }
.nb-article figure { margin: 28px 0 0; }
.nb-article figure.image { display: block; text-align: center; }
.nb-article figure.image img { width: 100%; }
.nb-article figcaption { margin-top: 10px; font: 500 14px/1.45 var(--f-body); color: var(--muted); text-align: center; }
.nb-article img.img-small { display: block; max-width: 460px; margin-left: auto; margin-right: auto; }
.nb-article img.img-shadow { box-shadow: 0 20px 50px rgba(9, 9, 11, .12); }
.nb-article img.img-border { border: 1px solid var(--line); }
.nb-article img.img-wide { width: 100%; }
.nb-article blockquote { margin: 28px 0 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--green); color: var(--ink); font-size: 1.05em; }
.nb-article hr { border: 0; height: 1px; background: var(--line); margin: 40px 0; }
.nb-article iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 16px; }
.nb-article a:not(.nb-btn):not(.nb-project) { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* Labels */
.nb-label { display: block; margin: 0 0 8px; font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.nb-eyebrow { margin: 44px 0 -8px !important; font: 600 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--green); }

/* Boxes */
.nb-takeaways, .nb-answer { padding: 24px 26px; border-radius: var(--nb-r); background: var(--bg); }
.nb-takeaways ul { margin: 0; padding-left: 20px; list-style: disc; }
.nb-takeaways li + li { margin-top: 6px; }
.nb-answer { background: var(--mint); }
.nb-answer p:last-child { margin: 0; color: var(--ink); font-weight: 500; }
.nb-callout { padding: 18px 22px; border-radius: 16px; background: var(--bg); border-left: 3px solid var(--muted); }
.nb-callout p { margin: 0; }
.nb-callout--tip { background: var(--mint); border-color: var(--green); }
.nb-callout--note { background: #EEF2FF; border-color: #6366F1; }
.nb-callout--note .nb-label { color: #4F46E5; }
.nb-callout--warning { background: #FFF7ED; border-color: #F97316; }
.nb-callout--warning .nb-label { color: #C2410C; }

/* Buttons */
.nb-btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.nb-article a.nb-btn, a.nb-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--r-pill); font: var(--w-btn) 16px var(--f-btn); text-decoration: none; transition: transform .2s, background .2s; }
.nb-article a.nb-btn:hover { transform: translateY(-1px); }
.nb-btn--primary { background: var(--green); color: #fff !important; }
.nb-btn--primary:hover { background: var(--green-deep); }
.nb-btn--dark { background: var(--ink); color: #fff !important; }
.nb-btn--outline { border: 1.5px solid var(--line); color: var(--ink) !important; background: #fff; }
.nb-btn--light { background: #fff; color: var(--green-deep) !important; }
.nb-btn--ghost { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff !important; }

/* Calls to action */
.nb-cta { padding: 34px 32px; border-radius: var(--r-inner); background: var(--green-deep); color: rgba(255, 255, 255, .78); }
.nb-cta .nb-label { color: #A7D3C7; }
.nb-cta h3 { margin: 0 0 8px !important; color: #fff; font: var(--w-head) 26px/1.2 var(--f-head); letter-spacing: var(--ls-head); }
.nb-cta p { margin: 0; }
.nb-cta .nb-btn-row { margin-top: 20px; }
.nb-cta--light { background: var(--mint); color: var(--body); }
.nb-cta--light .nb-label { color: var(--green); }
.nb-cta--light h3 { color: var(--ink); }

/* Images */
.nb-ba, .nb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nb-ba figure, .nb-grid figure { margin: 0; }
.nb-ba img, .nb-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nb-grid--3 { grid-template-columns: repeat(3, 1fr); }
.nb-ba-note { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px !important; }
.nb-split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.nb-split figure { margin: 0; }
.nb-split h3 { margin-top: 0 !important; }

/* Structure */
.nb-steps, .prose ol.nb-steps { list-style: none; padding: 0 !important; counter-reset: nb; }
.nb-steps > li { position: relative; padding-left: 56px; counter-increment: nb; }
.nb-steps > li + li { margin-top: 22px !important; }
.nb-steps > li::before { content: counter(nb); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font: 600 15px var(--f-mono); }
.nb-steps h3 { margin: 4px 0 6px !important; }
.nb-steps p { margin: 0; }
.nb-checklist, .prose ul.nb-checklist { list-style: none; padding: 0 !important; }
.nb-checklist li { position: relative; padding-left: 32px; }
.nb-checklist li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: var(--green); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.nb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nb-stats > div { padding: 22px 18px; border-radius: 18px; background: var(--bg); text-align: center; }
.nb-num { margin: 0 !important; font: var(--w-head) 34px/1 var(--f-head); color: var(--ink); letter-spacing: var(--ls-head); }
.nb-cap { margin: 8px 0 0 !important; font-size: 14px; color: var(--muted); line-height: 1.3; }
.nb-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
.nb-article table { width: 100%; border-collapse: collapse; font-size: .9em; line-height: 1.45; }
.nb-article th, .nb-article td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.nb-article thead th { background: var(--green-deep); color: #fff; font-weight: 600; }
.nb-article table.nb-table-plain thead th { background: var(--bg); color: var(--ink); }
.nb-article tbody tr:last-child td { border-bottom: 0; }
.nb-yes { color: var(--green); font-weight: 600; }
.nb-no { color: #B91C1C; }
.nb-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nb-pros, .nb-cons { padding: 20px 22px; border-radius: 18px; background: var(--mint); }
.nb-cons { background: #FEF2F2; }
.nb-cons .nb-label { color: #B91C1C; }
.nb-pros ul, .nb-cons ul { margin: 0; padding-left: 18px; list-style: disc; }
.nb-quote { padding: 28px 30px; border-radius: var(--r-inner); background: var(--bg); }
.nb-quote__text { margin: 0 !important; font: 500 22px/1.45 var(--f-head); color: var(--ink); letter-spacing: -.01em; }
.nb-quote__by { margin: 14px 0 0 !important; font-size: 15px; color: var(--muted); }
.nb-faq__item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.nb-faq__item h3 { margin: 0 0 6px !important; font-size: 18px !important; }
.nb-faq__item p { margin: 0; }

/* Project from our work (filled in on the live page) */
a.nb-project { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; padding: 14px; border-radius: var(--r-inner); background: var(--bg); text-decoration: none; color: inherit; transition: background .2s; }
a.nb-project:hover { background: var(--sage); }
.nb-project__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; display: block; }
.nb-project__body { display: grid; gap: 4px; font-size: 15px; line-height: 1.45; }
.nb-project__body strong { font: var(--w-head) 20px/1.25 var(--f-head); color: var(--ink); }
.nb-project__body em { font-style: normal; font-weight: 600; color: var(--green); margin-top: 4px; }
/* Its placeholder inside the editor */
.nb-project-ph { display: flex; gap: 14px; align-items: center; padding: 12px; border: 2px dashed #A7D3C7; border-radius: 16px; background: var(--mint); cursor: pointer; }
.nb-project-ph img { width: 120px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.nb-project-ph > span { display: grid; gap: 2px; font-size: 14px; }
.nb-project-ph b { color: var(--green); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.nb-project-ph i { color: var(--muted); font-size: 12px; }

/* Article page: table of contents, reading bar, services, updated */
.nb-toc { margin-bottom: 32px; padding: 20px 24px; border-radius: 20px; background: var(--bg); font-size: 16px; line-height: 1.5; }
.nb-toc summary { cursor: pointer; font: 600 13px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); list-style: none; display: flex; justify-content: space-between; }
.nb-toc summary::-webkit-details-marker { display: none; }
.nb-toc summary::after { content: '+'; color: var(--muted); }
.nb-toc[open] summary::after { content: '–'; }
.nb-toc ol { margin: 12px 0 0; padding-left: 20px; list-style: decimal; }
.nb-toc li + li { margin-top: 6px; }
.nb-toc a { color: var(--body); text-decoration: none; }
.nb-toc a:hover { color: var(--green); }
.read-bar { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: var(--green); z-index: 1000; transition: width .1s linear; pointer-events: none; }
.nb-svcs { margin-top: 48px; }
.nb-svcs__k { font: 600 13px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.nb-svcs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.nb-svc { display: grid; gap: 6px; padding: 20px 22px; border-radius: 20px; border: 1px solid var(--line); text-decoration: none; color: var(--body); font-size: 15px; line-height: 1.45; transition: border-color .2s, transform .2s; }
.nb-svc:hover { border-color: var(--green); transform: translateY(-2px); }
.nb-svc strong { font: var(--w-head) 19px var(--f-head); color: var(--ink); }
.nb-svc b { color: var(--green); font-weight: 600; margin-top: 4px; }
.jpager { display: flex; justify-content: center; gap: 8px; margin: 56px auto 0; flex-wrap: wrap; }
.jpager a, .jpager span { min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--r-pill); display: inline-grid; place-items: center; border: 1px solid var(--line); color: var(--ink); font: 600 15px var(--f-btn); text-decoration: none; }
.jpager .is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.jpager .is-off { opacity: .35; pointer-events: none; }
.filter small { opacity: .6; margin-left: 4px; font-weight: 500; }

@media (max-width: 700px) {
  .nb-ba, .nb-grid, .nb-split, .nb-proscons { grid-template-columns: 1fr; }
  .nb-grid--3, .nb-stats { grid-template-columns: 1fr 1fr; }
  a.nb-project { grid-template-columns: 1fr; }
  .nb-cta { padding: 26px 22px; }
}
a.filter { display: inline-flex; align-items: center; text-decoration: none; }
.journal .filters { margin-top: 64px; }
