.door-study {
  margin: 0;
  padding: clamp(12px, 2.4vw, 32px);
  color: #233a35;
  background: #f7f8f3;
}
.door-study-switch {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto .6rem;
  border: 1px solid #87978b;
  border-radius: 3px;
  overflow: visible;
}
.door-study-switch[hidden] { display: none; }
.door-study-switch button {
  min-height: 42px;
  padding: .5rem .85rem;
  border: 0;
  background: transparent;
  color: #334940;
  font: 600 .9rem/1.2 var(--sans, sans-serif);
  cursor: pointer;
}
.door-study-switch button:first-child { border-radius: 2px 0 0 2px; }
.door-study-switch button:last-child { border-radius: 0 2px 2px 0; }
.door-study-switch button[aria-pressed="true"] { background: #2b433a; color: #fff; }
.door-study-switch button:hover:not([aria-pressed="true"]) { background: #e8ece3; }
.door-study-switch button:focus-visible { position: relative; z-index: 1; }
.door-study-drawing { display: block; width: min(100%, 28rem); height: auto; margin: 0 auto; overflow: visible; }
.door-study-main-dim, .door-study-label { font: 600 21px var(--sans, Arial, sans-serif); }
.door-study-main-dim { fill: #293d35; }
.door-study-label { fill: #993e24; }
.door-study-bracket, .door-study-fine, .door-study-object-dim { fill: none; stroke: #48594f; stroke-width: 1.45; }
.door-study-fine { stroke: #899487; stroke-width: 1; }
.door-study-tick { stroke-width: 1.8; }
.door-study-object-dim { stroke: #9c4225; stroke-width: 1.65; }
.door-study-caption { margin: .55rem auto 0; padding: 1rem 0 0; max-width: 44rem; border-top: 1px solid #bec8bd; }
.door-study .door-study-result { margin: 0; font: 650 clamp(1rem, 1.4vw, 1.14rem)/1.4 var(--sans, sans-serif); color: #293d35; }
.door-study .door-study-note { margin: .32rem 0; color: #43584e; font: 400 .94rem/1.5 var(--sans, sans-serif); }
.door-study .door-study-source { display: inline-block; color: #38564a; font: 500 .81rem/1.4 var(--sans, sans-serif); text-decoration: underline; text-underline-offset: .15em; }
@media print {
  .door-study { break-inside: avoid; }
  .door-study-switch { display: none; }
}
