

.sf-bj {
  --paper: #f6f3ec;
  --panel: #fffdf7;
  --ink: #193b30;
  --muted: #5f6b62;
  --accent: #9b4d35;
  --line: #d5d9ce;
  --line-strong: #a8b3a6;
  --soft: #e8ede3;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Songti SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4.4vw, 64px);
  --page-width: 1360px;
  --reader-width: 1220px;
  --focus: #9b4d35;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.sf-bj *, .sf-bj *::before, .sf-bj *::after { box-sizing: border-box; }
.sf-bj [hidden] { display: none !important; }
.sf-bj ::selection { color: var(--ink); background: #dce6d3; }
.sf-bj :is(main, article, aside, section, div, figure) { min-width: 0; }
.sf-bj a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.sf-bj a:hover { color: var(--accent); }
.sf-bj button, .sf-bj input, .sf-bj select, .sf-bj textarea { font: inherit; }
.sf-bj button, .sf-bj a, .sf-bj summary { -webkit-tap-highlight-color: #193b301c; }
.sf-bj button { cursor: pointer; }
.sf-bj button:disabled, .sf-bj input:disabled { cursor: not-allowed; opacity: .55; }
.sf-bj :focus-visible, .sf-bj .dg-guide :focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.sf-bj .skip-link {
  position: fixed;
  top: 10px;
  left: var(--gutter);
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transform: translateY(-180%);
}
.sf-bj .skip-link:focus { transform: translateY(0); }
.sf-bj .sr-only,
.sf-bj .visually-hidden,
.sf-bj .toolbar select#stage:not(:focus-visible) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.sf-bj .toolbar select#stage:focus-visible {
  position: relative;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  margin: 0;
  padding: 10px;
  overflow: visible;
  white-space: normal;
}


.sf-bj header.top {
  min-height: 82px;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font: 500 11px/1.5 var(--sans);
  letter-spacing: .08em;
}
.sf-bj .brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
}
.sf-bj .brand small, .sf-bj .brand span {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .13em;
}
.sf-bj .top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex-wrap: wrap;
}
.sf-bj .top-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.sf-bj .top-nav a:hover,
.sf-bj .top-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.sf-bj .top-nav .edition-label { color: var(--muted); font-size: 10px; }
.sf-bj .shell {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 52px var(--gutter) 64px;
}
.sf-bj .eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font: 650 11px/1.5 var(--sans);
  text-transform: uppercase;
  letter-spacing: .17em;
}


