/* The guide uses SC's shell. The sample has its own three editable color roles. */
.bp-guide {
  --guide-ink: #30343b;
  --guide-accent: #465ac7;
  --guide-paper: #f5f6f8;
  --bp-paper: #f5f6f8;
  --bp-ink: #30343b;
  --bp-accent: #465ac7;
  color: var(--guide-ink);
}
.bp-guide .ws-header,
.bp-guide .ws-footer,
.bp-wrap {
  width: min(1264px, 100%);
  padding-inline: clamp(18px, 4vw, 56px);
  margin-inline: auto;
}
.bp-guide .ws-header { min-height: 76px; }
.bp-guide .ws-logo { background: transparent; }
.bp-guide .ws-logo i { background: var(--guide-accent); }
.bp-guide .ws-primary .ws-button { background: var(--guide-ink); color: white; }
.bp-guide .ws-footer { padding-block: 36px 28px; }
.bp-guide .ws-footer *, .bp-guide .ws-header * { border: 0; box-shadow: none; }
.bp-guide :focus-visible { outline: 3px solid #3449aa; outline-offset: 4px; }
.bp-guide :is(section,figure,aside,li,div,p)[tabindex="-1"] { scroll-margin-top: 18px; }
.bp-main { font-size: 16px; line-height: 1.52; }
.bp-main h1, .bp-main h2, .bp-main h3, .bp-main h4 { margin: 0; line-height: 1.12; }
.bp-main a { color: var(--guide-accent); }
.bp-main a:hover, .bp-guide .ws-primary a:hover, .bp-guide .ws-footer a:hover { text-decoration: underline; text-underline-offset: .15em; }
.bp-main button { cursor: pointer; }
.bp-intro { display: grid; grid-template-columns: minmax(0,1.85fr) minmax(205px,1fr); gap: 52px; align-items: end; padding-block: 26px 28px; }
.bp-kicker { font-size: 13px; font-weight: 650; color: var(--guide-accent); margin: 0 0 8px; }
.bp-kicker span { padding-inline: 4px; color: var(--guide-ink); }
.bp-intro h1 { font-size: clamp(34px,3.7vw,49px); font-weight: 650; letter-spacing: -.05em; }
.bp-lead { max-width: 62ch; margin-top: 12px; font-size: 18px; line-height: 1.42; }
.bp-contents { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 14px; align-items: start; }
.bp-contents a { display: inline-flex; align-items: center; font-size: 14px; min-height: 40px; line-height: 1.25; font-weight: 600; }
.bp-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.bp-tools h2 { font-size: 21px; letter-spacing: -.025em; font-weight: 650; }
.bp-tools p { margin-top: 4px; font-size: 14px; }
.bp-modes, .bp-palettes { display: inline-flex; padding: 3px; gap: 2px; background: var(--guide-paper); }
.bp-modes { flex: none; }
.bp-modes button, .bp-palettes button { min-height: 38px; border: 0; background: transparent; color: var(--guide-ink); padding: 7px 13px; font-weight: 600; font-size: 14px; }
.bp-modes button[aria-pressed="true"], .bp-palettes button[aria-pressed="true"] { background: var(--guide-ink); color: white; }
.bp-modes button:focus-visible, .bp-palettes button:focus-visible { z-index: 1; }
.bp-board { --pad: clamp(18px,2.5vw,36px); }
.bp-row { display: grid; grid-template-columns: minmax(0,1.85fr) minmax(260px,1fr); gap: clamp(24px,3.8vw,52px); align-items: stretch; }
.bp-example { min-width: 0; color: var(--bp-ink); background: var(--bp-paper); }
.bp-example a { color: var(--bp-accent); }
.bp-pad { padding: 28px var(--pad); }
.bp-row:nth-child(odd) .bp-pad { padding-block: 32px; }
.bp-sample-nav { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px var(--pad); }
.bp-main .bp-wordmark { display:inline-flex; align-items:baseline; gap:.15em; color:var(--bp-ink); font:600 23px/1.1 Georgia,'Times New Roman',serif; letter-spacing:-.045em; white-space:nowrap; }
.bp-wordmark span { color:var(--bp-accent); font-style:italic; }
.bp-sample-nav nav, .bp-shop-footer nav { display:flex; align-items:center; flex-wrap:wrap; gap:4px 18px; }
.bp-sample-nav nav a { font-size:14px; display:inline-flex; align-items:center; min-height:40px; font-weight:550; color:var(--bp-ink); }
.bp-banner { background:var(--bp-ink); color:var(--bp-paper); padding:9px var(--pad); display:flex; gap:3px 10px; align-items:center; flex-wrap:wrap; font-size:14px; }
.bp-banner a { color:var(--bp-paper); font-weight:650; }
.bp-banner .bp-pin { margin-left:auto; color:var(--bp-paper); }
.bp-hero { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); align-items:stretch; }
.bp-hero-copy { align-self:center; padding:24px 16px 30px var(--pad); }
.bp-hero h2 { font-size:38px; font-weight:650; line-height:1.04; letter-spacing:-.045em; }
.bp-hero p { font-size:18px; line-height:1.45; margin-block:14px 18px; }
.bp-hero img { width:100%; height:100%; min-height:255px; max-height:368px; object-fit:cover; object-position:52% center; align-self:center; }
.bp-main .bp-action { display:inline-flex; justify-content:center; align-items:center; width:fit-content; max-width:100%; min-height:44px; padding:10px 16px; border:0; background:var(--bp-accent); color:var(--bp-paper); font-size:16px; font-weight:650; line-height:1.25; text-align:center; }
.bp-action:hover { opacity:.92; }
.bp-main .bp-action:hover, .bp-main .bp-pin:hover, .bp-main .bp-note-target:hover { text-decoration:none; }
.bp-action:active, .bp-modes button:active, .bp-palettes button:active { transform:translateY(1px); }
.bp-main .bp-pin { appearance:none; display:inline-flex; width:28px; height:28px; line-height:1; align-items:center; justify-content:center; vertical-align:middle; color:var(--bp-accent); font:650 20px/1 Archivo,Arial,sans-serif; letter-spacing:0; }
.bp-main .bp-banner .bp-pin { color:var(--bp-paper); }
.bp-pin:hover, .bp-note-target:hover { background:color-mix(in srgb,var(--bp-accent) 10%,transparent); }
.bp-note { padding-block:28px 22px; align-self:center; max-width:42ch; }
.bp-top-notes .bp-note { padding-top:12px; }
.bp-main .bp-note-target { display:inline-flex; color:var(--guide-accent); gap:8px; align-items:baseline; font-size:19px; font-weight:650; letter-spacing:-.02em; }
.bp-arrow { font-size:21px; }
.bp-note p, .bp-small, .bp-formula { font-size:15px; line-height:1.43; }
.bp-note p { margin-top:8px; }
.bp-spec { font-weight:600; color:var(--guide-accent); }
.bp-pair { display:grid; grid-template-columns:38px minmax(0,1fr); gap:3px 7px; margin:12px 0 0; font-size:15px; line-height:1.4; }
.bp-pair dt { font-size:13px; font-weight:700; padding-top:2px; }
.bp-pair dt:first-of-type { color:var(--guide-accent); }
.bp-pair dd { margin:0; }
.bp-reason { color:#4e535c; }
.bp-top-notes { padding-bottom:16px; }
.bp-top-notes .bp-note:first-child { padding-bottom:9px; }
.bp-top-notes .bp-note:last-child { padding-top:20px; padding-bottom:0; }
.bp-formula { margin-block:4px; }
.bp-formula strong { color:var(--guide-accent); }
.bp-main .bp-sample-heading { color:var(--bp-ink); font-size:29px; font-weight:640; letter-spacing:-.035em; }
.bp-choices { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:19px; }
.bp-example h4 { font-size:19px; font-weight:620; line-height:1.25; }
.bp-choices p, .bp-steps li, .bp-answers p, .bp-body-lead, .bp-shop-footer p { font-size:17px; line-height:1.48; max-width:60ch; }
.bp-choices p, .bp-answers p { margin-top:5px; }
.bp-text-link { display:inline-block; margin-top:8px; font-size:15px; font-weight:650; }
.bp-work-photo { margin-top:16px; }
.bp-work-photo img { width:100%; aspect-ratio:2.5; object-fit:cover; object-position:center 54%; }
.bp-work-photo figcaption { margin-top:7px; font-size:14px; }
.bp-steps { display:grid; gap:12px; margin:18px 0 0; padding-inline-start:23px; }
.bp-steps li { padding-inline-start:5px; }
.bp-steps li::marker { color:var(--bp-accent); font-weight:650; }
.bp-answers { margin-top:18px; }
.bp-answers h4:not(:first-child) { margin-top:16px; }
.bp-body-lead { margin-top:12px; }
.bp-demo-hint { margin-block:14px 12px; font-size:14px; }
.bp-fields { display:grid; grid-template-columns:minmax(0,210px) 95px; gap:12px; }
.bp-fields label { display:grid; gap:5px; font-size:14px; font-weight:650; }
.bp-fields select, .bp-fields input { width:100%; min-width:0; height:42px; border:1px solid var(--bp-ink); background:var(--bp-paper); color:var(--bp-ink); padding:6px 9px; font-size:16px; }
.bp-email-example { font-size:14px; margin-block:11px; }
.bp-email-example span { font-weight:580; }
.bp-email-example small { font-size:13px; }
.bp-form-error,.bp-receipt:not(:empty) { margin-top:10px; font-size:15px; font-weight:600; }
.bp-shop-footer p { margin:18px 0 12px; }
.bp-shop-footer nav { align-items:flex-start; gap:4px 18px; }
.bp-shop-footer nav a { font-size:15px; font-weight:600; padding-block:5px; }
.bp-board [tabindex="-1"]:target:not(.bp-note) { background-color:color-mix(in srgb,var(--bp-accent) 8%,var(--bp-paper)); }
.bp-board .bp-banner:target { background-color:var(--bp-ink); }
.bp-note:target { background-color:var(--guide-paper); }
.bp-workshop[data-mode="sample"] .bp-row { display:block; }
.bp-workshop[data-mode="sample"] :is(.bp-pin,.bp-note,.bp-top-notes) { display:none; }
.bp-workshop[data-mode="sample"] .bp-board { max-width:940px; margin-inline:auto; }
.bp-workshop[data-mode="sample"] .bp-hero img { max-height:330px; }
.bp-reference { display:grid; grid-template-columns:minmax(180px,.74fr) minmax(0,1.6fr); gap:clamp(24px,6vw,88px); padding-block:44px 10px; }
.bp-side-title h2 { font-size:clamp(25px,2.6vw,32px); letter-spacing:-.04em; max-width:18ch; }
.bp-reference-body { min-width:0; max-width:73ch; }
.bp-section-lead { font-size:18px; line-height:1.44; }
.bp-setting { margin-top:23px; }
.bp-setting h3 { font-size:20px; letter-spacing:-.025em; }
.bp-setting p { margin-top:7px; }
.bp-setting a, .bp-end a { font-weight:600; }
.bp-main code { font: .94em/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; overflow-wrap:anywhere; }
.bp-routes { margin-block:14px; }
.bp-routes div { display:grid; grid-template-columns:108px 1fr; gap:10px; padding-block:3px; }
.bp-routes dt { font-weight:620; }
.bp-routes dd { margin:0; min-width:0; }
.bp-scale { font-size:15px; width:100%; text-align:left; border-collapse:collapse; margin-top:14px; }
.bp-scale caption { text-align:left; font-weight:650; margin-bottom:4px; }
.bp-scale th,.bp-scale td { padding:6px 10px 6px 0; vertical-align:top; }
.bp-scale thead th { color:var(--guide-accent); }
.bp-scale tbody th { font-weight:580; }
.bp-palettes { margin-top:13px; max-width:100%; flex-wrap:wrap; }
.bp-swatches { list-style:none; display:flex; flex-wrap:wrap; gap:8px 22px; padding:0; margin:13px 0 7px; }
.bp-swatches li { display:grid; grid-template-columns:26px auto; gap:0 8px; font-size:14px; font-weight:600; align-items:center; }
.bp-swatches code { grid-column:2; font-size:13px; font-weight:450; }
.bp-swatch { width:26px; height:31px; grid-row:span 2; }
.bp-swatch[data-role="paper"] { background:var(--bp-paper); }
.bp-swatch[data-role="ink"] { background:var(--bp-ink); }
.bp-swatch[data-role="accent"] { background:var(--bp-accent); }
.bp-search-preview { margin-top:16px; display:grid; gap:3px; padding:17px 20px; background:var(--guide-paper); }
.bp-preview-label,.bp-search-preview>span { font-size:13px; }
.bp-search-preview strong { font-size:19px; font-weight:550; color:var(--guide-accent); }
.bp-search-preview>p:last-child { font-size:15px; }
.bp-end { display:flex; align-items:end; justify-content:space-between; gap:20px; padding-block:48px 22px; }
.bp-end small { display:block; margin-top:5px; }
.bp-end nav { display:grid; font-size:14px; gap:5px; }
@media (max-width:1000px) {
  .bp-row { grid-template-columns:minmax(0,1.6fr) minmax(225px,1fr); gap:24px; }
  .bp-hero { grid-template-columns:minmax(0,1.15fr) minmax(0,.8fr); }
  .bp-hero h2 { font-size:32px; }
  .bp-hero p { font-size:17px; }
  .bp-intro { grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr); gap:24px; }
}
@media (max-width:760px) {
  .bp-guide .ws-header { min-height:64px; }
  .bp-intro,.bp-row,.bp-reference { display:block; }
  .bp-intro { padding-block:15px 6px; }
  .bp-intro h1 { font-size:34px; }
  .bp-lead,.bp-section-lead { font-size:17px; }
  .bp-contents { display:flex; gap:0 17px; flex-wrap:wrap; margin-top:9px; }
  .bp-contents a { min-height:34px; }
  .bp-tools { align-items:flex-start; flex-wrap:wrap; padding-block:12px; gap:9px; }
  .bp-tools p { max-width:56ch; }
  .bp-modes button, .bp-palettes button { min-height:40px; }
  .bp-note { max-width:none; padding:14px 3px 22px; }
  .bp-note p,.bp-formula,.bp-small { max-width:70ch; }
  .bp-top-notes { padding-bottom:20px; }
  .bp-top-notes .bp-note:first-child { padding-top:14px; }
  .bp-top-notes .bp-note:last-child { padding-top:14px; }
  .bp-arrow { font-size:0; }
  .bp-arrow::before { content:'↑'; font-size:19px; }
  .bp-hero h2 { font-size:30px; }
  .bp-hero { grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); }
  .bp-hero img { min-height:198px; max-height:285px; }
  .bp-pad,.bp-row:nth-child(odd) .bp-pad { padding-block:22px; }
  .bp-main .bp-sample-heading { font-size:25px; }
  .bp-choices p,.bp-steps li,.bp-answers p,.bp-body-lead,.bp-shop-footer p { font-size:16px; }
  .bp-reference { padding-block:30px 6px; }
  .bp-side-title h2 { max-width:none; }
  .bp-side-title { margin-bottom:14px; }
  .bp-end { padding-block:30px 18px; flex-wrap:wrap; }
}
@media (max-width:520px) {
  .bp-hero { display:flex; flex-direction:column; }
  .bp-hero-copy { width:100%; padding:17px var(--pad) 16px; }
  .bp-hero h2 { max-width:18ch; }
  .bp-hero p { margin-block:9px 12px; }
  .bp-hero img { min-height:0; height:auto; width:100%; max-height:215px; aspect-ratio:1.9; object-fit:cover; object-position:50% 51%; }
  .bp-sample-nav { flex-wrap:wrap; gap:0 9px; }
  .bp-sample-nav nav { gap:6px 11px; }
  .bp-sample-nav nav a { min-height:32px; }
  .bp-choices { grid-template-columns:1fr; gap:16px; }
  .bp-work-photo img { aspect-ratio:1.65; }
  .bp-scale { font-size:14px; }
  .bp-scale th,.bp-scale td { padding-right:5px; }
  .bp-swatches { gap:9px 13px; }
  .bp-routes div { grid-template-columns:84px minmax(0,1fr); font-size:14px; }
  .bp-contents a { font-size:13px; }
}
@media (prefers-reduced-motion:reduce) { .bp-main * { scroll-behavior:auto!important; transition:none!important; } }

