/* The blueprint of the tabernacle (js/blueprint.js): the “Blueprint” button under the view
   switch on the Tabernacle Layers tab, and the full-window viewer it opens. The drawings are
   white on blueprint blue by night and blue on paper by day; the frame around them — tabs,
   schedule, notes — is set like the rest of the page. Colors are the --bp-* and --bpm-* tokens
   at the top of styles.css. */

/* ---- the button under the view switch ---- */
.tb-views { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.bp-launch {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 11px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--bp-ink-2);
  background-color: var(--bp-paper);
  background-image:
    linear-gradient(var(--bp-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid-major) 1px, transparent 1px);
  background-size: 12px 12px;
  color: var(--bp-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.bp-launch-i { grid-row: 1 / 3; width: 42px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.bp-launch-t { font-family: var(--caps); font-size: 1.04rem; letter-spacing: 0.08em; line-height: 1.15; }
.bp-launch-s { font-size: 0.84rem; font-style: italic; line-height: 1.2; color: var(--bp-ink-2); }
.bp-launch:hover .bp-launch-t { text-decoration: underline; text-underline-offset: 4px; }
.bp-launch:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---- the viewer ---- */
html.bp-open { overflow: hidden; }
dialog.bp {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  line-height: 1.45;
}
dialog.bp[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
dialog.bp::backdrop { background: var(--overlay); }

.bp-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding: 10px 16px 10px 20px;
  background: var(--panel);
  border-bottom: 3px double var(--press);
}
.bp-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.4rem; line-height: 1.1; }
.bp-title span { margin-left: 0.3em; font-family: var(--caps); font-size: 0.78em; letter-spacing: 0.12em; color: var(--rubric); }
.bp-sub { margin: 2px 0 0; font-size: 0.86rem; font-style: italic; color: var(--muted); }

.bp-tabs { display: flex; flex-wrap: wrap; gap: 2px 16px; flex: 1 1 26rem; min-width: 0; }
.bp-tabs [role="tab"], .bp-units button, .bp-iso-tools button, .bp-zoom button {
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--caps);
  font-size: 1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.bp-tabs [role="tab"] { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 0; white-space: nowrap; }
.bp-tab-n { font-family: var(--text); font-size: 0.78em; }
.bp-tabs [role="tab"][aria-selected="true"], .bp-units button[aria-pressed="true"] { color: var(--rubric); text-decoration: underline; text-underline-offset: 5px; }
.bp-tabs [role="tab"]:hover, .bp-units button:hover { color: var(--ink); }
.bp-tabs [role="tab"]:focus-visible, .bp-units button:focus-visible, .bp-zoom button:focus-visible,
.bp-iso-tools button:focus-visible, .bp-close:focus-visible, .bp-canvas:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.bp-tools { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.bp-units { display: inline-flex; gap: 12px; }
.bp-bare { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-family: var(--caps); font-size: 1rem; letter-spacing: 0.05em; white-space: nowrap; cursor: pointer; }
.bp-bare input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--rubric); cursor: pointer; }
.bp-bare:hover { color: var(--ink); }
.bp-bare input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* the drawing alone: its pointers (leader, balloon and name) and its dimensions hidden */
.bp.is-bare .bp-svg :is(.bp-call, .bp-dim) { display: none; }
.bp-units button { padding: 4px 0; }
.bp-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  background: none;
  color: var(--ink);
  font-family: var(--sym);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.bp-close:hover { color: var(--rubric); border-color: var(--rubric); }
.bp-fs {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.bp-fs[hidden] { display: none; }
.bp-fs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.bp-fs .fs-leave, .bp-fs[aria-pressed="true"] .fs-enter { display: none; }
.bp-fs[aria-pressed="true"] .fs-leave { display: inline; }
.bp-fs:hover { color: var(--rubric); border-color: var(--rubric); }
.bp-fs:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* The schedule keeps its width and slides out past the right edge when hidden, so its text
   does not reflow as it goes; the drawing grows into the space. */
.bp { --side-w: clamp(18rem, 28vw, 24rem); }
.bp-body { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w); min-height: 0; overflow: hidden; overflow: clip; transition: grid-template-columns 240ms ease; }
.bp.side-closed .bp-body { grid-template-columns: minmax(0, 1fr) 0px; }
.bp.side-closed .bp-side { visibility: hidden; transition: visibility 0s 240ms; }

/* the tab on the drawing's edge: arrow toward the schedule to hide it, away from the edge to bring it back */
.bp-side-toggle {
  position: absolute;
  z-index: 3;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 26px;
  height: 76px;
  padding: 0;
  border: 1px solid var(--rule);
  border-right: 0;
  background: var(--panel);
  color: var(--rubric);
  box-shadow: -3px 0 12px var(--shadow);
  cursor: pointer;
}
.bp-side-toggle svg { width: 12px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: rotate 240ms ease; }
.bp.side-closed .bp-side-toggle svg { rotate: 180deg; }
.bp-side-toggle:hover { background: var(--surface-3); }
.bp-side-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }

