.shared-recipe-page {
  min-height: 100vh;
  margin: 0;
  background: #fff;
}

/* Shared, content-only presentation for catalog snapshots and private recipes. */
.recipe-detail-description,
.recipe-detail-item-text,
.recipe-detail-story p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.recipe-detail-item-note {
  display: block;
  margin-top: 4px;
  color: var(--recipe-app-muted);
  font-size: .85em;
}

.recipe-detail-extra {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #e6ded9;
  color: var(--recipe-app-muted);
  font-size: .85rem;
  overflow-wrap: anywhere;
}
.recipe-detail-extra summary { cursor: pointer; }
.recipe-detail-extra p { margin-block: 6px; white-space: pre-wrap; }
.recipe-detail-extra li { margin-block: 16px; }

.private-recipe-page { background: #fff; }
.private-recipe-page main { width: 100%; max-width: none; }
.private-recipe-page .workspace,
.private-recipe-page .intro,
.private-recipe-page #status,
.private-recipe-page #error { width: min(100%, 1180px); margin-inline: auto; }
.private-recipe-page .editor.is-reading { padding: 0; border: 0; border-radius: 0; }
.private-recipe-page .back-library { margin-bottom: 26px; padding-left: 0; border: 0; }
.private-recipe-page .reader-footnote { font-size: .8rem; margin-top: 30px; }
.private-recipe-actions { margin-top: 24px; }
.private-recipe-page .recipe-detail-summary .notice { font-size: .85rem; }
.reading-private-recipe #status:not(:empty) { font-size: .8rem; margin-bottom: 16px; }

.shared-recipe-navbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e6ded9;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.shared-recipe-navbar .nav-brand {
  position: static;
  transform: none;
}

.shared-recipe-main {
  padding: clamp(28px, 5vw, 68px) clamp(18px, 5vw, 64px) 80px;
}

.shared-recipe-main .recipe-detail-view {
  width: min(100%, 1180px);
  padding-bottom: 0;
}

.shared-recipe-main .recipe-detail-overview {
  grid-template-columns: minmax(260px, 390px) minmax(360px, 1fr);
}

.shared-recipe-main .recipe-detail-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shared-recipe-main .recipe-detail-meta {
  width: 100%;
  max-width: 620px;
}

.shared-recipe-ingredient-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--recipe-app-accent);
}

.shared-recipe-main .recipe-detail-error {
  max-width: 620px;
  margin: 12vh auto 0;
  text-align: center;
}

.shared-recipe-open-app {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: clamp(42px, 7vw, 76px) auto 0;
  padding: 14px 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c9dad2;
  border-radius: 999px;
  background: #eef4f0;
  color: #55776b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.shared-recipe-open-app:hover,
.shared-recipe-open-app:focus-visible {
  border-color: #a9c3b7;
  background: #e3eee8;
  color: #46675c;
  transform: translateY(-1px);
}

.shared-recipe-voice {
  display: flex;
  width: 100%;
  margin: 30px auto 0;
  align-items: center;
  flex-direction: column;
  gap: 9px;
}

.shared-recipe-voice-controls {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.shared-recipe-voice-toggle,
.shared-recipe-voice-microphone {
  display: flex;
  min-width: 102px;
  padding: 0;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #625c58;
  cursor: pointer;
  font: inherit;
}

.shared-recipe-voice-microphone:disabled {
  cursor: default;
}

.shared-recipe-voice-avatar,
.shared-recipe-voice-microphone-icon {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  background: #f2edeb;
  line-height: 1;
  transition: box-shadow .18s ease, transform .18s ease;
}

.shared-recipe-voice-avatar {
  font-size: 2.75rem;
}

.shared-recipe-voice-microphone-icon {
  color: #6f6762;
}

.shared-recipe-voice-microphone-icon svg {
  display: block;
  width: 36px;
  height: 36px;
}

.shared-recipe-voice-microphone.is-active .shared-recipe-voice-microphone-icon {
  box-shadow: inset 0 0 0 2px #bca79b;
}

.shared-recipe-voice-microphone.is-inactive .shared-recipe-voice-microphone-icon {
  color: #948985;
  line-height: 1;
}

.shared-recipe-voice-label {
  max-width: 150px;
  color: #77706c;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.35;
  text-align: center;
}

.shared-recipe-voice-toggle:hover .shared-recipe-voice-avatar,
.shared-recipe-voice-microphone:not(:disabled):hover .shared-recipe-voice-microphone-icon {
  box-shadow: 0 8px 22px rgba(67, 55, 46, .12);
  transform: translateY(-1px);
}

.shared-recipe-voice-microphone.is-active .shared-recipe-voice-microphone-label {
  color: #6d594f;
}

.shared-recipe-voice-toggle:focus-visible,
.shared-recipe-voice-microphone:focus-visible {
  outline: 2px solid #9a8174;
  outline-offset: 3px;
}

.shared-recipe-voice-connecting .shared-recipe-voice-avatar,
.shared-recipe-voice-listening .shared-recipe-voice-avatar,
.shared-recipe-voice-speaking .shared-recipe-voice-avatar {
  animation: shared-recipe-voice-pulse 1.7s ease-in-out infinite;
}

.shared-recipe-voice-error {
  max-width: 300px;
  margin: 4px 0 0;
  color: #9a514d;
  font-size: .88rem;
  text-align: center;
}

@keyframes shared-recipe-voice-pulse {
  50% { box-shadow: 0 0 0 7px rgba(154, 129, 116, .16); }
}

.shared-recipe-open-app:focus-visible {
  outline: 2px solid #77978a;
  outline-offset: 3px;
}

@container recipe-detail (max-width: 760px) {
  .shared-recipe-main .recipe-detail-overview,
  .shared-recipe-main .recipe-detail-body {
    grid-template-columns: 1fr;
  }

  .shared-recipe-main .recipe-detail-hero {
    width: min(100%, 420px);
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .shared-recipe-navbar {
    min-height: 58px;
  }

  .shared-recipe-navbar .brand-name {
    display: inline;
  }

  .shared-recipe-main {
    padding: 22px 16px 54px;
  }

  .shared-recipe-open-app {
    width: 100%;
    padding: 13px 18px;
  }
}
