/* =============================================================================
 * Info panel — shared (i) button + overlay (docs/NAV-AND-INFO.md §1).
 * Same palette as the information booth (css/style.css #booth-ui) so every
 * app's info panel reads as part of one world. Also reused by feedback/
 * for its card + link styling.
 * ========================================================================== */
.ip-btn {
  position: fixed;
  z-index: 45;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(58, 43, 28, 0.78);
  color: #fff7ec;
  font: 700 18px Georgia, serif;
  cursor: pointer;
  line-height: 40px;
  text-align: center;
  padding: 0;
}
.ip-btn:hover, .ip-btn:focus { background: #2f6b3a; outline: 2px solid #fff7ec; }
.ip-btn.ip-pos-tl { top: 10px; left: 12px; }
.ip-btn.ip-pos-tr { top: 10px; right: 12px; }
.ip-btn.ip-pos-bl { bottom: 10px; left: 12px; }
.ip-btn.ip-pos-br { bottom: 10px; right: 12px; }

#ip-ui {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(30, 20, 10, 0.45);
}
#ip-ui[hidden] { display: none; }
.ip-sheet {
  position: relative;
  width: min(92vw, 520px);
  max-height: 82vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #f9f3e2;
  border: 3px solid #8a5a34;
  border-radius: 14px;
  box-shadow: 0 14px 44px rgba(40, 24, 8, 0.5);
  padding: 22px 24px 24px;
  font-family: system-ui, sans-serif;
  color: #3a2b1c;
}
.ip-sheet h2 { margin: 18px 0 8px; font-size: 17px; color: #5b4a2c; }
.ip-sheet h2:first-of-type { margin-top: 0; }
.ip-sheet p, .ip-sheet li { font-size: 14.5px; line-height: 1.5; }
.ip-sheet ul { margin: 4px 0; padding-left: 20px; }
.ip-fine { font-size: 13px; color: #8a7a5c; font-style: italic; }
.ip-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #8a4a3a;
  color: #fff7ec;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.ip-close:hover, .ip-close:focus { background: #74392c; outline: 2px solid #fff7ec; }
.ip-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.ip-link {
  display: inline-block;
  font: 700 14px system-ui, sans-serif;
  background: #2f6b3a;
  color: #fff7ec;
  border-radius: 999px;
  padding: 9px 16px;
  text-decoration: none;
}
.ip-link:hover, .ip-link:focus { background: #27592f; }
.ip-link.ip-external::after { content: " \2197"; }
