/* House Rules viewer — 80% × 90%, iframe body, 15px bottom tabs */

body.askrue-include-panel-open {
  overflow: hidden;
}

.askrue-include-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.askrue-include-panel:not([hidden]) {
  pointer-events: auto;
}

.askrue-include-panel[hidden] {
  display: none !important;
}

.askrue-include-panel__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 8, 0.72);
}

.askrue-include-panel__box {
  position: relative;
  z-index: 1;
  width: 80%;
  height: 90%;
  max-width: none;
  display: flex;
  flex-direction: column;
  background: rgba(10, 14, 12, 0.97);
  border: 1px solid rgba(200, 150, 42, 0.4);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  color: #f6f4ec;
}

.askrue-include-panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(200, 150, 42, 0.28);
  flex: 0 0 auto;
}

.askrue-include-panel__head h2 {
  margin: 0;
  flex: 1 1 auto;
  font-family: Cinzel, Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #c8962a;
}

.askrue-include-panel__open-page {
  flex: 0 0 auto;
  color: #29c4c0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.askrue-include-panel__open-page:hover {
  color: #e9c25a;
}

.askrue-include-panel__x {
  border: 0;
  background: transparent;
  color: rgba(230, 220, 200, 0.85);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.askrue-include-panel__x:hover {
  color: #e9c25a;
}

.askrue-include-panel__frame-wrap {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  background: #0b0b0f;
}

.askrue-include-panel__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b0b0f;
}

/* Bottom tabs — 15px tall, side by side */
.askrue-include-panel__tabs {
  flex: 0 0 15px;
  height: 15px;
  min-height: 15px;
  max-height: 15px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: stretch;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-top: 1px solid rgba(200, 150, 42, 0.35);
  background: rgba(6, 8, 10, 0.96);
  overflow: hidden;
}

.askrue-include-panel__tab {
  flex: 1 1 0;
  height: 15px;
  min-height: 15px;
  max-height: 15px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-right: 1px solid rgba(200, 150, 42, 0.28);
  border-radius: 0;
  background: transparent;
  color: rgba(230, 220, 200, 0.82);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.askrue-include-panel__tab:last-child {
  border-right: 0;
}

.askrue-include-panel__tab:hover {
  background: rgba(200, 150, 42, 0.12);
  color: #e9c25a;
}

.askrue-include-panel__tab.is-active {
  background: rgba(200, 150, 42, 0.28);
  color: #ffe6a0;
}

@media (max-width: 700px) {
  .askrue-include-panel__box {
    width: 94%;
    height: 92%;
  }
  .askrue-include-panel__tab {
    font-size: 0.5rem;
    letter-spacing: 0.02em;
    padding: 0 2px;
  }
}