/* the drawing */
.bp-stage { position: relative; min-width: 0; min-height: 0; background: var(--bp-paper); }
.bp-canvas { position: absolute; inset: 0; overflow: auto; cursor: grab; overscroll-behavior: contain; touch-action: pan-x pan-y; }
.bp-canvas.dragging { cursor: grabbing; user-select: none; }
.bp-sheetwrap { display: grid; place-items: center; box-sizing: border-box; width: max-content; min-width: 100%; min-height: 100%; padding: 12px; }
.bp-svg { display: block; max-width: none; }

.bp-zoom, .bp-iso-tools {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--rule);
  box-shadow: 0 4px 14px var(--shadow);
}
.bp-zoom { right: 14px; bottom: 14px; }
.bp-zoom button { min-width: 42px; height: 38px; padding: 0 10px; color: var(--ink); font-size: 1.05rem; }
.bp-zoom button + button { border-left: 1px solid var(--rule); }
.bp-zoom button:hover, .bp-iso-tools button:hover { color: var(--rubric); }
.bp-iso-tools { left: 14px; top: 14px; gap: 4px; padding: 2px 6px; flex-wrap: wrap; max-width: calc(100% - 28px); }
.bp-iso-tools[hidden], .bp-zoom[hidden] { display: none; }
.bp-iso-tools button { height: 36px; padding: 0 8px; color: var(--ink); }
.bp-iso-tools [data-turn] { font-family: var(--sym); font-size: 1.2rem; }
.bp-iso-tools [data-lift] { border-left: 1px solid var(--rule); margin-left: 4px; padding-left: 12px; }
.bp-iso-tools [data-lift][aria-pressed="true"] { color: var(--rubric); text-decoration: underline; text-underline-offset: 5px; }
.bp-iso-v { min-width: 9.5em; text-align: center; font-style: italic; font-size: 0.92rem; color: var(--muted); }

/* the info panel, fixed in the drawing's bottom-right corner, above the zoom buttons */
.bp-info {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 64px;
  width: min(21rem, calc(100% - 28px));
  display: grid;
  gap: 2px;
  padding: 8px 12px 9px;
  background: var(--modal);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--rule);
  box-shadow: 0 8px 22px var(--shadow);
  font-size: 0.9rem;
  line-height: 1.35;
}
.bp-info[hidden] { display: none; }
.bp-info.pinned { border-top-color: var(--rubric); }
.bp-info-h { display: flex; align-items: baseline; gap: 8px; }
.bp-info-h b { flex: 1; font-family: var(--display); font-weight: 400; font-size: 1.06rem; line-height: 1.2; }
.bp-info .bp-e-n { min-width: 1.5rem; height: 1.5rem; font-size: 0.68rem; }
.bp-info-m, .bp-info-s { color: var(--muted); }
.bp-info-x {
  flex: none;
  align-self: start;
  width: 30px;
  height: 30px;
  margin: -5px -7px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--sym);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.bp-info-x:hover { color: var(--rubric); }
