/* Bates numbering articles — /bates-numbering/<slug>/ (first: without-acrobat, 2026-10-06).
 *
 * Loaded after app.css, which supplies the tokens (--bn-*), body.bn-page, .bn-wrap,
 * .bn-eyebrow and .bn-btn. Everything here is scoped to .bn-art so it cannot reach the
 * shared nav and footer (feedback_scope_css_to_page_wrapper), and no class collides with
 * Bootstrap's (.table, .card, .btn, .row are avoided).
 */

.bn-art { max-width: 1120px; }
.bn-art a { color: var(--bn-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--bn-rule-2); }
.bn-art a:hover { text-decoration-color: var(--bn-navy); }
.bn-art-main p, .bn-art-main li { font-size: 1.04rem; line-height: 1.65; color: #2b303c; }

.bn-art-layout { display: grid; gap: 2.4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1040px) {
  .bn-art-layout { grid-template-columns: minmax(0, 720px) minmax(0, 300px); justify-content: space-between; align-items: start; }
}
.bn-art-main { min-width: 0; }

/* ---------- head ---------- */
.bn-art-head { padding: 2.4rem 0 0.6rem; max-width: 800px; }
.bn-art-head h1 {
  margin: 0 0 0.8rem; font-family: var(--bn-serif); font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.06; letter-spacing: -0.014em; color: var(--bn-ink);
}
.bn-art-head .bn-art-dek { margin: 0; font-size: 1.14rem; color: var(--bn-muted); max-width: 680px; }
.bn-art-meta { margin: 1rem 0 0; font: 500 0.8rem var(--bn-mono); color: var(--bn-muted); letter-spacing: 0.02em; }

/* ---------- the short answer, set as a stamped page ---------- */
.bn-answer {
  position: relative; margin: 1.8rem 0 0; padding: 1.5rem 1.5rem 4.4rem;
  background: var(--bn-sheet); border: 1px solid var(--bn-rule); border-radius: 4px;
  box-shadow: 0 1px 0 rgba(27, 31, 42, .04), 0 14px 30px -22px rgba(27, 31, 42, .45);
}
.bn-answer::before { /* the sheet under the sheet */
  content: ''; position: absolute; inset: 7px -7px -7px 7px; z-index: -1;
  background: #eef1f5; border: 1px solid var(--bn-rule); border-radius: 4px;
}
.bn-answer h2 { margin: 0 0 0.7rem; font: 600 0.78rem var(--bn-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--bn-stamp); }
.bn-answer p { margin: 0 0 0.75rem; }
.bn-answer p:last-of-type { margin-bottom: 0; }
.bn-answer-stamp {
  position: absolute; right: 1.4rem; bottom: 1.1rem; text-align: right;
  font-family: var(--bn-mono); color: var(--bn-ink); line-height: 1.25;
  animation: bn-stamp-land .5s cubic-bezier(.2, .9, .3, 1.2) .35s both;
}
.bn-answer-stamp span { display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; color: var(--bn-stamp); }
.bn-answer-stamp b { font-size: 0.95rem; font-weight: 600; }
@keyframes bn-stamp-land {
  from { opacity: 0; transform: scale(1.25) rotate(-2deg); }
  to   { opacity: 1; transform: none; }
}

/* ---------- body sections ---------- */
.bn-art-sec { margin-top: 3rem; }
.bn-art-sec h2 {
  margin: 0 0 0.9rem; font-family: var(--bn-serif); font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 1.95rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--bn-ink);
}
.bn-art-sec h3 { margin: 1.4rem 0 0.4rem; font-family: var(--bn-serif); font-size: 1.2rem; font-weight: 600; color: var(--bn-ink); }
.bn-art-sec p { margin: 0 0 0.9rem; }
.bn-art-note { font-size: 0.86rem !important; color: var(--bn-muted) !important; }

