/* Embed-only chrome: Pacing branding, share, and the "Get this embed" disclosure.
   Loaded after compress.css so these rules win without touching shared files. */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.embed-head {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-2);
}

.embed-head__brand {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  border-radius: var(--r-s);
  background: var(--ink);
  line-height: 0;
}

.embed-head__logo {
  display: block;
  width: 90px;
  height: auto;
}

.embed-head__title {
  margin: 0;
  font-family: var(--d);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg);
}

.embed-head__actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.embed-btn,
.embed-head [data-theme-toggle] {
  appearance: none;
  border: 1px solid var(--line-ctl);
  border-radius: var(--r-pill);
  background: var(--bg-3);
  color: var(--fg);
  font-family: var(--f);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  min-height: 2.25rem;
  cursor: pointer;
}

.embed-btn:hover,
.embed-head [data-theme-toggle]:hover {
  border-color: var(--o);
}

#share-btn {
  border-color: var(--b);
}

#share-btn:hover {
  border-color: var(--o);
}

.embed-share-status {
  flex-basis: 100%;
  margin: 0;
  min-height: 0;
  font-size: 0.8125rem;
  color: var(--mut);
}

.embed-share-status:empty {
  display: none;
}

.embed-share-status input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line-ctl);
  border-radius: var(--r-s);
  background: var(--bg-2);
  color: var(--fg);
  font: inherit;
}

.embed-foot {
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-2);
  font-size: 0.8125rem;
  color: var(--mut);
}

.embed-foot__privacy {
  margin: 0 0 0.6rem;
}

.embed-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

.embed-foot a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--o);
  text-underline-offset: 3px;
}

.embed-foot a:hover {
  color: var(--o-text);
}

.embed-foot strong {
  color: var(--o-text);
  font-weight: 600;
}

.embed-get summary {
  cursor: pointer;
  color: var(--fg);
  font-weight: 600;
  width: fit-content;
}

.embed-get summary:hover {
  color: var(--o-text);
}

.embed-get__note {
  margin: 0.5rem 0;
}

.embed-get__code {
  margin: 0 0 0.6rem;
  padding: 0.75rem;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--bg-2);
  color: var(--fg);
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: pre;
}

/* Phone-width iframes: keep brand, title and actions on one row */
@media (max-width: 26rem) {
  .embed-head {
    gap: 0.5rem;
  }

  .embed-head__brand {
    padding: 0.25rem 0.45rem;
  }

  .embed-head__logo {
    width: 68px;
  }

  .embed-head__title {
    font-size: 0.9rem;
  }

  .embed-btn,
  .embed-head [data-theme-toggle] {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    min-height: 2rem;
  }
}

/* Longer quality labels: keep the three presets on one row in the frame */
.page--embed .presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page--embed .presets button {
  padding: 12px 8px;
  font-size: 0.875rem;
  line-height: 1.2;
}
