/* Plaza de la Luna — Monitor de Sargazo 3D (pdl-sargazo3d) */
.pdlsw-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 18px;
  font-family: inherit; color: #f3eee3; }
.pdlsw-wrap > * { min-width: 0; } /* grid items must never out-size the container */
.pdlsw-stage { position: relative; height: 540px; min-height: 380px; border-radius: var(--radius);
  overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #11454a 0%, #0a2f34 62%, #072227 100%);
  box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.pdlsw-gl, .pdlsw-gl canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pdlsw-gl canvas { cursor: grab; }
.pdlsw-gl canvas:active { cursor: grabbing; }
.pdlsw-labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pdlsw-chip { position: absolute; left: 0; top: 0; padding: 3px 9px; border-radius: 999px;
  background: rgba(7, 30, 33, .78); border: 1px solid rgba(243, 238, 227, .28);
  font-size: 11.5px; letter-spacing: .02em; white-space: nowrap; color: #f3eee3; will-change: transform; }
.pdlsw-chip.is-plaza { border-color: #c6a15b; color: #ecd9a8; font-weight: 600; }
.pdlsw-legend { position: absolute; top: 14px; left: 14px; max-width: 250px; padding: 12px 14px;
  border-radius: var(--r-md); background: rgba(7, 30, 33, .82); backdrop-filter: blur(6px);
  border: 1px solid rgba(243, 238, 227, .14); }
.pdlsw-legend h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #c6a15b; }
.pdlsw-leg-row { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: var(--r-sm); font-size: 13px; }
.pdlsw-leg-row i { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.pdlsw-leg-row b { margin-left: auto; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #0a2f34;
  background: #c6a15b; padding: 2px 7px; border-radius: 999px; }
.pdlsw-leg-row.is-current { background: rgba(255,255,255,.09); outline: 1px solid rgba(198,161,91,.55); }
.pdlsw-leg-meta { margin: 9px 0 0; font-size: 11px; line-height: 1.45; color: rgba(243,238,227,.75); }
.pdlsw-hint { position: absolute; left: 14px; bottom: 12px; font-size: 11px; color: rgba(243,238,227,.65);
  background: rgba(7,30,33,.55); padding: 4px 9px; border-radius: 999px; }
.pdlsw-attr { position: absolute; right: 14px; bottom: 12px; font-size: 10.5px; color: rgba(243,238,227,.6);
  background: rgba(7,30,33,.55); padding: 4px 9px; border-radius: 999px; text-align: right; }
.pdlsw-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; letter-spacing: .06em; color: rgba(243,238,227,.8); pointer-events: none; }
.pdlsw-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; padding: 18px; }
.pdlsw-fallback[hidden] { display: none; }
.pdlsw-fallback img { max-width: 100%; max-height: 78%; border-radius: var(--r-sm); }
.pdlsw-fallback p { margin: 0; font-size: 11.5px; color: rgba(243,238,227,.75); }

.pdlsw-panel { background: linear-gradient(180deg, #0d3a3e, #0a2f34); border: 1px solid rgba(198,161,91,.25);
  border-radius: var(--radius); padding: 20px 20px 16px; overflow: auto; max-height: 540px; min-width: 0; }
.pdlsw-panel h3 { margin: 0 0 2px; font-size: 20px; color: #f3eee3; }
.pdlsw-sector { margin: 0 0 14px; font-size: 12.5px; color: #c6a15b; letter-spacing: .03em; }
.pdlsw-level { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.05);
  border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 12px; }
.pdlsw-level i { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 14px rgba(0,0,0,.35), 0 0 0 3px rgba(255,255,255,.14); }
.pdlsw-level-lab { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(243,238,227,.65); }
.pdlsw-level strong { display: block; font-size: 24px; line-height: 1.15; }
.pdlsw-sircat { display: block; font-size: 11.5px; color: rgba(243,238,227,.7); }
.pdlsw-guide { font-size: 14.5px; line-height: 1.5; margin: 0 0 10px; }
.pdlsw-guide b, .pdlsw-also b, .pdlsw-method b { color: #ecd9a8; }
.pdlsw-also, .pdlsw-note, .pdlsw-sum, .pdlsw-method { font-size: 13px; line-height: 1.55; color: rgba(243,238,227,.88); margin: 0 0 10px; }
.pdlsw-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: 13px; }
.pdlsw-dl dt { color: #c6a15b; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.pdlsw-dl dd { margin: 0; }
.pdlsw-fig { margin: 0 0 12px; }
.pdlsw-fig img { width: 100%; border-radius: var(--r-sm); display: block; }
.pdlsw-fig figcaption { font-size: 11px; color: rgba(243,238,227,.65); margin-top: 6px; line-height: 1.45; }
.pdlsw-disc { font-size: 11.5px; line-height: 1.55; color: rgba(243,238,227,.62); border-top: 1px solid rgba(243,238,227,.12); padding-top: 10px; margin: 0 0 10px; }
.pdlsw-src { font-size: 12px; line-height: 1.6; color: rgba(243,238,227,.75); margin: 0; }
.pdlsw-src a { color: #ecd9a8; }
.pdlsw-fail { font-size: 13.5px; line-height: 1.55; color: #f0b429; }

.pdlsw-history { grid-column: 1 / -1; min-width: 0; overflow: hidden; }
.pdlsw-history h4 { margin: 2px 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #c6a15b; }
.pdlsw-hist-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.pdlsw-hitem { flex: 0 0 228px; background: rgba(13,58,62,.75); border: 1px solid rgba(243,238,227,.12);
  border-radius: var(--r-md); padding: 12px 14px; }
.pdlsw-hitem strong { display: block; font-size: 13px; color: #ecd9a8; margin-bottom: 4px; }
.pdlsw-hitem p { margin: 0 0 6px; font-size: 12.5px; line-height: 1.5; color: rgba(243,238,227,.88); }
.pdlsw-hitem span { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(243,238,227,.55); }

@media (max-width: 900px) {
  .pdlsw-wrap { grid-template-columns: 1fr; }
  .pdlsw-stage { height: 56vh; min-height: 340px; }
  .pdlsw-panel { max-height: none; }
  .pdlsw-legend { max-width: 205px; padding: 10px 12px; }
  .pdlsw-leg-row { font-size: 12px; }
  .pdlsw-attr { display: none; }
}
/* same stacking when the module's own container is narrow (embedded columns) */
.pdlsw-wrap.pdlsw-narrow { grid-template-columns: 1fr; }
.pdlsw-wrap.pdlsw-narrow .pdlsw-stage { height: 56vh; min-height: 340px; }
.pdlsw-wrap.pdlsw-narrow .pdlsw-panel { max-height: none; }
.pdlsw-wrap.pdlsw-narrow .pdlsw-legend { max-width: 205px; padding: 10px 12px; }
.pdlsw-wrap.pdlsw-narrow .pdlsw-leg-row { font-size: 12px; }
.pdlsw-wrap.pdlsw-narrow .pdlsw-attr { display: none; }
@media (prefers-reduced-motion: reduce) {
  .pdlsw-hitem, .pdlsw-chip { transition: none !important; }
}
