/* The portfolio embed fills its frame; the standalone comparison keeps its layout. */
html.is-embed,
.is-embed body {
  height: 100%;
  overflow: hidden;
}

.is-embed body { display: flex; flex-direction: column; }

.is-embed .review-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  height: 76px;
  flex-shrink: 0;
  padding: 12px 26px;
}

.is-embed .embed-instruction {
  margin: 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ivory);
}

.is-embed .review-actions { justify-self: end; gap: 8px; }
.is-embed .reset-button {
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  color: var(--ivory);
  border-color: #f8f7f240;
}
.is-embed .reset-button:hover { background: #ffffff14; border-color: var(--gold); }
.is-embed .reset-button:focus-visible,
.is-embed .wordmark:focus-visible { outline-color: var(--gold); }
.is-embed .reset-button span:not(.video-icon) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.is-embed .header-rule,
.is-embed .review-label,
.is-embed .visit-link,
.is-embed .review-intro,
.is-embed .source-bar,
.is-embed .review-footer { display: none; }

.is-embed main {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  flex: 1;
}

.is-embed .comparison {
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.is-embed .reveal-stage { height: 100%; min-height: 0; max-height: none; }
.is-embed .preview-status {
  position: absolute;
  z-index: 4;
  bottom: 12px;
  left: 12px;
  right: 12px;
  width: fit-content;
  margin: 0 auto;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--ivory);
}

@media (max-width: 850px) {
  .is-embed .review-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    height: auto;
    padding: 14px 18px;
  }
  .is-embed .wordmark { grid-column: 1; grid-row: 1; }
  .is-embed .review-actions { grid-column: 2; grid-row: 1; }
  .is-embed .embed-instruction { grid-column: 1 / -1; grid-row: 2; font-size: 13px; }
}

@media (max-width: 360px) {
  .is-embed .review-header { padding-inline: 12px; gap: 10px; }
  .is-embed .wordmark > span { font-size: 24px; }
  .is-embed .wordmark small { font-size: 8px; }
  .is-embed .review-actions { gap: 4px; }
}