.sf-bj .library-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  margin: 0 0 46px;
}
.sf-bj .hero-copy { padding: 16px 0 22px; }
.sf-bj .hero-copy h1 {
  max-width: 12em;
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: clamp(36px, 4.2vw, 62px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.sf-bj .hero-copy h1:lang(zh),
.sf-bj .hero-copy h1[lang^="zh"] {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.35;
}
.sf-bj .hero-copy .lead {
  max-width: 34em;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
.sf-bj .hero-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 30px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.sf-bj .hero-meta strong {
  display: inline-block;
  margin-right: 6px;
  color: var(--ink);
  font: 400 30px/1.1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
}
.sf-bj .hero-media figure { margin: 0; }
.sf-bj .hero-media img {
  display: block;
  width: 100%;
  height: clamp(280px, 29vw, 440px);
  object-fit: cover;
  object-position: center;
  background: #e5e4db;
}
.sf-bj .hero-media figcaption {
  margin: 0;
  padding: 11px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
  letter-spacing: .015em;
  overflow-wrap: anywhere;
}
.sf-bj .journey-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0 0 48px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.sf-bj .stage-chip {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: 8px 8px;
  min-height: 112px;
  min-width: 0;
  margin: 0;
  padding: 18px 17px 17px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: 500 12px/1.6 var(--sans);
  transition: background-color 160ms ease, color 160ms ease;
}
.sf-bj .stage-chip:last-child { border-right: 0; }
.sf-bj .stage-chip :is(.stage-number, .number) {
  color: var(--accent);
  font: 400 22px/1 var(--serif);
  grid-column: 1;
}
.sf-bj .stage-chip :is(.stage-count, .count) {
  color: var(--muted);
  font-size: 10px;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}
.sf-bj .stage-chip :is(.stage-name, .name) { grid-column: 1 / -1; }
.sf-bj .stage-chip:hover { background: var(--soft); color: var(--ink); }
.sf-bj .stage-chip[aria-pressed="true"] { background: var(--ink); color: var(--panel); }
.sf-bj .stage-chip[aria-pressed="true"] :is(.stage-number, .number, .stage-count, .count) { color: #d6deca; }
.sf-bj .stage-chip:focus-visible { outline-offset: -5px; z-index: 1; }

.sf-bj .library-layout {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.sf-bj .library-sidebar {
  position: sticky;
  top: 28px;
  padding: 14px 0 24px;
  border-top: 2px solid var(--ink);
  color: var(--muted);
  font: 400 12px/1.9 var(--sans);
}
.sf-bj .library-sidebar h2,
.sf-bj .library-sidebar h3 {
  margin: 0 0 15px;
  color: var(--ink);
  font: 650 12px/1.6 var(--sans);
  letter-spacing: .05em;
}
.sf-bj .library-sidebar p { margin: 0 0 18px; }
.sf-bj .library-sidebar ul { margin: 0 0 22px; padding-left: 17px; }
.sf-bj .library-sidebar li { margin: 0 0 10px; }
.sf-bj .library-sidebar a { display: inline-block; margin: 4px 0; }
.sf-bj .library-main { min-width: 0; }
.sf-bj .toolbar {
  position: relative;
  top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 0 0 10px;
  padding: 0 0 19px;
  background: transparent;
  z-index: 1;
}
.sf-bj .toolbar input#search {
  flex: 1 1 280px;
  min-width: 0;
  width: 100%;
  min-height: 49px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--panel);
  color: var(--ink);
  padding: 12px 15px;
  font: 400 14px/1.5 var(--sans);
  -webkit-appearance: none;
}
.sf-bj .toolbar input#search::placeholder { color: #6c766d; opacity: 1; }
.sf-bj .toolbar :is(#count, .count) {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sf-bj #article-list { border-bottom: 1px solid var(--line-strong); }
.sf-bj .article-row {
  position: relative;
  display: grid;
  grid-template-columns: 128px 28px minmax(0, 1fr) 98px;
  gap: 20px;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 25px 0;
  border-top: 1px solid var(--line);
}
.sf-bj .article-row:first-child { border-top-color: var(--line-strong); }
.sf-bj .article-row .thumbnail {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #e5e4db;
}
.sf-bj .article-row .thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 240ms ease;
}
.sf-bj .article-row:hover .thumbnail img { transform: scale(1.025); }
.sf-bj .article-row .article-id {
  align-self: start;
  padding-top: 3px;
  color: var(--accent);
  font: 400 18px/1.5 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
}
.sf-bj .article-row .row-copy { align-self: start; }
.sf-bj .article-row h2 {
  margin: 0 0 9px;
  font: 600 18px/1.55 var(--sans);
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.sf-bj .article-row h2 a { text-decoration: none; }
.sf-bj .article-row h2 a:hover { text-decoration: underline; }
.sf-bj .article-row .row-copy > p,
.sf-bj .article-row p {
  margin: 0;
  max-width: 100%;
  color: var(--muted);
  font: 400 14px/1.55 var(--serif);
}
.sf-bj .row-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 13px;
  margin-top: 11px;
  color: var(--muted);
  font: 400 10px/1.6 var(--sans);
}
.sf-bj .row-tags > :is(span, a) {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.sf-bj .row-tags > :first-child { color: var(--accent); }
.sf-bj .article-row .row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  align-self: center;
  margin: 0;
  text-align: right;
  color: var(--muted);
  font: 400 11px/1.9 var(--sans);
}
.sf-bj .row-meta a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
  margin-top: 0;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.sf-bj .row-meta a:hover { color: var(--accent); text-decoration: underline; }
.sf-bj .row-meta > span { white-space: nowrap; }
.sf-bj .empty:not([hidden]),
.sf-bj .empty-state:not([hidden]) {
  display: block;
  padding: 56px 20px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.sf-bj #reset-filters {
  min-height: 44px;
  padding: 9px 20px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}
.sf-bj #reset-filters:hover { background: var(--ink); color: var(--panel); }


.sf-bj.reader-page .shell { max-width: var(--reader-width); }
.sf-bj .reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  z-index: 150;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.sf-bj .reading-progress > span,
.sf-bj .reading-progress > div {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transform-origin: left center;
}
.sf-bj progress.reading-progress {
  appearance: none;
  -webkit-appearance: none;
  color: var(--accent);
}
.sf-bj progress.reading-progress::-webkit-progress-bar { background: transparent; }
.sf-bj progress.reading-progress::-webkit-progress-value { background: var(--accent); }
.sf-bj progress.reading-progress::-moz-progress-bar { background: var(--accent); }
.sf-bj .article-head {
  max-width: none;
  margin: 0 0 48px;
  padding: 0 0 32px;
  border-bottom: 1px solid var(--line-strong);
}
.sf-bj .breadcrumbs {
  max-width: 920px;
  margin: 0 0 34px;
  color: var(--muted);
  font: 400 10px/1.8 var(--sans);
  letter-spacing: .025em;
  overflow-wrap: anywhere;
}
.sf-bj .breadcrumbs a { text-decoration: none; }
.sf-bj .breadcrumbs a:hover { text-decoration: underline; }
.sf-bj .article-head .eyebrow { margin-bottom: 20px; }
.sf-bj .article-head h1 {
  max-width: 1030px;
  margin: 0 0 26px;
  color: var(--ink);
  font: 400 clamp(34px, 4.2vw, 62px)/1.1 var(--serif);
  letter-spacing: -.035em;
  text-wrap: pretty;
  overflow-wrap: normal;
}
.sf-bj .article-head .excerpt {
  max-width: 800px;
  margin: 0 0 25px;
  color: var(--muted);
  font: 400 clamp(17px, 1.6vw, 20px)/1.65 var(--sans);
  text-wrap: pretty;
}
.sf-bj .article-head :is(small, .article-meta) {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px 17px;
  color: var(--muted);
  font: 400 11px/1.8 var(--sans);
}
.sf-bj .article-head .notice,
.sf-bj .notice {
  margin: 24px 0 0;
  padding: 13px 16px;
  border: 0;
  border-left: 2px solid var(--line-strong);
  background: #eeeee5;
  color: #536154;
  font: 400 11px/1.8 var(--sans);
}
.sf-bj .article-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.sf-bj .article-actions :is(button, a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font: 550 11px/1.5 var(--sans);
  letter-spacing: .025em;
}
.sf-bj .article-actions :is(button, a):hover { background: var(--soft); border-color: var(--ink); }
.sf-bj .article-actions [aria-pressed="true"] { background: var(--ink); color: var(--panel); }
.sf-bj .reading-grid {
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(188px, 230px);
  justify-content: space-between;
  gap: clamp(30px, 4vw, 64px);
  align-items: start;
}
.sf-bj .prose,
.sf-bj .prose.dg-guide {
  --dg-ink: var(--ink);
  --dg-muted: var(--muted);
  --dg-line: var(--line);
  --dg-paper: var(--paper);
  --dg-accent: var(--accent);
  min-width: 0;
  color: var(--ink);
  font: 400 18px/1.85 var(--serif);
  overflow-wrap: break-word;
}
.sf-bj .prose p, .sf-bj .prose.dg-guide p { margin: 0 0 24px; }
.sf-bj .prose > p:first-child {
  font-size: 21px;
  line-height: 1.75;
  letter-spacing: -.008em;
}
.sf-bj .prose > h2,
.sf-bj .prose.dg-guide > h2,
.sf-bj .prose section > h2 {
  position: relative;
  margin: 58px 0 24px;
  padding-top: 21px;
  border-top: 1px solid var(--line-strong);
  color: var(--ink);
  font: 400 clamp(27px, 2.6vw, 34px)/1.25 var(--serif);
  letter-spacing: -.022em;
  scroll-margin-top: 30px;
  text-wrap: pretty;
}
.sf-bj .prose h2[data-section-number]::before {
  content: attr(data-section-number);
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font: 500 10px/1 var(--sans);
  letter-spacing: .14em;
}
.sf-bj .prose h3,
.sf-bj .prose.dg-guide h3 {
  margin: 32px 0 13px;
  color: var(--ink);
  font: 650 17px/1.5 var(--sans);
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.sf-bj .prose :is(ul, ol) { margin: 23px 0 28px; padding-left: 25px; }
.sf-bj .prose li { margin: 10px 0; padding-left: 4px; }
.sf-bj .prose li::marker { color: var(--accent); }
.sf-bj .prose a,
.sf-bj .prose.dg-guide a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #91a390;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.sf-bj .prose a:hover,
.sf-bj .prose.dg-guide a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.sf-bj .prose :is(strong, b) { font-weight: 700; }
.sf-bj .prose blockquote {
  margin: 32px 0;
  padding: 6px 0 6px 23px;
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font-size: 21px;
  line-height: 1.65;
}
.sf-bj .prose blockquote p:last-child { margin-bottom: 0; }
.sf-bj .prose hr { margin: 42px 0; border: 0; border-top: 1px solid var(--line); }


.sf-bj .toc {
  display: block;
  position: sticky;
  top: 28px;
  align-self: start;
  max-height: calc(100vh - 56px);
  max-height: calc(100dvh - 56px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  padding: 17px 7px 22px 0;
  border-top: 2px solid var(--ink);
  font: 400 11px/1.6 var(--sans);
}
.sf-bj .toc > :is(strong, h2, h3) {
  display: block;
  margin: 0 0 16px;
  color: var(--muted);
  font: 650 10px/1.5 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sf-bj .toc ol { margin: 0; padding-left: 21px; }
.sf-bj .toc li { padding-left: 4px; margin: 0; color: var(--muted); }
.sf-bj .toc li::marker { color: var(--accent); font-size: 10px; }
.sf-bj .toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
}
.sf-bj .toc a:hover { color: var(--ink); text-decoration: underline; }
.sf-bj .toc a[aria-current="location"],
.sf-bj .toc a[aria-current="true"],
.sf-bj .toc a.is-active { color: var(--ink); font-weight: 650; }
.sf-bj .mobile-toc { display: none; }


.sf-bj .table-scroll,
.sf-bj .prose .table-scroll,
.sf-bj .dg-guide .dg-table {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  margin: 30px 0 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  scrollbar-width: thin;
  scrollbar-color: #9eae9c var(--soft);
}
.sf-bj .table-scroll:focus-visible { outline-offset: 3px; }
.sf-bj table, .sf-bj .dg-guide .dg-table table {
  width: 100%;
  min-width: 560px;
  margin: 0;
  border-collapse: collapse;
  background: var(--panel);
  color: var(--ink);
  font: 400 12px/1.65 var(--sans);
  text-align: left;
}
.sf-bj caption,
.sf-bj .dg-guide .dg-table caption {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  background: #eeeede;
  color: var(--ink);
  text-align: left;
  font: 600 12px/1.65 var(--sans);
}
.sf-bj th, .sf-bj td,
.sf-bj .dg-guide .dg-table th,
.sf-bj .dg-guide .dg-table td {
  min-width: 118px;
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  overflow-wrap: break-word;
}
.sf-bj thead th,
.sf-bj .dg-guide .dg-table thead th {
  background: var(--ink);
  color: var(--panel);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
}
.sf-bj tbody th { background: var(--soft); font-weight: 600; }
.sf-bj tbody tr:nth-child(even),
.sf-bj .dg-guide .dg-table tbody tr:nth-child(even) { background: #f0f1e9; }
.sf-bj tbody tr:last-child > * { border-bottom: 0; }
.sf-bj .table-hint {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 30px;
  color: var(--muted);
  font: 400 10px/1.7 var(--sans);
}


.sf-bj figure.xhs {
  margin: 40px 0 46px;
  border: 0;
  background: transparent;
  break-inside: avoid;
}
.sf-bj figure.xhs > a,
.sf-bj figure.xhs > button {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #eae8de;
  text-decoration: none;
  cursor: zoom-in;
}
.sf-bj figure.xhs img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(75vh, 740px);
  max-height: min(75dvh, 740px);
  object-fit: contain;
  margin: 0 auto;
  background: #eae8de;
}
.sf-bj figure.xhs figcaption {
  position: relative;
  margin: 0;
  padding: 14px 0 0;
  border-bottom: 0;
  color: var(--muted);
  font: 400 12px/1.75 var(--sans);
}
.sf-bj .caption-number {
  display: inline-block;
  margin-right: 9px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .09em;
}
.sf-bj details.image-details {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  color: var(--muted);
}
.sf-bj details.image-details summary {
  width: fit-content;
  min-height: 30px;
  padding: 4px 0;
  font: 500 10px/1.7 var(--sans);
  letter-spacing: .03em;
}
.sf-bj details.image-details[open] summary { color: var(--ink); }
.sf-bj .img-credit,
.sf-bj .image-details :is(p, li) {
  display: block;
  margin: 5px 0 0;
  color: var(--muted);
  font: 400 10px/1.8 var(--sans);
  overflow-wrap: anywhere;
}
.sf-bj .image-details a { text-decoration-color: var(--line-strong); }


.sf-bj .dg-guide .dg-tool,
.sf-bj .dg-guide .dg-form,
.sf-bj .dg-guide .dg-brief {
  min-width: 0;
  margin: 36px 0;
  padding: 28px;
  border: 1px solid var(--line-strong);
  background: #e9eee3;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.75;
  scroll-margin-top: 28px;
}
.sf-bj .dg-guide .dg-tool h3,
.sf-bj .dg-guide .dg-form h2,
.sf-bj .dg-guide .dg-brief h2 {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  color: var(--ink);
  font: 400 29px/1.22 var(--serif);
  letter-spacing: -.02em;
}
.sf-bj .dg-guide .dg-tool > p,
.sf-bj .dg-guide .dg-form > p { font: 400 13px/1.75 var(--sans); margin-bottom: 20px; }
.sf-bj .dg-guide .dg-eyebrow {
  color: var(--accent);
  font: 650 10px/1.5 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sf-bj .dg-guide .dg-controls,
.sf-bj .dg-guide .dg-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 21px 20px;
  min-width: 0;
  margin-top: 24px;
}
.sf-bj .dg-guide .dg-controls > label,
.sf-bj .dg-guide .dg-form-grid > label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.sf-bj .dg-guide label {
  min-width: 0;
  color: var(--ink);
  font: 600 12px/1.6 var(--sans);
}
.sf-bj .dg-guide :is(input, select, textarea) {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 12px;
  margin: 8px 0 0;
  border: 1px solid #92a28f;
  border-radius: 0;
  background: var(--panel);
  color: var(--ink);
  box-shadow: none;
  font: 400 16px/1.5 var(--sans);
}
.sf-bj .dg-guide .dg-controls > label > :is(input, select, textarea),
.sf-bj .dg-guide .dg-form-grid > label > :is(input, select, textarea) { margin-top: auto; }
.sf-bj .dg-guide select { padding-right: 28px; text-overflow: ellipsis; }
.sf-bj .dg-guide textarea { min-height: 144px; resize: vertical; }
.sf-bj .dg-guide :is(input, textarea)::placeholder { color: #6c776b; opacity: 1; }
.sf-bj .dg-guide :is(input, select, textarea):focus-visible { outline-offset: 2px; }
.sf-bj .dg-guide .dg-full { grid-column: 1 / -1; }
.sf-bj .dg-guide .dg-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px 0;
  font-size: 12px;
}
.sf-bj .dg-guide .dg-check input,
.sf-bj .dg-guide input[type="checkbox"],
.sf-bj .dg-guide input[type="radio"] {
  display: inline-block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  margin: 2px 0 0;
  accent-color: var(--ink);
}
.sf-bj .dg-guide .dg-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 22px;
  margin: 24px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.sf-bj .dg-guide .dg-results span { display: block; color: var(--muted); font: 500 11px/1.6 var(--sans); }
.sf-bj .dg-guide .dg-results strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font: 400 clamp(26px, 2.5vw, 33px)/1.2 var(--serif);
  overflow-wrap: anywhere;
}
.sf-bj .dg-guide .dg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  margin: 0;
  padding: 12px 19px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--panel);
  text-decoration: none;
  font: 600 12px/1.5 var(--sans);
  text-align: center;
}
.sf-bj .dg-guide .dg-button:hover { background: #2e5140; color: #fff; }
.sf-bj .dg-guide .dg-button:disabled { opacity: .55; }
.sf-bj .dg-guide .dg-small,
.sf-bj .dg-guide .dg-tool .dg-small { color: var(--muted); font: 400 11px/1.8 var(--sans); margin: 18px 0 0; }
.sf-bj .dg-guide .dg-error { color: #8f2f22; font: 600 13px/1.65 var(--sans); }
.sf-bj .dg-guide .dg-route-result {
  margin: 24px 0;
  padding: 20px;
  border-left: 2px solid var(--accent);
  background: var(--panel);
}
.sf-bj .dg-guide .dg-route-result h4 { margin: 0 0 12px; font: 400 25px/1.3 var(--serif); }
.sf-bj .dg-guide .dg-route-result p { margin: 0; font: 400 13px/1.75 var(--sans); }
.sf-bj .dg-guide .dg-package-row { min-width: 0; padding: 0 0 23px; border: 0; border-bottom: 1px solid var(--line); }
.sf-bj .dg-guide .dg-package-row legend { max-width: 100%; padding: 0 0 8px; font: 650 13px/1.6 var(--sans); }
.sf-bj .dg-guide [role="status"] { font: 500 12px/1.7 var(--sans); }
.sf-bj .dg-guide .dg-note { margin: 28px 0; padding: 23px; background: #eeeee3; border-left: 2px solid var(--accent); }
.sf-bj .dg-guide .dg-note p { font: 400 13px/1.8 var(--sans); }
.sf-bj .preview-only { color: var(--accent); font: 400 11px/1.75 var(--sans); }


.sf-bj .sources {
  margin-top: 54px;
  padding-top: 25px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font: 400 12px/1.8 var(--sans);
}
.sf-bj .sources h2 { margin: 0 0 18px; border: 0; padding: 0; color: var(--ink); font: 600 15px/1.5 var(--sans); }
.sf-bj .sources ol { padding-left: 20px; }
.sf-bj .sources li { margin: 10px 0; overflow-wrap: anywhere; }
.sf-bj .bottom-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 56px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line-strong);
  font: 400 13px/1.7 var(--sans);
}
.sf-bj .bottom-nav > a,
.sf-bj .bottom-nav .nav-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  min-height: 120px;
  padding: 21px 22px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.sf-bj .bottom-nav > a:hover,
.sf-bj .bottom-nav .nav-card:hover { background: var(--soft); border-color: var(--line-strong); }
.sf-bj .bottom-nav :is(small, .nav-direction, .nav-label) {
  color: var(--accent);
  font: 600 10px/1.5 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sf-bj .bottom-nav :is(strong, .nav-title) { font: 400 20px/1.35 var(--serif); }
.sf-bj .bottom-nav [rel="next"] { text-align: right; align-items: flex-end; }
.sf-bj .support-page .intro,
.sf-bj.support-page .intro { max-width: 880px; }
.sf-bj.support-page .intro h1 { color: var(--ink); font: 400 clamp(34px, 4vw, 56px)/1.2 var(--serif); letter-spacing: -.03em; }
.sf-bj .research-block { margin: 40px 0; padding-top: 25px; border-top: 1px solid var(--line-strong); scroll-margin-top: 24px; }
.sf-bj .research-block h2 { color: var(--ink); font: 400 29px/1.3 var(--serif); }
.sf-bj .research-block p, .sf-bj .research-block li { max-width: 86ch; overflow-wrap: anywhere; }
.sf-bj.support-page details { padding: 18px 0; border-top: 1px solid var(--line); }
.sf-bj.support-page summary { min-height: 28px; color: var(--ink); font-size: 14px; }
.sf-bj code { overflow-wrap: anywhere; word-break: break-word; }
.sf-bj footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 30px;
  margin: 0;
  padding: 28px var(--gutter) 36px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font: 400 10px/1.8 var(--sans);
  letter-spacing: .025em;
}


.sf-bj:has(dialog.photo-viewer[open]) { overflow: hidden; }
.sf-bj dialog.photo-viewer {
  width: min(1180px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid #667269;
  border-radius: 0;
  background: #172b23;
  color: #f6f3ec;
  overflow: auto;
  box-shadow: 0 20px 100px #0e181b66;
}
.sf-bj dialog.photo-viewer::backdrop { background: #0c1612de; }
.sf-bj dialog.photo-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.sf-bj .viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 58px;
  padding: 10px 18px;
  border-bottom: 1px solid #667269;
  font: 500 11px/1.5 var(--sans);
}
.sf-bj .viewer-toolbar :is(button, a),
.sf-bj .photo-viewer :is(.viewer-prev, .viewer-next, [data-action="prev"], [data-action="next"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #819084;
  border-radius: 0;
  background: transparent;
  color: #f6f3ec;
  text-decoration: none;
  font: 500 11px/1.5 var(--sans);
}
.sf-bj .photo-viewer button:hover,
.sf-bj .viewer-toolbar a:hover { background: #33473b; color: #fff; }
.sf-bj .photo-viewer :focus-visible { outline-color: #ebc3a0; }
.sf-bj .photo-viewer > img,
.sf-bj .photo-viewer .viewer-image,
.sf-bj .photo-viewer .viewer-stage img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: calc(100vh - 230px);
  max-height: calc(100dvh - 230px);
  margin: 0 auto;
  object-fit: contain;
}
.sf-bj .viewer-stage { display: grid; place-items: center; min-height: 0; padding: 16px; background: #101d17; }
.sf-bj .viewer-caption {
  padding: 15px 20px 20px;
  color: #d9e0d3;
  font: 400 12px/1.75 var(--sans);
  overflow-wrap: anywhere;
}
.sf-bj .viewer-caption p { margin: 0 0 8px; }
.sf-bj .viewer-caption a { color: #f6f3ec; }
.sf-bj .viewer-nav { display: flex; justify-content: space-between; gap: 12px; padding: 0 20px 18px; }
.sf-bj .viewer-counter { font-variant-numeric: tabular-nums; letter-spacing: .08em; }



.sf-bj .brand .wordmark {
  color: var(--ink);
  font: 600 27px/1 "Source Foshan Mark", var(--sans);
  letter-spacing: -.06em;
  white-space: nowrap;
}
.sf-bj .brand .brand-dot { color: var(--accent); font: inherit; letter-spacing: inherit; }
.sf-bj .brand .brand-subtitle { padding-left: 14px; border-left: 1px solid var(--line-strong); font: 500 9px/1.4 var(--sans); letter-spacing: .12em; }
.sf-bj .top-status { color: var(--muted); font-size: 10px; letter-spacing: .07em; }
.sf-bj .top-nav a > span { margin-left: 5px; color: var(--accent); font-size: 9px; }
.sf-bj.library-page .hero-copy h1 { font-family: var(--sans); font-weight: 500; line-height: 1.35; letter-spacing: -.055em; }
.sf-bj .hero-copy h1 > span { color: var(--accent); }
.sf-bj .hero-meta b { display: inline-block; margin-right: 5px; color: var(--ink); font: 400 30px/1.1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.sf-bj figure.hero-media { margin: 0; }
.sf-bj .hero-media > a { position: relative; display: block; text-decoration: none; }
.sf-bj .hero-image-label { position: absolute; inset: auto 14px 14px; display: block; padding: 13px 16px; background: var(--panel); color: var(--accent); font: 550 9px/1.5 var(--sans); letter-spacing: .12em; }
.sf-bj .hero-image-label b { display: block; margin-top: 5px; color: var(--ink); font: 500 13px/1.7 var(--sans); letter-spacing: 0; }
.sf-bj .hero-jump { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; margin-top: 22px; padding: 7px 0; border-bottom: 1px solid var(--ink); text-decoration: none; font: 600 12px/1.5 var(--sans); }
.sf-bj .hero-jump span { font-size: 18px; font-weight: 400; }
.sf-bj .section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 15px; }
.sf-bj .section-heading p { margin: 0; color: var(--muted); font: 400 11px/1.6 var(--sans); }
.sf-bj .section-heading .eyebrow { color: var(--accent); font-weight: 650; }
.sf-bj .journey-section { scroll-margin-top: 24px; }
.sf-bj .stage-chip > strong { grid-column: 1 / -1; grid-row: 2; font-size: 12px; font-weight: 500; }
.sf-bj .stage-chip > small { grid-column: 2; grid-row: 1; align-self: center; color: var(--muted); font-size: 9px; }
.sf-bj .stage-chip[aria-pressed="true"] > small { color: #d6deca; }
.sf-bj .library-sidebar h2 { margin: 20px 0 22px; font-size: 23px; font-weight: 500; line-height: 1.65; letter-spacing: -.03em; }
.sf-bj .library-sidebar .eyebrow { margin: 0; font-size: 9px; color: var(--accent); }
.sf-bj .sidebar-edition { margin-top: 30px; color: var(--muted); font: 400 9px/1.9 var(--sans); letter-spacing: .1em; }
.sf-bj .library-sidebar #reset-filters { width: 100%; padding-inline: 11px; font-size: 10px; }
.sf-bj .search-control { position: relative; display: flex; flex: 1 1 280px; align-items: center; min-width: 0; }
.sf-bj .search-icon { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: var(--muted); font: 400 23px/1 var(--serif); pointer-events: none; }
.sf-bj .toolbar .search-control input#search { padding-left: 41px; }
.sf-bj .row-copy > .row-tags { margin: 0 0 9px; }
.sf-bj .empty [data-action="reset-filters"] { min-height: 44px; padding: 9px 20px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 500 13px/1.5 var(--sans); }
.sf-bj .empty [data-action="reset-filters"]:hover { background: var(--ink); color: var(--panel); }
.sf-bj .library-notes { margin-top: 46px; padding-top: 5px; border-top: 1px solid var(--line-strong); }
.sf-bj .edition-notes { border: 0; padding: 16px 0 0; color: var(--muted); font: 400 11px/1.85 var(--sans); }
.sf-bj .edition-notes summary { min-height: 32px; font-size: 11px; font-weight: 500; }
.sf-bj .edition-notes p { max-width: 86ch; margin: 14px 0; font-size: 11px; }
.sf-bj .article-meta-brand { color: var(--ink); font-weight: 600; }
.sf-bj .article-head .review-note { max-width: 800px; margin-top: 22px; padding: 11px 0 0; border-top: 1px solid var(--line); color: var(--muted); }
.sf-bj .review-note summary { width: fit-content; min-height: 32px; padding: 5px 0; font: 400 10px/1.7 var(--sans); letter-spacing: .025em; }
.sf-bj .review-note p { margin: 9px 0 13px; font: 400 11px/1.8 var(--sans); }
.sf-bj .prose p.lead-answer { margin-bottom: 27px; padding-left: 21px; border-left: 2px solid var(--accent); font-size: 21px; line-height: 1.75; }
.sf-bj .toc-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 16px; color: var(--muted); font: 600 10px/1.5 var(--sans); letter-spacing: .1em; }
.sf-bj .reading-progress-label { color: var(--accent); font-variant-numeric: tabular-nums; }
.sf-bj .toc .toc-library-link { margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--ink); }
.sf-bj .mobile-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; }
.sf-bj .mobile-toc summary::-webkit-details-marker { display: none; }
.sf-bj .mobile-toc summary > span:last-child { color: var(--accent); font-size: 17px; font-weight: 400; }
.sf-bj .mobile-toc[open] summary > span:last-child { transform: rotate(45deg); }
.sf-bj .prose p.table-hint { margin: 28px 0 9px; color: var(--muted); font: 400 10px/1.7 var(--sans); }
.sf-bj .table-hint + .table-scroll { margin-top: 0; }
.sf-bj .table-hint[hidden] + .table-scroll { margin-top: 30px; }
.sf-bj .caption-main { display: flex; align-items: baseline; gap: 0; }
.sf-bj .caption-main .caption-number { flex: 0 0 27px; margin: 0; }
.sf-bj .caption-text { min-width: 0; }
.sf-bj .photo-expand { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; background: #193b30ed; color: var(--panel); font: 500 9px/1.5 var(--sans); letter-spacing: .025em; pointer-events: none; }
.sf-bj .bottom-nav .nav-card > span { color: var(--accent); font: 600 9px/1.6 var(--sans); letter-spacing: .1em; }
.sf-bj .bottom-nav .nav-card > i { margin-top: auto; color: var(--accent); font: 400 23px/1 var(--sans); }
.sf-bj .bottom-nav .nav-next { align-items: flex-end; text-align: right; }
.sf-bj .site-footer .footer-brand { color: var(--ink); font: 600 25px/1.2 "Source Foshan Mark", var(--sans); letter-spacing: -.05em; text-decoration: none; }
.sf-bj .site-footer p { margin: 9px 0 0; max-width: 54ch; font-size: 10px; }
.sf-bj .site-footer .footer-meta { color: var(--muted); font-size: 10px; text-align: right; }
.sf-bj .viewer-toolbar h2 { margin: 0; font: 400 20px/1.3 var(--serif); letter-spacing: -.015em; }
.sf-bj .viewer-toolbar .viewer-counter { margin-left: auto; color: #d5dfce; font-size: 10px; }
.sf-bj .viewer-toolbar .viewer-close { gap: 13px; }
.sf-bj .viewer-toolbar .viewer-close span { font-size: 19px; line-height: 1; }
.sf-bj .viewer-stage { position: relative; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 12px; }
.sf-bj .viewer-stage .viewer-prev { grid-column: 1; grid-row: 1; }
.sf-bj .viewer-stage .viewer-image { grid-column: 2; grid-row: 1; }
.sf-bj .viewer-stage .viewer-next { grid-column: 3; grid-row: 1; }
.sf-bj .viewer-bottom { padding: 16px 22px 21px; border-top: 1px solid #465c4a; }
.sf-bj .viewer-bottom .viewer-caption { margin: 0 0 12px; padding: 0; font-size: 12px; }
.sf-bj .viewer-bottom > div { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.sf-bj .viewer-bottom a { color: #d7dfd0; font: 400 10px/1.7 var(--sans); text-underline-offset: 3px; }
.sf-bj .viewer-bottom a:hover { color: #fff; }


@media (max-width: 1100px) {
  .sf-bj .library-layout { grid-template-columns: 145px minmax(0, 1fr); gap: 28px; }
  .sf-bj .article-row { grid-template-columns: 100px 24px minmax(0, 1fr) 82px; gap: 15px; }
  .sf-bj .article-row h2 { font-size: 17px; }
  .sf-bj .article-row .row-meta { font-size: 10px; }
  .sf-bj .reading-grid { grid-template-columns: minmax(0, 1fr) 200px; gap: 32px; }
  .sf-bj .top-nav { gap: 16px; }
  .sf-bj .stage-chip { padding-inline: 12px; font-size: 11px; }
}
@media (max-width: 900px) {
  .sf-bj { --gutter: 28px; }
  .sf-bj .library-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 30px; margin-bottom: 34px; }
  .sf-bj .hero-copy h1 { font-size: 38px; }
  .sf-bj .hero-copy .lead { font-size: 14px; }
  .sf-bj .hero-media img { height: 350px; }
  .sf-bj .hero-meta { gap: 10px 18px; }
  .sf-bj .journey-strip {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
    scroll-snap-type: x proximity;
    margin-bottom: 32px;
  }
  .sf-bj .stage-chip { flex: 0 0 150px; min-height: 106px; padding: 16px; scroll-snap-align: start; }
  .sf-bj .library-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .sf-bj .library-sidebar { position: static; padding: 16px 0 0; }
  .sf-bj .library-sidebar > :last-child { margin-bottom: 0; }
  .sf-bj .library-sidebar p { display: inline; margin-right: 12px; }
  .sf-bj .library-sidebar ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 10px 0; }
  .sf-bj .library-sidebar li { margin: 0; }
  .sf-bj .article-row { grid-template-columns: 116px 26px minmax(0, 1fr) 90px; gap: 18px; }
  .sf-bj .reading-grid { display: block; }
  .sf-bj .reading-grid > .toc { display: none; }
  .sf-bj .prose { max-width: 740px; margin: 0 auto; }
  .sf-bj .mobile-toc {
    display: block;
    margin: 0 0 32px;
    padding: 0;
    border: 1px solid var(--line-strong);
    background: #eeeee5;
    font: 400 13px/1.7 var(--sans);
  }
  .sf-bj .mobile-toc summary { min-height: 48px; padding: 13px 17px; color: var(--ink); font-size: 12px; font-weight: 650; }
  .sf-bj .mobile-toc ol {
    max-height: min(55vh, 440px);
    max-height: min(55dvh, 440px);
    margin: 0;
    padding: 0 22px 16px 39px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .sf-bj .mobile-toc li { padding-left: 4px; }
  .sf-bj .mobile-toc a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; }
  .sf-bj .mobile-toc a:hover { color: var(--ink); text-decoration: underline; }
  .sf-bj .mobile-toc li::marker { color: var(--accent); }
  .sf-bj .article-head { margin-bottom: 30px; }
}
@media (max-width: 640px) {
  .sf-bj { --gutter: 22px; }
  .sf-bj header.top { align-items: flex-start; min-height: auto; padding: 18px var(--gutter); gap: 14px; }
  .sf-bj .brand { font-size: 11px; letter-spacing: .08em; gap: 6px; flex-shrink: 1; }
  .sf-bj .brand small, .sf-bj .brand span { font-size: 8px; }
  .sf-bj .top-nav { font-size: 10px; gap: 4px 12px; line-height: 1.5; }
  .sf-bj .top-nav a { min-height: 28px; }
  .sf-bj .top-nav .edition-label { display: none; }
  .sf-bj .shell { padding: 30px var(--gutter) 44px; }
  .sf-bj .library-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 30px; }
  .sf-bj .hero-copy { padding: 0; }
  .sf-bj .hero-copy h1 { max-width: 15em; margin-bottom: 20px; font-size: clamp(32px, 8.6vw, 44px); }
  .sf-bj .hero-copy .lead { max-width: none; font-size: 14px; }
  .sf-bj .hero-meta { margin-top: 23px; padding-top: 18px; gap: 10px 24px; }
  .sf-bj .hero-meta strong { font-size: 27px; }
  .sf-bj .hero-media img { height: 245px; height: clamp(210px, 64vw, 310px); }
  .sf-bj .hero-media figcaption { font-size: 9px; }
  .sf-bj .journey-strip { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .sf-bj .stage-chip { flex-basis: 142px; min-height: 104px; }
  .sf-bj .library-sidebar { font-size: 11px; }
  .sf-bj .library-sidebar h2 { font-size: 11px; margin-bottom: 8px; }
  .sf-bj .toolbar { padding-bottom: 12px; gap: 8px; }
  .sf-bj .toolbar input#search { flex-basis: 100%; min-height: 48px; font-size: 16px; padding-inline: 12px; }
  .sf-bj .toolbar :is(#count, .count) { font-size: 10px; }
  .sf-bj .article-row { grid-template-columns: 82px 20px minmax(0, 1fr); gap: 10px 12px; padding: 22px 0; align-items: start; }
  .sf-bj .article-row .thumbnail { grid-column: 1; grid-row: 1 / span 2; margin-top: 4px; }
  .sf-bj .article-row .thumbnail img { aspect-ratio: 3 / 4; }
  .sf-bj .article-row .article-id { grid-column: 2; grid-row: 1; font-size: 15px; padding-top: 1px; }
  .sf-bj .article-row .row-copy { grid-column: 3; grid-row: 1; }
  .sf-bj .article-row h2 { margin-bottom: 8px; font-size: 16px; line-height: 1.6; }
  .sf-bj .article-row .row-copy > p, .sf-bj .article-row p { font-size: 12px; line-height: 1.55; }
  .sf-bj .row-tags { gap: 5px 10px; margin-top: 9px; font-size: 9px; }
  .sf-bj .article-row .row-meta { grid-column: 3; grid-row: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 18px; text-align: left; font-size: 10px; }
  .sf-bj .row-meta a { justify-content: flex-start; min-height: 44px; margin: 0; font-size: 11px; }
  .sf-bj .eyebrow { margin-bottom: 15px; font-size: 10px; }
  .sf-bj .breadcrumbs { margin-bottom: 25px; font-size: 9px; }
  .sf-bj .article-head { padding-bottom: 25px; }
  .sf-bj .article-head h1 { margin-bottom: 22px; font-size: clamp(32px, 8.5vw, 44px); line-height: 1.13; letter-spacing: -.035em; }
  .sf-bj .article-head .excerpt { margin-bottom: 20px; font-size: 16px; line-height: 1.7; }
  .sf-bj .article-head :is(small, .article-meta) { gap: 5px 12px; font-size: 10px; }
  .sf-bj .article-head .notice, .sf-bj .notice { padding: 11px 12px; font-size: 10px; line-height: 1.75; }
  .sf-bj .article-actions { gap: 8px; margin-top: 22px; }
  .sf-bj .article-actions :is(button, a) { padding: 10px 12px; font-size: 10px; min-height: 44px; }
  .sf-bj .prose, .sf-bj .prose.dg-guide { font-size: 17px; line-height: 1.8; }
  .sf-bj .prose > p:first-child { font-size: 19px; line-height: 1.7; }
  .sf-bj .prose p, .sf-bj .prose.dg-guide p { margin-bottom: 22px; }
  .sf-bj .prose > h2, .sf-bj .prose.dg-guide > h2, .sf-bj .prose section > h2 { margin: 43px 0 20px; padding-top: 19px; font-size: 28px; line-height: 1.25; }
  .sf-bj .prose h3, .sf-bj .prose.dg-guide h3 { font-size: 16px; margin: 28px 0 12px; }
  .sf-bj .prose blockquote { padding-left: 18px; font-size: 19px; }
  .sf-bj figure.xhs { margin: 31px 0 36px; }
  .sf-bj figure.xhs figcaption { font-size: 11px; }
  .sf-bj .table-scroll, .sf-bj .prose .table-scroll, .sf-bj .dg-guide .dg-table { margin-top: 25px; }
  .sf-bj th, .sf-bj td, .sf-bj .dg-guide .dg-table th, .sf-bj .dg-guide .dg-table td { padding: 12px 13px; }
  .sf-bj .dg-guide .dg-tool, .sf-bj .dg-guide .dg-form, .sf-bj .dg-guide .dg-brief { margin: 29px 0; padding: 21px 17px; }
  .sf-bj .dg-guide .dg-tool h3, .sf-bj .dg-guide .dg-form h2, .sf-bj .dg-guide .dg-brief h2 { font-size: 26px; }
  .sf-bj .dg-guide .dg-controls, .sf-bj .dg-guide .dg-form-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 20px; }
  .sf-bj .dg-guide .dg-results { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sf-bj .dg-guide .dg-results strong { font-size: 29px; }
  .sf-bj .dg-guide .dg-route-result { padding: 17px; }
  .sf-bj .dg-guide .dg-route-result h4 { font-size: 23px; }
  .sf-bj .dg-guide .dg-button { width: 100%; }
  .sf-bj .bottom-nav { gap: 12px; margin-top: 42px; }
  .sf-bj .bottom-nav > a, .sf-bj .bottom-nav .nav-card { min-height: 125px; padding: 17px 15px; }
  .sf-bj .bottom-nav :is(strong, .nav-title) { font-size: 17px; }
  .sf-bj .bottom-nav :is(small, .nav-direction, .nav-label) { font-size: 9px; }
  .sf-bj dialog.photo-viewer { width: calc(100vw - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .sf-bj .viewer-toolbar { padding: 9px 12px; gap: 8px; font-size: 10px; }
  .sf-bj .viewer-toolbar :is(button, a) { padding: 8px 10px; min-height: 42px; }
  .sf-bj .viewer-caption { padding: 12px 14px 16px; font-size: 11px; }
  .sf-bj .viewer-stage { padding: 10px; }
  .sf-bj .viewer-nav { padding: 0 14px 14px; }
  .sf-bj footer { padding-top: 23px; padding-bottom: 28px; font-size: 9px; }
}
@media (max-width: 359px) {
  .sf-bj { --gutter: 16px; }
  .sf-bj header.top { flex-direction: column; gap: 8px; }
  .sf-bj .top-nav { justify-content: flex-start; gap: 4px 16px; }
  .sf-bj .hero-copy h1 { font-size: 31px; }
  .sf-bj .article-row { grid-template-columns: 66px 18px minmax(0, 1fr); gap: 10px; }
  .sf-bj .article-row h2 { font-size: 15px; }
  .sf-bj .article-head h1 { font-size: 31px; }
  .sf-bj .article-actions { gap: 7px; }
  .sf-bj .article-actions :is(button, a) { padding-inline: 10px; font-size: 10px; }
  .sf-bj .bottom-nav { grid-template-columns: minmax(0, 1fr); }
  .sf-bj .bottom-nav > a, .sf-bj .bottom-nav .nav-card { min-height: 100px; }
  .sf-bj .dg-guide .dg-tool, .sf-bj .dg-guide .dg-form, .sf-bj .dg-guide .dg-brief { padding-inline: 14px; }
}
@media (max-width: 900px) {
  .sf-bj .brand .wordmark { font-size: 25px; }
  .sf-bj .brand .brand-subtitle { display: none; }
  .sf-bj .top-status { display: none; }
  .sf-bj .library-sidebar h2 { margin: 12px 0; font-size: 21px; }
  .sf-bj .library-sidebar h2 br, .sf-bj .library-sidebar p br { display: none; }
  .sf-bj .library-sidebar #reset-filters { width: auto; margin-top: 12px; margin-right: 16px; }
  .sf-bj .sidebar-edition { display: inline-block; margin-top: 0; }
}
@media (max-width: 640px) {
  .sf-bj .brand .wordmark { font-size: 24px; }
  .sf-bj .top-nav { align-items: center; }
  .sf-bj .hero-jump { margin-top: 17px; }
  .sf-bj .hero-meta b { font-size: 27px; }
  .sf-bj .hero-image-label { inset: auto 10px 10px; padding: 10px 13px; font-size: 8px; }
  .sf-bj .hero-image-label b { margin-top: 3px; font-size: 12px; }
  .sf-bj .section-heading { gap: 8px; }
  .sf-bj .section-heading p { font-size: 10px; }
  .sf-bj .toolbar .search-control { flex-basis: 100%; }
  .sf-bj .row-copy > .row-tags { margin-bottom: 7px; }
  .sf-bj .library-notes { margin-top: 32px; }
  .sf-bj .prose p.lead-answer { padding-left: 16px; font-size: 19px; line-height: 1.7; }
  .sf-bj .review-note p { font-size: 10px; }
  .sf-bj .viewer-toolbar h2 { font-size: 16px; }
  .sf-bj .viewer-toolbar .viewer-counter { font-size: 9px; }
  .sf-bj .viewer-stage { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sf-bj .viewer-stage .viewer-image { grid-column: 1; }
  .sf-bj .viewer-stage :is(.viewer-prev, .viewer-next) { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; min-height: 44px; background: #172b23e8; }
  .sf-bj .viewer-stage .viewer-prev { left: 8px; }
  .sf-bj .viewer-stage .viewer-next { right: 8px; }
  .sf-bj .viewer-bottom { padding: 13px 14px 16px; }
  .sf-bj .viewer-bottom .viewer-caption { font-size: 11px; }
  .sf-bj .site-footer .footer-meta { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.sf-bj) { scroll-behavior: auto; }
  .sf-bj *, .sf-bj *::before, .sf-bj *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
@media print {
  .sf-bj { background: #fff; color: #000; font-size: 10pt; }
  .sf-bj header.top, .sf-bj .skip-link, .sf-bj .reading-progress,
  .sf-bj .toc, .sf-bj .mobile-toc, .sf-bj .article-actions,
  .sf-bj .toolbar, .sf-bj .journey-strip, .sf-bj .library-sidebar,
  .sf-bj .bottom-nav, .sf-bj .photo-viewer, .sf-bj #reset-filters,
  .sf-bj .dg-button, .sf-bj .dg-form, .sf-bj .viewer-nav,
  .sf-bj .photo-expand, .sf-bj .review-note, .sf-bj .hero-jump { display: none !important; }
  .sf-bj .shell, .sf-bj.reader-page .shell { max-width: none; padding: 0; margin: 0; }
  .sf-bj .article-head { margin-bottom: 20pt; padding-bottom: 14pt; border-color: #777; }
  .sf-bj .article-head h1 { max-width: none; font-size: 26pt; color: #000; }
  .sf-bj .article-head .excerpt { max-width: none; font-size: 11pt; color: #333; }
  .sf-bj .breadcrumbs, .sf-bj .article-head .notice { font-size: 8pt; }
  .sf-bj .reading-grid, .sf-bj .library-layout, .sf-bj .library-hero { display: block; }
  .sf-bj .prose, .sf-bj .prose.dg-guide { max-width: none; font-size: 10.5pt; line-height: 1.65; color: #000; }
  .sf-bj .prose > p:first-child, .sf-bj .prose p.lead-answer { font-size: 12pt; }
  .sf-bj .prose > h2, .sf-bj .prose.dg-guide > h2, .sf-bj .prose section > h2 { font-size: 17pt; margin-top: 24pt; color: #000; break-after: avoid; }
  .sf-bj .prose h3, .sf-bj .prose.dg-guide h3 { font-size: 12pt; color: #000; break-after: avoid; }
  .sf-bj figure.xhs { margin: 20pt 0; break-inside: avoid; }
  .sf-bj figure.xhs img { max-width: 100%; max-height: 360px; }
  .sf-bj figure.xhs figcaption { font-size: 8pt; color: #333; }
  .sf-bj details.image-details { display: block; }
  .sf-bj .image-details > :not(summary) { display: block; }
  .sf-bj .image-details summary { display: none; }
  .sf-bj .table-scroll, .sf-bj .dg-guide .dg-table { overflow: visible; margin: 15pt 0; }
  .sf-bj table, .sf-bj .dg-guide .dg-table table { min-width: 0; font-size: 8pt; table-layout: fixed; }
  .sf-bj th, .sf-bj td, .sf-bj .dg-guide .dg-table th, .sf-bj .dg-guide .dg-table td { min-width: 0; padding: 6pt; overflow-wrap: anywhere; border-color: #aaa; }
  .sf-bj thead { display: table-header-group; }
  .sf-bj thead th, .sf-bj .dg-guide .dg-table thead th { background: #e5e7df; color: #000; }
  .sf-bj tr { break-inside: avoid; }
  .sf-bj .table-hint { display: none; }
  .sf-bj .dg-guide .dg-tool { break-inside: auto; padding: 14pt; background: #f1f2ec; }
  .sf-bj .dg-guide :is(input, select, textarea) { min-height: 24pt; font-size: 10pt; padding: 5pt; border-color: #999; }
  .sf-bj .dg-guide .dg-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12pt; }
  .sf-bj .dg-guide .dg-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-bj .article-row { break-inside: avoid; grid-template-columns: 75px 20px minmax(0, 1fr) 75px; padding: 14pt 0; }
  .sf-bj .article-row .row-meta { grid-column: auto; grid-row: auto; flex-direction: column; align-items: flex-end; text-align: right; }
  .sf-bj .article-row .thumbnail, .sf-bj .article-row .row-copy, .sf-bj .article-row .article-id { grid-column: auto; grid-row: auto; }
  .sf-bj .article-row .thumbnail img { aspect-ratio: 4/3; }
  .sf-bj .sources { font-size: 8pt; color: #333; }
  .sf-bj a { color: #000; }
  .sf-bj footer { margin-top: 20pt; padding: 12pt 0; font-size: 8pt; color: #333; }
}



.sf-bj .mobile-toc a[aria-current="location"]{color:var(--ink);font-weight:650;}

/* Native template integration: only the article containing this release. */
.sf-blog--post:has(.sf-bj) .sf-blog-main { background:#f6f3ec; }
.sf-blog--post:has(.sf-bj) .sf-blog-hero { background:#f6f3ec; border-bottom:1px solid #d5d9ce; }
.sf-blog--post:has(.sf-bj) .sf-blog-hero .sf-lp-hero__inner { max-width:1220px; margin:auto; padding:52px clamp(20px,4.4vw,64px) 38px; gap:38px; }
.sf-blog--post:has(.sf-bj) .sf-blog-hero h1 { color:#193b30; font:400 clamp(34px,4.1vw,60px)/1.12 "Iowan Old Style",Georgia,serif; letter-spacing:-.035em; text-wrap:pretty; }
.sf-blog--post:has(.sf-bj) .sf-blog-hero .sf-lp-hero__lede { color:#5f6b62; font-size:18px; line-height:1.7; }
.sf-blog--post:has(.sf-bj) .sf-blog-hero .sf-guide-kicker { color:#9b4d35; font-size:10px; letter-spacing:.14em; }
.sf-blog--post:has(.sf-bj) .sf-blog-hero__meta { font-size:11px; line-height:1.8; color:#5f6b62; }
.sf-blog--post:has(.sf-bj) .sf-blog-hero__topic { border-radius:0; color:#193b30; background:#e8ede3; }
.sf-blog--post:has(.sf-bj) .sf-blog-hero .sf-lp-hero__media img { width:100%; height:auto; max-height:480px; object-fit:contain; aspect-ratio:auto; background:#eae8de; border-radius:0; }
.sf-blog--post:has(.sf-bj) .sf-blog-hero .sf-lp-hero__media figcaption { color:#5f6b62; font-size:10px; line-height:1.7; }
.sf-blog--post:has(.sf-bj) .sf-blog-raw-content { width:100%; margin:0; padding:0; }
.sf-bj { width:100%; isolation:isolate; }
.sf-bj > .reader-shell { padding-top:24px; }
.sf-bj .sf-bj-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px; padding-bottom:24px; margin-bottom:30px; border-bottom:1px solid #a8b3a6; }
.sf-bj .sf-bj-toolbar .eyebrow { margin:0; }
.sf-bj .sf-bj-toolbar .article-actions { margin:0; }
.sf-bj .sf-bj-brief .sf-bj-brief-intro { font:400 13px/1.75 var(--sans); }
.sf-bj .sf-bj-brief .sf-bj-required { margin:12px 0; font:400 11px/1.7 var(--sans); color:var(--muted); }
.sf-bj .sf-bj-brief > .sf-submit { margin-top:22px; }
.sf-bj .sf-bj-brief .sf-bj-form-link { display:block; margin-top:15px; font:400 11px/1.7 var(--sans); }
.sf-bj .sf-bj-brief .sf-form-status { margin-top:16px; font:400 13px/1.8 var(--sans); }
.sf-bj .sf-bj-brief .sf-form-status.sf-error { color:#8f2f22; }
.sf-bj .sf-bj-brief .sf-form-status a { overflow-wrap:anywhere; }
.sf-bj .sf-bj-brief [aria-busy="true"] { cursor:wait; opacity:.7; }
body:has(.sf-bj dialog[open]) { overflow:hidden; }
.sf-bj .prose h2[id], .sf-bj .dg-tool[id], .sf-bj .sf-bj-brief { scroll-margin-top:125px; }
.sf-bj .toc { top:112px; max-height:calc(100dvh - 140px); }
@media(max-width:900px) {
  .sf-blog--post:has(.sf-bj) .sf-blog-hero .sf-lp-hero__inner { padding:35px 28px; }
}
@media(max-width:640px) {
  .sf-blog--post:has(.sf-bj) .sf-blog-hero .sf-lp-hero__inner { padding:30px 22px; gap:24px; }
  .sf-blog--post:has(.sf-bj) .sf-blog-hero h1 { font-size:clamp(32px,8.5vw,44px); }
  .sf-blog--post:has(.sf-bj) .sf-blog-hero .sf-lp-hero__lede { font-size:16px; }
  .sf-blog--post:has(.sf-bj) .sf-blog-hero .sf-lp-hero__media img { max-height:50vh; }
  .sf-bj .sf-bj-toolbar { align-items:flex-start; gap:16px; }
}
@media(max-width:359px) {
  .sf-blog--post:has(.sf-bj) .sf-blog-hero .sf-lp-hero__inner { padding-inline:16px; }
}
@media print {
  .sf-bj .sf-bj-toolbar, .sf-bj .sf-bj-brief { display:none!important; }
  .sf-blog--post:has(.sf-bj) .sf-blog-hero { background:white; }
}
