/* SCRS mascot site guide: the panel that opens above the mascot. Companion to scrs-terry-mascot.css. */
.scrs-terry-guide {
  pointer-events: auto;
  position: absolute; left: 0; bottom: calc(100% + 10px);
  box-sizing: border-box;
  width: 300px;
  max-width: calc(100vw - 2 * var(--scrs-terry-gap) - var(--scrs-terry-safe-l) - var(--scrs-terry-safe-r));
  max-height: calc(100vh - var(--scrs-terry-h) - 2 * var(--scrs-terry-gap) - var(--scrs-terry-safe-b) - var(--scrs-terry-safe-t) - 20px);
  overflow: auto;
  padding: 10px 12px;
  border: 2px solid var(--scrs-terry-green); border-radius: 12px;
  background: #fff; color: #1c2a20;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.scrs-terry-guide[hidden] { display: none; }
.scrs-terry--collapsed .scrs-terry-guide { display: none; }
.scrs-terry-guide__greeting { margin: 0 26px 8px 0; font-weight: 700; }
.scrs-terry-guide__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.scrs-terry-guide__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.scrs-terry-guide__link {
  display: block; width: 100%; height: 100%; min-height: 44px; padding: 6px 10px;
  border: 1px solid var(--scrs-terry-green); border-radius: 8px;
  background: #fff; color: var(--scrs-terry-green);
  font: inherit; font-weight: 600; text-align: left; cursor: pointer;
}
.scrs-terry-guide__link:hover { background: var(--scrs-terry-green); color: #fff; }
.scrs-terry-guide__close {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: #1c2a20;
  font: 700 20px/28px system-ui, sans-serif; cursor: pointer;
}
.scrs-terry-guide__sound {
  margin: 6px 0 0; padding: 4px 0; border: 0; background: none;
  color: #1c2a20; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer;
}
.scrs-terry-guide__link:focus-visible, .scrs-terry-guide__close:focus-visible, .scrs-terry-guide__sound:focus-visible {
  outline: 3px solid var(--scrs-terry-yellow); outline-offset: 2px;
}
@media print { .scrs-terry-guide { display: none; } }
/* short screens: sit beside the mascot instead of above him, so nothing is cut off */
@media (max-height: 560px) {
  .scrs-terry-guide {
    left: calc(100% + 14px); bottom: 0;
    max-width: calc(100vw - var(--scrs-terry-w) - 14px - 2 * var(--scrs-terry-gap) - var(--scrs-terry-safe-l) - var(--scrs-terry-safe-r));
    max-height: calc(100vh - 2 * var(--scrs-terry-gap) - var(--scrs-terry-safe-b) - var(--scrs-terry-safe-t));
  }
}
