/* Post-scoped styles for post-13-s2z-fisher-geometry */
div.sourceCode[data-lang="lean"] pre,
code.sourceCode.lean {
  background-color: #f0f2f5;
}

div.sourceCode[data-lang="lean"] {
  background-color: #f0f2f5;
  border-left: 3px solid #0d7d6c;
}

mjx-container[jax="CHTML"][display="true"] {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0;
}

/* Interactive figure panels styled directly after R/theme_blog.R */
.s2z-fig {
  background-color: #f0f2f5;
  padding: 15px 18px 14px 18px;
  margin: 0.35rem 0 0.45rem 0;
  color: #24292e;
}

.s2z-fig-head {
  margin-bottom: 10px;
}

.s2z-fig-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #24292e;
  line-height: 1.25;
  margin: 0 0 4px 0;
  text-align: left;
}

.s2z-fig-subtitle {
  font-size: 0.94rem;
  color: #6a737d;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

.s2z-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  align-items: flex-end;
  padding: 8px 0 11px 0;
  margin-bottom: 10px;
  border-top: 1px solid #e1e4e8;
  border-bottom: 1px solid #e1e4e8;
}

.s2z-ctrl {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 140px;
  flex: 1 1 155px;
}

.s2z-ctrl-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: #24292e;
}

.s2z-ctrl-val {
  font-weight: 700;
  color: #0d7d6c;
  font-variant-numeric: tabular-nums;
}

.s2z-fig input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #d1d5da;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.s2z-fig input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #0d7d6c;
  border: 1.5px solid #fafbfc;
  cursor: pointer;
}

.s2z-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.s2z-btn-group-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #24292e;
  margin-right: 4px;
}

.s2z-btn {
  border: 1px solid #d1d5da;
  background: #fafbfc;
  color: #24292e;
  font-size: 0.8rem;
  font-weight: 400;
  padding: 2px 9px;
  border-radius: 3px;
  cursor: pointer;
  line-height: 1.45;
}

.s2z-btn:hover {
  border-color: #0d7d6c;
  color: #0d7d6c;
}

.s2z-btn.active {
  background: #0d7d6c;
  border-color: #0d7d6c;
  color: #ffffff;
  font-weight: 700;
}

.s2z-facets-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.s2z-facets-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 820px) {
  .s2z-facets-2,
  .s2z-facets-3 {
    grid-template-columns: 1fr;
  }
}

.s2z-facet {
  display: flex;
  flex-direction: column;
}

.s2z-strip {
  background-color: #e1e4e8;
  color: #24292e;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  padding: 5px 8px;
  line-height: 1.3;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
}

.s2z-strip-sub {
  font-weight: 400;
  font-size: 0.82rem;
  color: #586069;
  font-variant-numeric: tabular-nums;
}

canvas.s2z-canvas {
  width: 100%;
  display: block;
  background-color: #f0f2f5;
  cursor: crosshair;
}

.s2z-footer-bar {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #e1e4e8;
  font-size: 0.85rem;
  color: #6a737d;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  justify-content: space-between;
  font-variant-numeric: tabular-nums;
}

.s2z-footer-bar strong {
  color: #24292e;
}