.bp-info-more { justify-self: start; margin-top: 4px; padding: 2px 0; border: 0; background: none; color: var(--rubric); font-family: var(--caps); font-size: 0.96rem; letter-spacing: 0.03em; cursor: pointer; }
.bp-info-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.bp-info-x:focus-visible, .bp-info-more:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* the schedule */
.bp-side { width: var(--side-w); overflow: auto; overscroll-behavior: contain; padding: 14px 18px 48px; background: var(--panel); border-left: 1px solid var(--rule); }
.bp-intro { margin: 0 0 10px; font-style: italic; color: var(--muted); }
details.bp-key { margin: 0 0 12px; border-top: 1px dotted var(--rule); border-bottom: 1px dotted var(--rule); }
details.bp-key > summary { padding: 7px 0; font-family: var(--caps); letter-spacing: 0.04em; color: var(--rubric); cursor: pointer; }
details.bp-key > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bp-key-l { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 4px 12px; font-size: 0.86rem; color: var(--muted); }
.bp-key-l li { display: flex; align-items: center; gap: 8px; }
.bp-sw { flex: none; width: 24px; height: 15px; vertical-align: -3px; }
.bp-list-h { margin: 6px 0 4px; font-family: var(--caps); font-weight: 400; font-size: 1.05rem; letter-spacing: 0.08em; color: var(--muted); }