/* Selecting an opening detail keeps its explanation beside the specimen. */
.bp-jump { display:none; }
.bp-inspect { display:flex; flex-wrap:wrap; gap:3px; margin-bottom:5px; }
.bp-inspect button { min-height:34px; padding:5px 10px; font-size:14px; font-weight:600; color:var(--guide-accent); border:0; background:transparent; }
.bp-inspect button[aria-pressed="true"] { color:var(--guide-ink); background:var(--guide-paper); }
.bp-top-notes { padding-block:8px 18px; align-self:center; }
.bp-top-notes .bp-note:first-child, .bp-top-notes .bp-note:last-child { padding-block:6px; }
.bp-mini-key { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; margin-top:14px; font-size:13px; }
.bp-mini-key a { font-weight:650; }
.bp-mini-key span { display:inline-flex; align-items:center; gap:4px; }
.bp-mini-key i { display:inline-block; width:12px; height:12px; }
.bp-mini-key [data-role="paper"] { background:var(--bp-paper); }
.bp-mini-key [data-role="ink"] { background:var(--bp-ink); }
.bp-mini-key [data-role="accent"] { background:var(--bp-accent); }
.bp-hero-photo { position:relative; margin:0; display:grid; align-self:stretch; }
.bp-hero .bp-hero-photo img { min-height:100%; max-height:none; align-self:stretch; }
.bp-hero-photo .bp-pin { position:absolute; z-index:1; right:8px; bottom:8px; background:var(--bp-paper); }
.bp-main .bp-note-target { white-space:normal; }
@media(max-width:760px) {
  .bp-jump:not([hidden]) { display:flex; align-items:center; gap:10px; margin-top:10px; font-weight:600; font-size:14px; }
  .bp-jump select { height:36px; max-width:100%; color:var(--guide-ink); background:white; border:1px solid #727780; padding:4px 8px; font-size:15px; }
  .bp-intro:has(.bp-jump:not([hidden])) .bp-contents { display:none; }
  .bp-top-notes { padding-block:13px 19px; }
  .bp-main .bp-pin span { font-size:0; }
  .bp-main .bp-pin span::before { content:'↓'; font-size:18px; }
}
@media(max-width:520px) {
  .bp-guide .ws-header { min-height:56px; }
  .bp-intro { padding-top:7px; }
  .bp-tools { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 7px; align-items:center; }
  .bp-tools>div:first-child { display:contents; }
  .bp-tools h2 { grid-area:1 / 1; font-size:17px; }
  .bp-tools p { grid-area:2 / 1 / 3 / -1; margin:0; font-size:13px; }
  .bp-tools .bp-modes { grid-area:1 / 2; }
  .bp-modes button { font-size:13px; padding:6px 8px; min-height:34px; }
  .bp-hero .bp-hero-photo { width:100%; }
  .bp-hero .bp-hero-photo img { min-height:0; width:100%; height:auto; max-height:200px; aspect-ratio:1.95; }
}

.bp-guide[data-default-palette="pine"] { --bp-paper:#f3f6f3; --bp-ink:#293a32; --bp-accent:#265b42; }
.bp-guide[data-default-palette="mulberry"] { --bp-paper:#f8f4f6; --bp-ink:#352d34; --bp-accent:#813f65; }
.bp-niches { display:flex; gap:8px 18px; align-items:center; flex-wrap:wrap; margin-block:4px 2px; font-size:15px; }
.bp-niches strong { font-weight:650; }
.bp-niche-links { display:flex; gap:3px; flex-wrap:wrap; }
.bp-niche-links a { display:inline-flex; align-items:center; min-height:38px; font-size:14px; font-weight:600; padding:6px 10px; color:var(--guide-accent); }
.bp-niche-links a[aria-current="page"] { color:var(--guide-ink); background:var(--guide-paper); }
.bp-niche-select { display:none; }
@media(max-width:760px) {
  .bp-niches:has(.bp-niche-select:not([hidden])) .bp-niche-links { display:none; }
  .bp-niche-select:not([hidden]) { display:block; height:36px; max-width:100%; border:1px solid #727780; background:white; color:var(--guide-ink); padding-inline:8px; font-size:16px; }
  .bp-niches { margin-block:8px 0; gap:4px 8px; }
}

.bp-niche-tip { margin-top:12px; }
