/* Warm paper / charcoal / bronze. Scoped to the local building explorer. */
#om-unified .pbz-story { padding: 50px 6% 34px; max-width: 1540px; margin: auto; scroll-margin-top: 104px; outline: none; }
#om-unified .pbz-heading { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
#om-unified .pbz-marker { margin: 0 0 14px; text-transform: uppercase; letter-spacing: 1.8px; font-size: 10px; font-weight: 600; color: var(--bronze); }
#om-unified .pbz-name { font-family: Georgia, serif; font-size: clamp(32px,3.3vw,48px); line-height: 1.12; letter-spacing: -1.2px; font-weight: 400; margin: 0 0 14px; }
#om-unified .pbz-lead { color: var(--muted); font-size: clamp(15px,1.25vw,18px); line-height: 1.6; margin: 0; }
#om-unified .pbz-layout { display: grid; grid-template-columns: 1fr 1.04fr; gap: clamp(36px,7vw,106px); padding: 34px 0 28px; }
#om-unified .pbz-label { font: 600 12px/1.5 'DM Sans',Arial,sans-serif; letter-spacing: .3px; margin: 0 0 14px; color: var(--ink); }
#om-unified .pbz-explanation p { font-size: 14px; line-height: 1.85; color: var(--muted); margin: 0; max-width: 540px; }
#om-unified .pbz-reason { margin-top: 30px; }
#om-unified p.pbz-takeaway { color: var(--ink); font-family: Georgia,serif; font-size: 22px; line-height: 1.45; border-left: 2px solid var(--bronze); padding-left: 22px; margin-top: 32px; }
#om-unified .pbz-checks { list-style: none; padding: 0; margin: 0; counter-reset: inspection; }
#om-unified .pbz-checks li { position: relative; counter-increment: inspection; padding: 14px 0 14px 37px; border-bottom: 1px solid var(--line); }
#om-unified .pbz-checks li:first-child { padding-top: 0; }
#om-unified .pbz-checks li::before { content: counter(inspection,decimal-leading-zero); position: absolute; left: 0; top: 16px; font-size: 10px; color: var(--bronze); font-variant-numeric: tabular-nums; }
#om-unified .pbz-checks li:first-child::before { top: 2px; }
#om-unified .pbz-checks h4 { font-size: 13px; font-weight: 600; line-height: 1.5; margin: 0 0 4px; }
#om-unified .pbz-checks p { font-size: 12px; line-height: 1.75; margin: 0; color: var(--muted); }
#om-unified .pbz-context { border-top: 1px solid var(--line); font-size: 12px; line-height: 1.8; color: var(--muted); }
#om-unified .pbz-context summary { cursor: pointer; min-height: 52px; display: flex; gap: 14px; align-items: center; color: var(--ink); list-style: none; }
#om-unified .pbz-context summary::-webkit-details-marker { display: none; }
#om-unified .pbz-context summary::before { content: '+'; font-size: 20px; color: var(--bronze); width: 14px; }
#om-unified .pbz-context[open] summary::before { content: '−'; }
#om-unified .pbz-context summary:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
#om-unified .pbz-context-body { max-width: 820px; padding: 0 0 16px 28px; }
#om-unified .pbz-context-body p { margin: 0 0 12px; }
#om-unified .pbz-sources { list-style: none; padding: 0; margin: 12px 0 0; }
#om-unified .pbz-sources a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bronze); text-decoration: underline; text-underline-offset: 4px; }
@media(max-width:740px) {
 #om-unified .pbz-story { padding: 30px 5% 18px; scroll-margin-top: 84px; }
 #om-unified .pbz-heading { padding-bottom: 24px; }
 #om-unified .pbz-name { font-size: 32px; letter-spacing: -.8px; }
 #om-unified .pbz-marker { font-size: 9px; letter-spacing: 1.2px; }
 #om-unified .pbz-layout { grid-template-columns: 1fr; gap: 30px; padding-top: 24px; }
 #om-unified .pbz-explanation p { font-size: 13px; }
 #om-unified .pbz-reason { margin-top: 24px; }
 #om-unified p.pbz-takeaway { font-size: 20px; margin-top: 25px; padding-left: 16px; }
 #om-unified .pbz-inspection { padding-top: 26px; border-top: 1px solid var(--line); }
 #om-unified .pbz-checks li { padding-top: 16px; padding-bottom: 16px; }
}
@media(prefers-reduced-motion:reduce) { :root { scroll-behavior: auto; } }
#om-unified .ou-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 8px 4%; min-height: 61px; background: #faf8f4; border-bottom: 1px solid var(--line); }
#om-unified .ou-breadcrumb { min-height: 0; padding: 0; gap: 8px; }
#om-unified .ou-breadcrumb button { min-height: 44px; padding: 6px 0; }
#om-unified .ou-breadcrumb button:hover:enabled { text-decoration: underline; text-underline-offset: 3px; }
#om-unified .ou-scene-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#om-unified .ou-action {
 display: inline-flex; align-items: center; justify-content: center; gap: 9px;
 min-height: 44px; border: 1px solid var(--line); border-radius: 4px; padding: 8px 14px;
 color: var(--ink); background: var(--paper); font-size: 12px; font-weight: 600; white-space: nowrap;
}
#om-unified .ou-action:hover { background: #ebe4da; }
#om-unified .ou-enter { color: #fffdf8; background: var(--ink); border-color: var(--ink); }
#om-unified .ou-enter:hover { background: #42403c; }
#om-unified .ou-read-label { min-width: 106px; }
#om-unified[data-view="exterior"]:not([aria-busy="true"]) .ou-exterior { cursor: zoom-in; }
#om-unified .ou-interior { transform-origin: center; }
#om-unified .ou-stage { aspect-ratio: var(--ou-stage-aspect, 16 / 9); }
#om-unified .ou-stage :is(.ou-still, .ou-walkthrough) { object-position: var(--ou-stage-focus, 50%) var(--ou-stage-vertical, 50%); }
#om-unified .ou-callout-toggle[aria-pressed="true"] { color: #fffdf8; background: var(--ink); border-color: var(--ink); }
#om-unified .ou-callouts { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
#om-unified .ou-callout-line {
 position: absolute; top: var(--part-y); left: var(--part-x); width: var(--part-line);
 height: 1px; transform-origin: left; transform: rotate(var(--part-angle));
 background: #ffedd7; box-shadow: 0 1px 3px #241a14bc;
}
#om-unified .ou-callout-line::before {
 content: ''; position: absolute; top: 50%; left: 0; width: 6px; height: 6px; box-sizing: border-box;
 transform: translate(-50%, -50%); border: 1px solid #ffedd7; border-radius: 50%;
 box-shadow: 0 0 3px #241a14bc;
}
#om-unified .ou-callout button {
 position: absolute; top: var(--part-button-y); left: var(--part-button-x); transform: translateY(-50%);
 min-height: 44px; padding: 7px 12px; color: #fffdf8; background: #262320f2;
 border: 1px solid #f1dfc8b3; border-radius: 4px; font-size: 12px; font-weight: 600;
 white-space: nowrap; pointer-events: auto; cursor: pointer;
}
#om-unified .ou-callout button:hover { background: #41352c; }
#om-unified .ou-callout button[aria-pressed="true"] { background: #f2e9db; color: #29231e; }
#om-unified .ou-callout button:focus-visible { outline: 2px solid #fff3e4; outline-offset: 3px; }
#om-unified .ou-viewport { position: relative; }
#om-unified .ou-callout-note {
 position: absolute; inset: auto clamp(8px,4%,44px) clamp(8px,3.5%,28px) auto;
 z-index: 4; width: min(21rem, calc(100% - 16px)); margin: 0; color: #2d2823;
 pointer-events: none;
}
#om-unified .ou-callout-note:not(.is-visible) { height: 0; overflow: hidden; }
#om-unified .ou-callout-note.is-visible {
 padding: 12px 15px; background: #f8f3eb; border: 1px solid #d1bcaa;
 border-left: 2px solid #896448; border-radius: 4px; box-shadow: 0 6px 22px #221b1433;
}
#om-unified .ou-callout-note strong { display: block; font-size: 13px; line-height: 1.35; }
#om-unified .ou-callout-note span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.5; }
#om-unified .ou-part-ring {
 position: absolute; top: var(--part-y); left: var(--part-x); transform: translate(-50%, -50%);
 z-index: 3; width: 14px; height: 14px; border: 2px solid #fff4df; border-radius: 50%;
 box-shadow: 0 0 0 1px #31251c; pointer-events: none;
}
@media (max-width: 1024px) {
 #om-unified:is([data-view="door"], [data-view="hydrant"]) .ou-callout-note {
  position: relative; inset: auto; width: auto;
 }
 #om-unified:is([data-view="door"], [data-view="hydrant"]) .ou-callout-note.is-visible {
  border: 0; border-left: 2px solid #896448; border-radius: 0; box-shadow: none;
 }
}
#om-unified[aria-busy="true"] { overflow-anchor: none; }
#om-unified .ou-media-status { position: absolute; left: 4%; top: 12px; z-index: 4; max-width: 72%; margin: 0; padding: 8px 12px; border-radius: 4px; background: #242729ee; color: #fffdf8; font-size: 12px; pointer-events: none; }
#om-unified .ou-walkthrough.is-playing { transition: opacity 180ms ease-out; }
#om-unified[aria-busy="true"] .pbz-story { visibility: hidden; }
#om-unified .ou-pin { left: clamp(24px, var(--pin-x), calc(100% - 24px)); top: clamp(24px, calc(100% * var(--pin-y)), calc(100% - 24px)); }
#om-unified .ou-pin[data-destination="door"] { --pin-x: 41.14%; --pin-y: .58472; }
#om-unified .ou-pin[data-destination="hydrant"] { --pin-x: 59.35%; --pin-y: .474; }
#om-unified .ou-pin[data-destination="extinguisher"] { --pin-x: 65.83%; --pin-y: .485; }
@supports (width: 1cqw) {
 @media (min-width: 900px) {
  #om-unified .ou-stage {
   --ou-vertical-anchor: .55;
   --ou-stage-vertical: calc(var(--ou-vertical-anchor) * 100%);
   max-height: max(var(--ou-stage-height-floor, 40vw), calc(100svh - 228px));
   container-type: inline-size;
  }
  /* Reproject each point against the same 16:9 frame used by the photo and video. */
  #om-unified .ou-pin {
   top: clamp(24px, calc(var(--ou-stage-vertical) + (var(--pin-y) - var(--ou-vertical-anchor)) * 56.25cqw), calc(100% - 24px));
  }
 }
}
@media (max-width: 620px) {
 #om-unified .ou-toolbar { display: grid; gap: 2px; padding: 3px 5% 8px; }
 #om-unified .ou-scene-actions { gap: 6px; }
 #om-unified .ou-action { padding: 7px 9px; font-size: 11px; gap: 6px; }
 #om-unified .ou-read-label { min-width: 91px; }
 #om-unified:not([data-view="exterior"]) .ou-devices strong { font-size: 12px; font-weight: 600; line-height: 1.3; }
}
@media (width < 900px), (max-height: 600px) and (pointer: coarse) {
 #om-unified .ou-pins { pointer-events: none; }
 #om-unified .ou-pin {
  width: 48px; height: 48px; border: 0; border-radius: 8px; box-shadow: none; background: none;
  pointer-events: auto;
 }
 #om-unified .ou-pin:hover { background: none; }
 #om-unified .ou-pin span {
  display: grid; place-items: center; position: relative; z-index: 1; width: 26px; height: 26px;
  border: 1px solid #fff4df; border-radius: 50%; color: #fffdf8; background: #272624;
  box-shadow: 0 1px 5px #231b1670; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
 }
 #om-unified .ou-pin::after {
  content: ''; position: absolute; top: calc(50% + 12px); left: calc(50% - .5px);
  width: 1px; height: max(4px, calc(var(--pin-reach) - 12px)); background: #fff4df;
  box-shadow: 0 0 2px #251a12; pointer-events: none;
 }
 #om-unified .ou-pin:hover span, #om-unified .ou-pin:focus-visible span { background: #78523a; }
 #om-unified .ou-pin:focus-visible { outline: 2px solid #fff4df; outline-offset: -3px; }
 #om-unified .ou-pin[data-destination="door"] { --pin-x: 39.8%; --pin-y: .21; --pin-reach: 5.85vw; }
 #om-unified .ou-pin[data-destination="hydrant"] { --pin-x: 58.35%; --pin-y: .40; --pin-reach: 6.95vw; }
 #om-unified .ou-pin[data-destination="extinguisher"] { --pin-x: 65.36%; --pin-y: .76; --pin-reach: 7vw; }
 #om-unified .ou-pin[data-destination="extinguisher"]::after { top: auto; bottom: calc(50% + 12px); }
}
@media (max-width: 760px), (max-height: 600px) and (pointer: coarse) {
 #om-unified .ou-callouts {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px; padding: 10px 5% 8px; pointer-events: auto;
 }
 #om-unified .ou-callout { display: grid; min-width: 0; }
 #om-unified .ou-callout-line { display: none; }
 #om-unified .ou-callout button {
  position: static; transform: none; width: 100%; min-height: 48px; padding: 7px 4px;
  border: 1px solid #c9b6a6; background: #fcfaf6; color: var(--ink);
  font-size: 13px; font-weight: 600; line-height: 1.25; white-space: normal; overflow-wrap: anywhere;
 }
 #om-unified .ou-callout button:hover { background: #efe6dc; }
 #om-unified .ou-callout button[aria-pressed="true"] { color: #fffdf8; background: #523b2e; border-color: #523b2e; }
 #om-unified .ou-callout button:focus-visible { outline: 2px solid #80563d; outline-offset: 2px; }
 #om-unified .ou-viewport .ou-callout-note { position: relative; inset: auto; width: auto; }
 #om-unified .ou-viewport .ou-callout-note.is-visible {
  margin: 0 5% 12px; padding: 10px 13px; border: 0; border-left: 2px solid #896448;
  border-radius: 0 4px 4px 0; box-shadow: none;
 }
 #om-unified .ou-callout-note strong {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
 }
 #om-unified .ou-callout-note span { margin: 0; font-size: 13px; }
}
@media (max-width: 360px) {
 #om-unified[data-view="extinguisher"] .ou-scene-actions { gap: 4px; }
 #om-unified[data-view="extinguisher"] .ou-action { padding-inline: 5px; }
 #om-unified .ou-read-label { min-width: 82px; }
}
