/* A few genuine workbook pages, with a shared accessible reader. */
.ei-site .ei-excerpt {
  min-width: 0;
  margin-top: auto;
  margin-bottom: 20px;
  padding-top: 17px;
  border-top: 1px solid #e5ddcd;
}
.ei-site .ei-excerpt + .ei-workbook-actions { margin-top: 0; }
.ei-site .ei-excerpt-label {
  margin: 0 0 14px;
  color: #385f5d;
  font: 600 11px/1.6 var(--ei-sans, Manrope, sans-serif);
  letter-spacing: .045em;
}
.ei-site .ei-excerpt-pages {
  --ei-page-size: min(78%, 280px);
  --ei-page-gap: 16px;
  display: flex;
  align-items: flex-start;
  gap: var(--ei-page-gap);
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 22px 0 15px;
  border-radius: 12px;
  background: radial-gradient(ellipse at 16% 12%, #dae9e183, transparent 68%), radial-gradient(ellipse at 92% 86%, #dfd7e64d, transparent 62%), #f4f1e9;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.ei-site .ei-excerpt-pages::-webkit-scrollbar { display: none; }
.ei-site .ei-excerpt-pages::before,
.ei-site .ei-excerpt-pages::after {
  content: "";
  flex: 0 0 max(0px, calc((100% - var(--ei-page-size)) / 2 - var(--ei-page-gap)));
}
.ei-site .ei-excerpt-page {
  flex: 0 0 var(--ei-page-size);
  min-width: 0;
  margin: 0;
  scroll-snap-align: center;
  scroll-margin: 0;
}
.ei-site .ei-excerpt-open {
  display: block;
  position: relative;
  width: 100%;
  border: 1px solid #ffffffb3;
  border-radius: 3px;
  background: white;
  box-shadow: 0 7px 18px #344b4420, 0 1px 3px #344b4410;
  color: #174e53;
  text-decoration: none;
  cursor: zoom-in;
  transition: box-shadow .2s;
  scroll-margin: 0;
}
.ei-site .ei-excerpt-open:hover { box-shadow: 0 9px 22px #344b4433, 0 1px 3px #344b4420; }
.ei-site .ei-excerpt-open img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 1553;
  border-radius: 2px;
  object-fit: contain;
}
.ei-site .ei-excerpt-enlarge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid #d8dfd5;
  border-radius: 30px;
  background: #fffdf6f5;
  box-shadow: 0 2px 8px #244a4410;
  color: #285953;
  font: 600 10px/1.5 var(--ei-sans, Manrope, sans-serif);
}
.ei-site .ei-excerpt-enlarge svg { width: 13px; height: 13px; }
.ei-site .ei-excerpt-page figcaption {
  min-height: 34px;
  margin: 12px 0 0;
  color: #4a635e;
  font: 400 11px/1.55 var(--ei-sans, Manrope, sans-serif);
  text-align: center;
  text-wrap: balance;
}
.ei-site .ei-excerpt-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}
.ei-site .ei-excerpt-arrow,
.ei-site .ei-excerpt-dialog .ei-excerpt-arrow,
.ei-site .ei-excerpt-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #bacbc1;
  border-radius: 50%;
  background: #fffcf7;
  color: #174e53;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.ei-site .ei-excerpt-arrow svg,