.bp-list { list-style: none; margin: 0; padding: 0; }
.bp-e { padding: 11px 0 13px 10px; margin-left: -10px; border-top: 1px dotted var(--rule); border-left: 3px solid transparent; }
.bp-e.on { border-left-color: var(--rubric); background: var(--surface-2); }
.bp-e.flash { animation: bpflash 1.1s ease-out; }
@keyframes bpflash { from { background: var(--surface-hover); } }
.bp-e-pick {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.16rem;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.bp-e-pick:disabled { cursor: default; }
.bp-e-pick:not(:disabled):hover .bp-e-name { color: var(--rubric); }
.bp-e-pick:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.bp-e-n {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 3px;
  border: 1px solid var(--rubric);
  border-radius: 999px;
  font-family: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: lining-nums;
  color: var(--rubric);
  translate: 0 -2px;
}
.bp-e.on .bp-e-n { background: var(--rubric); color: var(--bg); }
.bp-e-heb { margin: 3px 0 7px; font-size: 0.9rem; color: var(--muted); }
.bp-e-heb .he { font-family: "SBL Hebrew", "Ezra SIL", "Noto Serif Hebrew", "Frank Ruehl CLM", "Taamey Frank CLM", "Times New Roman", serif; font-size: 1.15em; color: var(--ink); }
.bp-e-facts { margin: 0; display: grid; gap: 3px; font-size: 0.93rem; }
.bp-e-facts > div { display: grid; grid-template-columns: 5.9rem minmax(0, 1fr); gap: 10px; }
.bp-e-facts dt { font-family: var(--caps); letter-spacing: 0.03em; color: var(--muted); }
.bp-e-facts dd { margin: 0; }
.bp-e-facts .bp-sw { margin-right: 2px; }
.bp-e-more { margin-top: 8px; padding: 3px 0; border: 0; background: none; color: var(--rubric); font-family: var(--caps); font-size: 0.98rem; letter-spacing: 0.03em; text-align: left; cursor: pointer; }
.bp-e-more::before { content: "☞ "; font-family: var(--sym); }
.bp-e-more[aria-expanded="true"]::before { content: "☟ "; }
.bp-e-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.bp-e-more:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* the popup a tap opens (#bpPop): the entry's Hebrew name and facts, what it is, then Continue reading */
.bp-pop .bb-sheet-head h3 { display: flex; align-items: center; gap: 8px; white-space: normal; font-size: 1.2rem; line-height: 1.2; }
.bp-pop .bb-sheet-head .bp-e-n { flex: none; }
.bp-pop-is { margin: 12px 0 0; font-size: 0.97rem; line-height: 1.52; }
.bp-pop .bb-sheet-btns { margin-top: 16px; }
.bp-pop .bb-btn { width: 100%; }
.bp-e-text { margin: 6px 0 0; padding: 10px 13px 4px; border-left: 2px solid var(--rubric); background: var(--surface); }
.bp-e-text p { margin: 0 0 9px; font-size: 0.97rem; line-height: 1.52; }
.bp-e-text a { color: var(--rubric); }

/* ---- the bill of materials ---- */
.bp-stage.is-doc { background: var(--bg); }
.bp-stage.is-doc .bp-canvas { cursor: auto; touch-action: auto; }
.bp-stage.is-doc .bp-sheetwrap { display: block; width: auto; padding: 0; }
.bp-doc { max-width: 62rem; margin: 0 auto; padding: 26px 26px 60px; }
.bp-doc h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 1.8rem; }
.bp-doc .bp-doc-h { margin-top: 38px; padding-top: 18px; border-top: 3px double var(--press); }
.bp-doc h4 { margin: 26px 0 8px; font-family: var(--caps); font-weight: 400; font-size: 1.1rem; letter-spacing: 0.08em; color: var(--rubric); }
.bp-doc-lede { margin: 0 0 18px; color: var(--muted); font-style: italic; }
.bp-tally { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.bp-tally-i { display: grid; align-content: start; gap: 2px; padding: 10px 12px; background: var(--panel); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.bp-tally-i b { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--rubric); }
.bp-tally-i span { font-size: 0.9rem; color: var(--muted); line-height: 1.3; }
.bp table.bp-t { display: table; width: 100%; min-width: 0; border-collapse: collapse; font-size: 0.95rem; }
.bp table.bp-t thead { display: table-header-group; }
.bp table.bp-t tbody { display: table-row-group; }
.bp table.bp-t tr { display: table-row; }
.bp table.bp-t th, .bp table.bp-t td { display: table-cell; padding: 5px 8px; border: 0; border-bottom: 1px dotted var(--rule); background: none; text-align: left; vertical-align: top; text-transform: none; letter-spacing: 0; color: var(--ink); font-size: inherit; }
.bp table.bp-t thead th { font-family: var(--caps); font-weight: 400; color: var(--muted); border-bottom: 1px solid var(--press); }
.bp table.bp-t .c { width: 4.2rem; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.bp table.bp-t tr.bp-t-item th { padding-top: 12px; border-bottom: 0; }
.bp table.bp-t-metal th[scope="row"] { white-space: nowrap; font-family: var(--caps); font-weight: 400; }
.bp-t-note { color: var(--muted); font-size: 0.9em; font-style: italic; }
.bp-go { display: inline-flex; align-items: baseline; gap: 8px; padding: 0; border: 0; background: none; color: var(--ink); font-family: var(--display); font-size: 1.08rem; cursor: pointer; text-align: left; }
.bp-go:hover { color: var(--rubric); }
.bp-go:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bp-bym-list { display: grid; gap: 0; }
details.bp-bym { border-bottom: 1px dotted var(--rule); }
details.bp-bym > summary { display: flex; align-items: center; gap: 9px; padding: 8px 0; cursor: pointer; }
details.bp-bym > summary b { font-family: var(--display); font-weight: 400; font-size: 1.08rem; }
details.bp-bym ul { margin: 0 0 12px; padding-left: 2.2rem; display: grid; gap: 3px; }
details.bp-bym .c { display: inline-block; min-width: 2.2em; font-variant-numeric: lining-nums; color: var(--rubric); }

/* ---- the drawings ---- */
.bp .bp-paper { fill: var(--bp-paper); stroke: none; }
.bp .bp-gridfill { fill: url(#bp-grid); stroke: none; pointer-events: none; }
.bp-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.bp-defs .g-min { fill: none; stroke: var(--bp-grid); stroke-width: 1; }
.bp-defs .g-maj { fill: none; stroke: var(--bp-grid-major); stroke-width: 1.2; }
.bp-defs .pf-linen { fill: var(--bpm-linen); fill-opacity: 0.5; }
.bp-defs .ps-blue { fill: none; stroke: var(--bpm-blue); stroke-width: 1.7; }
.bp-defs .ps-purple { fill: none; stroke: var(--bpm-purple); stroke-width: 1.7; }
.bp-defs .ps-scarlet { fill: none; stroke: var(--bpm-scarlet); stroke-width: 1.7; }
.bp-defs .pf-scarlet { fill: var(--bpm-scarlet); }
.bp-defs .pf-hair { fill: var(--bpm-hair); fill-opacity: 0.88; }
.bp-defs .ps-hair { stroke: var(--bp-ink-2); stroke-width: 0.6; opacity: 0.55; }
.bp-defs .ps-ink { fill: none; stroke: var(--bp-ink); stroke-width: 0.8; }
.bp-defs .ps-ink2 { stroke: var(--bp-ink-2); stroke-width: 0.9; }
.bp-defs .pf-ink { fill: var(--bp-ink-2); }
.bp-defs .pf-bronze { fill: var(--bpm-bronze); fill-opacity: var(--bp-tint); }

.bp :is(.bp-svg, .bp-sw) :is(rect, circle, ellipse, path, polygon, polyline, line) { stroke: var(--bp-ink); stroke-width: 1; }
.bp :is(.bp-svg, .bp-sw) .bp-paper { stroke: none; }
.bp-svg text { fill: var(--bp-ink); font-family: var(--caps); font-size: 13px; stroke: none; }
.bp-svg .bp-frame1 { fill: none; stroke-width: 2.2; }
.bp-svg .bp-frame2 { fill: none; stroke-width: 0.8; }

/* materials: a tint of the material's color, stronger for pure metal */
.bp .m-gold { fill: var(--bpm-gold); fill-opacity: var(--bp-tint); }
.bp .m-gold2 { fill: var(--bpm-gold); fill-opacity: var(--bp-tint-strong); }
.bp .m-silver { fill: var(--bpm-silver); fill-opacity: var(--bp-tint-strong); }
.bp .m-bronze { fill: var(--bpm-bronze); fill-opacity: var(--bp-tint); }
.bp .m-bronze2 { fill: var(--bpm-bronze); fill-opacity: var(--bp-tint-strong); }
.bp .m-wood { fill: var(--bpm-wood); fill-opacity: var(--bp-tint-strong); }
.bp .m-linen { fill: var(--bpm-linen); fill-opacity: var(--bp-tint); }
.bp .m-ram { fill: var(--bpm-ram); fill-opacity: var(--bp-tint-strong); }
.bp .m-blue { fill: var(--bpm-blue); fill-opacity: var(--bp-tint-strong); }
.bp .m-purple { fill: var(--bpm-purple); fill-opacity: var(--bp-tint-strong); }
.bp .m-scarlet { fill: var(--bpm-scarlet); fill-opacity: var(--bp-tint-strong); }
.bp .m-hair { fill: url(#bp-hair); }
.bp .m-tachash { fill: var(--bpm-tachash); fill-opacity: var(--bp-tint-strong); }
.bp .m-ground { fill: var(--bpm-ground); fill-opacity: 0.1; }
.bp .m-bread { fill: var(--bpm-bread); fill-opacity: var(--bp-tint-strong); }
.bp .f-embroid { fill: url(#bp-embroid); }
.bp .f-cherub { fill: url(#bp-cherub); }
.bp .f-hair { fill: url(#bp-hair); }
.bp .f-hatch { fill: url(#bp-hatch); }
.bp .f-dots { fill: url(#bp-dots); }
.bp .f-net { fill: url(#bp-net); }
.bp .kl-solid { stroke-width: 1.6; }

/* lines */
.bp .hid { fill: none; stroke: var(--bp-ink-2); stroke-dasharray: 5 3.5; }
.bp .ovh, .bp-svg .ovh-l { fill: none; stroke: var(--bp-ink-2); stroke-width: 1.1; stroke-dasharray: 14 4 3 4; }
.bp .dm-ln, .bp-svg .dm-ext { stroke: var(--bp-dim); stroke-width: 0.8; }
.bp-svg .dm-tk { stroke: var(--bp-dim); stroke-width: 1.5; }
.bp-svg .dm-t { fill: var(--bp-dim); font-family: var(--text); font-style: italic; font-size: 13px; }
.bp-svg .grnd { stroke-width: 2.2; }
.bp-svg .grnd-h { fill: url(#bp-earth); stroke: none; }
.bp-svg .seam { fill: none; stroke-width: 0.7; opacity: 0.8; }
.bp-svg .seam-l { stroke: var(--bp-ink-2); stroke-width: 0.8; }
.bp-svg .cord { stroke: var(--bp-ink-2); stroke-width: 0.8; stroke-dasharray: 2 2; }
.bp-svg .peg { stroke-width: 0.8; }
.bp-svg .band { stroke-width: 1.2; }
.bp-svg .hook { fill: none; stroke-width: 1.1; }
.bp-svg .ring { fill: none; stroke: var(--bpm-gold); stroke-width: 1.3; }
.bp-svg .fold-l { stroke-width: 1.2; stroke-dasharray: 3 2; }
.bp-svg .wing { fill: none; stroke: var(--bpm-gold); stroke-width: 1.4; }
.bp-svg .water { fill: var(--bpm-water); fill-opacity: 0.35; }
.bp-svg .water-l { stroke: var(--bpm-water); stroke-width: 1.4; }
.bp-svg .ls-stem, .bp-svg .ls-arm { fill: none; stroke: var(--bpm-gold); stroke-width: 3; }
.bp-svg .ls-base { fill: none; stroke-dasharray: 2 2; }
.bp-svg .flame { fill: var(--bp-hi); stroke: none; opacity: 0.85; }
.bp-svg .cup { stroke-width: 0.6; }
.bp-svg .loop-b { fill: none; stroke: var(--bpm-blue); stroke-width: 1.1; }
.bp-svg .loop-h { fill: none; stroke: var(--bp-ink-2); stroke-width: 0.9; }
.bp-svg .clasp { stroke-width: 0.6; }
.bp-svg .hang-o { fill: none; stroke-width: 6; }
.bp-svg .hang-i { fill: none; stroke: var(--bpm-linen); stroke-width: 3.6; }
.bp-svg .wall-far { fill-opacity: calc(var(--bp-tint) * 0.55); }
.bp-svg .lay-o { fill: none; stroke-width: 6.6; stroke-linejoin: miter; }
.bp-svg .lay-i { fill: none; stroke-width: 4.4; stroke-linejoin: miter; }
.bp-svg .lay-i.m-linen-s { stroke: var(--bpm-linen); }
.bp-svg .lay-i.m-hair-s { stroke: var(--bpm-hair); }
.bp-svg .lay-i.m-ram-s { stroke: var(--bpm-ram); }
.bp-svg .lay-i.m-tachash-s { stroke: var(--bpm-tachash); }
.bp-svg .lay-o.big { stroke-width: 11.5; }
.bp-svg .lay-i.big { stroke-width: 9; }
.bp-svg .lay-fold { fill: none; stroke-width: 1.4; }
.bp-svg .room { fill: none; stroke: none; pointer-events: none; }
.bp-svg .hit { fill: transparent; stroke: none; pointer-events: none; }
/* the court's ground is a background: a tap there is a tap on empty drawing (its label still chooses it) */
.bp-svg .court-fill { stroke: none; pointer-events: none; }
.bp-svg .ref-roof { fill: none; stroke: var(--bp-ink-2); stroke-width: 1.2; stroke-dasharray: 14 4 3 4; }
.bp-svg .ref-l { stroke: var(--bp-ink-2); stroke-width: 0.8; stroke-dasharray: 10 3 2 3; }
.bp-svg .ref-ghost { fill: none; stroke: var(--bp-ink-2); stroke-dasharray: 4 4; }
.bp-svg .iso-f { stroke-width: 0.6; }
.bp-svg .iso-s { stroke-width: 0.7; stroke-linejoin: round; }
.bp-svg .iso-post { stroke: var(--bpm-wood); stroke-width: 2.4; stroke-linecap: round; }
.bp-svg .iso-post.gold { stroke: var(--bpm-gold); }
.bp-svg .iso-cap { stroke-width: 0.5; }
.bp-svg .xray { fill-opacity: 0.16; }
.bp-svg .cut-l { stroke-width: 1.6; stroke-dasharray: 22 5 4 5; }
.bp-svg .cut-ar { fill: none; stroke-width: 1.6; }
.bp-svg .cut-c { fill: var(--bp-paper); stroke-width: 1.4; }
.bp-svg .bp-cutmark { cursor: pointer; }

/* callouts, captions, title block, notes, scale, compass */
.bp-svg .cl-ln { stroke-width: 0.8; }
.bp-svg .cl-dot { fill: var(--bp-ink); stroke: none; }
.bp-svg .cl-b { fill: var(--bp-paper); stroke-width: 1.1; }
.bp .bp-sw .cl-b { fill: none; }
.bp-svg .cl-n { font-family: var(--text); font-size: 11px; font-weight: 700; font-variant-numeric: lining-nums; }
.bp-svg .cl-t { font-size: 14px; }
.bp-svg .t-room { font-size: 11.5px; letter-spacing: 0.1em; }
.bp-svg .t-roomd, .bp-svg .t-ref, .bp-svg .t-note { fill: var(--bp-ink-2); font-family: var(--text); font-style: italic; font-size: 12px; }
.bp-svg .t-note { font-size: 13px; }
.bp-svg .t-big { font-size: 21px; letter-spacing: 0.14em; }
.bp-svg .t-dir { fill: var(--bp-ink-2); font-size: 13px; letter-spacing: 0.2em; }
.bp-svg .t-num { font-family: var(--text); font-size: 11.5px; font-weight: 600; font-variant-numeric: lining-nums; }
.bp-svg .t-lab { font-size: 14px; }
.bp-svg .cap-c { fill: none; stroke-width: 1.3; }
.bp-svg .cap-n { font-size: 13px; }
.bp-svg .cap-t { font-size: 19px; letter-spacing: 0.06em; }
.bp-svg .cap-u { stroke-width: 1.3; }
.bp-svg .cap-s { fill: var(--bp-ink-2); font-family: var(--text); font-style: italic; font-size: 13.5px; }
.bp-svg .tb-box { fill: var(--bp-paper); stroke-width: 1.8; }
.bp-svg .tb-rule { stroke-width: 0.8; }
.bp-svg .tb-k { fill: var(--bp-ink-2); font-size: 11px; letter-spacing: 0.1em; }
.bp-svg .tb-t { font-size: 22px; letter-spacing: 0.05em; }
.bp-svg .tb-s { fill: var(--bp-ink-2); font-family: var(--text); font-size: 12.5px; }
.bp-svg .tb-u { font-style: italic; }
.bp-svg .nt-h { font-size: 13px; letter-spacing: 0.14em; }
.bp-svg .nt { fill: var(--bp-ink-2); font-family: var(--text); font-size: 12.5px; }
.bp-svg .sb-a { fill: var(--bp-ink); stroke-width: 0.8; }
.bp-svg .sb-b { fill: var(--bp-paper); stroke-width: 0.8; }
.bp-svg .sb-t { font-family: var(--text); font-size: 11.5px; font-variant-numeric: lining-nums; }
.bp-svg .na-c { fill: none; stroke-width: 1.2; }
.bp-svg .na-a { fill: var(--bp-ink); }
.bp-svg .na-t { font-size: 15px; }

/* choosing a piece: it lights up, and everything else steps back */
.bp-svg .bp-p { cursor: pointer; transition: opacity 120ms ease; }
/* on a small phone the box takes a line of its own, under the units, so the close button stays on screen */
@media (max-width: 420px) {
  .bp-tools { flex-wrap: wrap; justify-content: flex-end; row-gap: 2px; }
  .bp-bare { order: 1; flex: 1 1 100%; justify-content: flex-end; }
}
@media (pointer: coarse) { .bp-svg .bp-p, .bp-svg .bp-cutmark { cursor: auto; } }   /* no cursor on a touch screen */
.bp-svg.has-on .bp-p:not(.on) { opacity: 0.36; }
.bp-svg .bp-p:is(.on, .hot) :is(rect, circle, ellipse, path, polygon, line):not(.cl-dot, .lay-i, .hang-i, .room, .hit, .court-fill) { stroke: var(--bp-hi); }
/* Hover lights a piece only where there is a hover (a mouse or pen). On a touch screen a :hover
   style would also make the browser snap near-miss taps onto the nearest piece or label, so a tap
   on bare drawing could never let go of the chosen piece. */
@media (hover: hover) {
  .bp-svg .bp-p:hover :is(rect, circle, ellipse, path, polygon, line):not(.cl-dot, .lay-i, .hang-i, .room, .hit, .court-fill) { stroke: var(--bp-hi); }
  .bp-svg .bp-cutmark:hover :is(line, path, circle) { stroke: var(--bp-hi); }
}
.bp-svg .bp-p.on :is(rect, circle, ellipse, path, polygon, line):not(.cl-dot, .lay-i, .lay-o, .hang-i, .hang-o, .iso-post, .ls-arm, .ls-stem, .room, .hit, .court-fill) { stroke-width: 1.8; }
.bp-svg .bp-p:is(.on, .hot) :is(.room, .hit, .court-fill) { fill: var(--bp-hi-soft); fill-opacity: 1; }
.bp-svg .bp-p.on text:not(.cl-n) { fill: var(--bp-hi); }
.bp-svg .bp-p:is(.on, .hot) .cl-b { fill: var(--bp-hi); }
.bp-svg .bp-p:is(.on, .hot) .cl-n { fill: var(--bp-paper); }
.bp-svg .bp-p:is(.on, .hot) .cl-dot { fill: var(--bp-hi); }
.bp-svg .bp-p.on .iso-post { stroke-width: 3.2; }

@media (max-width: 780px) {
  .tb-views { align-items: flex-start; }
  .bp-bar { padding: 8px 10px 6px 12px; gap: 6px 12px; }
  .bp-title { font-size: 1.2rem; }
  .bp-sub { font-size: 0.8rem; }
  .bp-sub-a { display: none; }
  .bp-tools { gap: 10px; }
  .bp-units { gap: 9px; }
  .bp-bare { font-size: 0.95rem; }
  .bp-units button, .bp-tabs [role="tab"] { font-size: 0.95rem; }
  .bp-tabs { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; gap: 14px; padding: 3px 3px 4px; scrollbar-width: none; }
  .bp-tabs [role="tab"]:focus-visible { outline-offset: 0; }
  .bp-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 60fr) minmax(0, 40fr); transition: none; }
  .bp.side-closed .bp-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 0px; }
  .bp-side { width: auto; border-left: 0; border-top: 3px double var(--press); padding: 10px 14px 40px; }
  /* on a phone the schedule sits under the drawing, so the tab is on the drawing's bottom edge */
  .bp-side-toggle { top: auto; right: auto; bottom: 0; left: 50%; translate: -50% 0; width: 76px; height: 24px; border: 1px solid var(--rule); border-bottom: 0; box-shadow: 0 -3px 12px var(--shadow); }
  .bp-side-toggle svg { rotate: 90deg; }
  .bp.side-closed .bp-side-toggle svg { rotate: -90deg; }
  .bp-info { right: 8px; bottom: 54px; width: calc(100% - 16px); padding: 6px 10px 7px; gap: 1px; font-size: 0.8rem; line-height: 1.3; }
  .bp-info-h b { font-size: 0.98rem; }
  .bp-info-more { margin-top: 2px; font-size: 0.9rem; }
  .bp-e-facts > div { grid-template-columns: 5.2rem minmax(0, 1fr); gap: 8px; }
  .bp-zoom { right: 8px; bottom: 8px; }
  .bp-iso-tools { left: 8px; top: 8px; }
  .bp-doc { padding: 18px 14px 50px; }
  .bp table.bp-t { font-size: 0.88rem; }
  .bp table.bp-t .c { width: 2.8rem; }
}
