/* figzoom.css — the zoom-and-pan viewer for question figures (figzoom.js).
   Exam-screen styling: always the white Bluebook look, in dark mode too. */

[hidden] {
  display: none !important;
}

.fz-fig {
  position: relative;
}

.fz-fig img {
  cursor: zoom-in;
}

/* The corner magnifier. 28px on screen; on a touch screen the hit area
   grows to 44px without moving it. */
.fz-btn {
  position: absolute;
  z-index: 2;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1e1e1e;
  border-radius: 50%;
  background: #ffffff;
  color: #1e1e1e;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.fz-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.fz-btn:focus-visible,
.fz-b:focus-visible {
  outline: 2px solid #1e3a8a;
  outline-offset: 2px;
}

@media (hover: hover) {
  .fz-btn:hover {
    background: #fffbea;
  }
  .fz-b:hover {
    background: #eef1fb;
  }
}

@media (pointer: coarse) {
  .fz-btn::before {
    content: "";
    position: absolute;
    inset: -8px;
  }
}

@media print {
  .fz-btn {
    display: none !important;
  }
}

/* --- the viewer ----------------------------------------------------------- */

html.fz-open,
html.fz-open body {
  overflow: hidden;
}

.fz {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #1e1e1e;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

.fz-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #c8c8c8;
  background: #f6f7fb;
}

.fz-title {
  font-size: 16px;
  font-weight: 600;
  min-width: 70px;
}

.fz-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fz-b {
  min-width: 40px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #1e1e1e;
  border-radius: 18px;
  background: #ffffff;
  color: #1e1e1e;
  font: 600 18px/1 "Inter", system-ui, sans-serif;
  cursor: pointer;
}

.fz-wide {
  font-size: 14px;
  padding: 0 16px;
}

.fz-close {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #ffffff;
}

@media (hover: hover) {
  .fz-close:hover {
    background: #16306f;
  }
}

.fz-pct {
  min-width: 52px;
  text-align: center;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.fz-stage {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
}

.fz-stage.is-zoomed {
  cursor: grab;
}

.fz-stage.is-zoomed.is-grab {
  cursor: grabbing;
}

.fz-img {
  position: absolute;
  max-width: none;
  transform-origin: 50% 50%;
  -webkit-user-drag: none;
  pointer-events: none;
}

@media (max-width: 560px) {
  .fz-title {
    display: none;
  }
  .fz-bar {
    padding: 8px 10px;
  }
}