.ei-site .ei-excerpt-dialog-close svg { width: 19px; height: 19px; }
.ei-site .ei-excerpt-arrow:hover:not(:disabled),
.ei-site .ei-excerpt-dialog-close:hover { background: #e7eee6; border-color: #7a9d93; }
.ei-site .ei-excerpt-arrow:disabled {
  opacity: .35;
  cursor: default;
}
.ei-site .ei-excerpt-count {
  min-width: 98px;
  color: #536b62;
  font: 500 11px/1.5 var(--ei-sans, Manrope, sans-serif);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ei-site .ei-excerpt-hint {
  margin: 7px 0 0;
  color: #6d7b72;
  font: 400 10px/1.6 var(--ei-sans, Manrope, sans-serif);
  text-align: center;
}
.ei-site .ei-excerpt :is(a, button, [tabindex]):focus-visible,
.ei-site .ei-excerpt-dialog :is(button, [tabindex]):focus-visible {
  outline: 2px solid #174e53;
  outline-offset: 4px;
}

.ei-site .ei-excerpt-dialog {
  width: calc(100% - 32px);
  max-width: 1120px;
  height: 94vh;
  height: 94dvh;
  max-height: 1100px;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d6d7c8;
  border-radius: 16px;
  background: #faf8f3;
  color: #174e53;
  box-shadow: 0 20px 100px #102c3766;
}
.ei-site .ei-excerpt-dialog[open] { display: flex; flex-direction: column; }
.ei-site .ei-excerpt-dialog:not([open]) { display: none; }
.ei-site .ei-excerpt-dialog::backdrop { background: #17373de0; backdrop-filter: blur(4px); }
.ei-site .ei-excerpt-dialog * { scroll-margin: 0; }
.ei-site .ei-excerpt-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 18px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid #deddd2;
}
.ei-site .ei-excerpt-dialog-heading { min-width: 0; }
.ei-site .ei-excerpt-dialog-eyebrow {
  margin: 0 0 4px;
  color: #897247;
  font: 600 9px/1.5 var(--ei-sans, Manrope, sans-serif);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ei-site .ei-excerpt-dialog h2 {
  margin: 0 0 5px;
  color: #174e53;
  font: 400 28px/1.08 var(--ei-serif, Georgia, serif);
}
.ei-site .ei-excerpt-dialog-caption {
  margin: 0;
  color: #5c7168;
  font: 400 11px/1.5 var(--ei-sans, Manrope, sans-serif);
}
.ei-site .ei-excerpt-reader {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
  background: radial-gradient(ellipse at 12% 0, #e3ebe2, transparent 65%), #eeece4;
}
.ei-site .ei-excerpt-reader-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  padding: 20px;
}
.ei-site .ei-excerpt-reader-image {
  display: block;
  flex: none;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 2px;
  box-shadow: 0 4px 20px #193d3924;
  object-fit: contain;
  background: white;
}
.ei-site .ei-excerpt-reader.is-zoomed { touch-action: pan-x pan-y pinch-zoom; }
.ei-site .ei-excerpt-reader.is-zoomed .ei-excerpt-reader-canvas { width: max-content; height: max-content; }
.ei-site .ei-excerpt-reader.is-zoomed .ei-excerpt-reader-image { width: 1200px; min-width: 1200px; height: auto; max-width: none; max-height: none; }
.ei-site .ei-excerpt-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 14px;
  padding: 12px 22px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid #deddd2;
  background: #faf8f3;
}
.ei-site .ei-excerpt-dialog-nav { display: flex; align-items: center; gap: 12px; }
.ei-site .ei-excerpt-dialog-count {
  min-width: 68px;
  color: #536b62;
  font: 500 12px/1.5 var(--ei-sans, Manrope, sans-serif);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.ei-site .ei-excerpt-dialog-zoom {
  min-width: 86px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #b49b69;
  border-radius: 24px;
  background: #f1e8d5;
  color: #48523d;
  font: 600 11px/1.5 var(--ei-sans, Manrope, sans-serif);
  cursor: pointer;
}
.ei-site .ei-excerpt-dialog-zoom:hover { background: #e8dcc2; }
@media (max-width: 599px) {
  .ei-site .ei-excerpt { padding-top: 15px; }
  .ei-site .ei-excerpt-pages { --ei-page-size: min(80%, 280px); padding-top: 18px; }
  .ei-site .ei-excerpt-dialog { width: calc(100% - 16px); height: 94vh; height: 94dvh; max-height: none; border-radius: 12px; }
  .ei-site .ei-excerpt-dialog-header { gap: 10px; padding: 14px 12px 12px; }
  .ei-site .ei-excerpt-dialog h2 { font-size: 24px; }
  .ei-site .ei-excerpt-dialog-caption { font-size: 10px; }
  .ei-site .ei-excerpt-reader-canvas { padding: 12px; }
  .ei-site .ei-excerpt-dialog-footer { gap: 10px; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); }
  .ei-site .ei-excerpt-dialog-nav { gap: 6px; }
  .ei-site .ei-excerpt-dialog-count { min-width: 56px; }
  .ei-site .ei-excerpt-dialog-zoom { min-width: 80px; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ei-site .ei-excerpt *, .ei-site .ei-excerpt-dialog * { scroll-behavior: auto !important; transition: none !important; }
}