/* comparison table */
.bn-art-tablewrap { overflow-x: auto; margin: 0.4rem 0 0.6rem; border: 1px solid var(--bn-rule); border-radius: 10px; background: var(--bn-sheet); }
.bn-art-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.96rem; }
.bn-art-table th, .bn-art-table td { padding: 0.75rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bn-rule); }
.bn-art-table thead th { font: 600 0.74rem var(--bn-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--bn-muted); background: #f3f5f9; }
.bn-art-table tbody tr:last-child th, .bn-art-table tbody tr:last-child td { border-bottom: 0; }
.bn-art-table tbody th { font-weight: 600; color: var(--bn-ink); }
.bn-art-table .bn-yes { color: var(--bn-ok); font-weight: 700; }
.bn-art-table .bn-no { color: var(--bn-err); font-weight: 700; }
.bn-art-table tr.bn-art-ours { background: #f3f6fb; }

/* numbered steps, counted like Bates numbers */
.bn-steps { list-style: none; margin: 0.6rem 0 0.4rem; padding: 0; counter-reset: bnstep; }
.bn-steps li { position: relative; counter-increment: bnstep; padding: 0 0 0.95rem 3.6rem; margin: 0; }
.bn-steps li::before {
  content: 'STEP-' counter(bnstep, decimal-leading-zero);
  position: absolute; left: 0; top: 0.22rem; width: 3rem;
  font: 600 0.66rem/1.6 var(--bn-mono); letter-spacing: 0.02em; color: var(--bn-stamp);
  border-top: 1.5px solid var(--bn-stamp); padding-top: 0.1rem;
}
.bn-steps b { color: var(--bn-ink); }
.bn-art-tip { margin: 0.4rem 0 0; padding: 0.8rem 1rem; border-left: 3px solid var(--bn-navy); background: #f3f5f9; border-radius: 0 8px 8px 0; font-size: 0.95rem !important; }

.bn-art .bn-ledger {
  margin: 0.4rem 0 1rem; padding: 0.7rem 0.8rem; overflow-x: auto; white-space: pre; font: 500 0.8rem/1.6 var(--bn-mono);
  background: repeating-linear-gradient(#fff 0 1.28rem, #eef1f5 1.28rem 1.3rem); border: 1px solid var(--bn-rule); border-radius: 7px; color: #2b303c;
}

/* in-text call to action */
.bn-art-cta {
  margin: 1.6rem 0 0.4rem; padding: 1.4rem 1.4rem; border-radius: 14px;
  background: #1f2433; color: #e9ebf0; display: grid; gap: 1rem; align-items: center;
}
@media (min-width: 640px) { .bn-art-cta { grid-template-columns: minmax(0, 1fr) auto; } }
.bn-art-cta p { margin: 0; color: #e9ebf0; font-size: 1rem; }
.bn-art-cta p b { color: #ffffff; }
.bn-art-cta .bn-art-cta-sub { margin-top: 0.3rem; font: 500 0.78rem var(--bn-mono); color: #b9bfcc; letter-spacing: 0.02em; }
.bn-art .bn-btn-paper { background: #ffffff; color: var(--bn-navy); box-shadow: 0 2px 0 #0d1222; text-decoration: none; white-space: nowrap; }
.bn-art .bn-btn-paper:hover { background: #eef1f6; }

/* two-way choice */
.bn-split { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin-top: 0.4rem; }
@media (min-width: 700px) { .bn-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.bn-split > div { background: var(--bn-sheet); border: 1px solid var(--bn-rule); border-radius: 12px; padding: 1.1rem 1.15rem 0.6rem; }
.bn-split h3 { margin: 0 0 0.5rem; font-size: 1.08rem; }
.bn-split ul { margin: 0; padding-left: 1.1rem; }
.bn-split li { font-size: 0.97rem; margin-bottom: 0.45rem; }

/* checklist */
.bn-checklist { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.2rem; }
.bn-checklist li { position: relative; padding: 0.55rem 0 0.55rem 1.6rem; border-bottom: 1px dashed var(--bn-rule); }
.bn-checklist li:last-child { border-bottom: 0; }
.bn-checklist li::before {
  content: ''; position: absolute; left: 0.2rem; top: 1.05rem; width: 0.5rem; height: 0.5rem;
  border-radius: 1px; background: var(--bn-stamp); transform: rotate(45deg);
}
.bn-checklist b { color: var(--bn-ink); }

/* questions */
.bn-art-faq h3 { margin-top: 1.5rem; }
.bn-art-faq p { margin-bottom: 0.4rem; }

/* side rail (wide screens): a quiet way back to the tool */
.bn-art-rail { display: none; }
@media (min-width: 1040px) {
  .bn-art-rail { display: block; position: sticky; top: 84px; margin-top: 2.6rem; }
}
.bn-rail-card { background: var(--bn-sheet); border: 1px solid var(--bn-rule); border-radius: 12px; padding: 1.15rem 1.1rem; }
.bn-rail-card p { font-size: 0.92rem; margin: 0 0 0.8rem; }
.bn-rail-card .bn-rail-title { font-family: var(--bn-serif); font-size: 1.15rem; font-weight: 600; color: var(--bn-ink); margin-bottom: 0.4rem; }
.bn-rail-card ul { list-style: none; margin: 0 0 1rem; padding: 0; font-size: 0.86rem; font-weight: 600; color: var(--bn-ink); display: grid; gap: 0.35rem; }
.bn-rail-card li { display: flex; align-items: center; gap: 0.45rem; font-size: 0.86rem; }
.bn-rail-card li::before { content: ''; width: 0.45rem; height: 0.45rem; border-radius: 1px; background: var(--bn-stamp); transform: rotate(45deg); flex: none; }
.bn-rail-card .bn-btn { width: 100%; text-decoration: none; color: #ffffff; }
.bn-rail-toc { margin-top: 1rem; padding: 0 0.2rem; }
.bn-rail-toc p { margin: 0 0 0.4rem; font: 600 0.7rem var(--bn-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bn-muted); }
.bn-rail-toc a { display: block; padding: 0.22rem 0; font-size: 0.88rem; font-weight: 500; text-decoration: none; color: #353a47; }
.bn-rail-toc a:hover { color: var(--bn-navy); }

.bn-art-foot { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--bn-rule); font-size: 0.88rem !important; color: var(--bn-muted) !important; }

@media (prefers-reduced-motion: reduce) {
  .bn-answer-stamp { animation: none; }
}
@media (max-width: 560px) {
  .bn-answer { padding: 1.2rem 1.1rem 4.4rem; }
  .bn-steps li { padding-left: 0; padding-top: 1.4rem; }
  .bn-steps li::before { top: 0; }
}
