/* /save-recipe/ preview page. Builds on the shared recipe page styles in /styles.css. */

.save-recipe-hero:not(.has-photo) .recipe-app-shell {
  margin-top: clamp(24px, 5vw, 56px);
}

.save-recipe-hero .recipe-title-block h1 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.save-recipe-hero[data-state="intro"] .recipe-title-block h1 {
  max-width: 14ch;
}

.save-byline {
  margin: -8px 0 24px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.save-steps {
  display: grid;
  gap: 4px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.save-steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid rgba(221, 213, 200, 0.82);
}

.save-steps p {
  margin: 8px 0 0;
  color: #3A352E;
  font-size: 1.12rem;
  line-height: 1.45;
}

.save-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.save-privacy-note {
  padding: 22px 24px;
  border: 1px solid rgba(221, 213, 200, 0.92);
  border-radius: 8px;
  background: var(--surface);
}

.save-privacy-note h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.save-privacy-note p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.save-recipe-page .navigation .nav-link:not(.nav-download) {
  display: none;
}

.save-recipe-page .nav-wrap {
  flex-direction: row;
  align-items: center;
  min-height: 72px;
  padding: 0;
}

.save-recipe-page .navigation {
  width: auto;
  overflow: visible;
}

.save-recipe-hero .recipe-hero-frame {
  height: clamp(260px, 38vw, 440px);
}

.save-recipe-hero .recipe-hero-photo {
  object-position: center 72%;
}

.save-cook-card {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(221, 213, 200, 0.92);
  box-shadow: var(--shadow-soft);
}

.save-cook-card strong {
  display: block;
  font-family: "Bricolage Grotesque", Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.15;
}

.save-cook-card > div > span {
  color: var(--text-muted);
}

.save-cta-arrow {
  margin-left: 0.4em;
}

.save-cook-card .primary-cta {
  justify-self: start;
}

button.primary-cta {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.save-copy-status:empty {
  display: none;
}

.save-app-store {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding-top: 14px;
  border-top: 1px solid rgba(221, 213, 200, 0.74);
}

.save-app-store p {
  margin: 0;
  color: var(--text-muted);
}

.save-copy-button {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-warm);
  color: var(--text);
  font: 600 1rem/1.2 "Source Sans 3", sans-serif;
  cursor: pointer;
}

.save-copy-button:hover {
  border-color: var(--primary);
}

.save-copy-status {
  color: var(--secondary);
  font-weight: 600;
}

.save-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 0 0 24px;
}

.save-stats div {
  padding: 14px 16px;
  border: 1px solid rgba(221, 213, 200, 0.92);
  border-radius: 8px;
  background: var(--surface);
}

.save-stats dt {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.save-stats dd {
  margin: 2px 0 0;
  font-family: "Bricolage Grotesque", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.save-recipe-hero .ingredient-card h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.2rem);
  line-height: 1;
}

.save-recipe-hero .section-heading-row span {
  color: var(--text-muted);
}

.save-recipe-hero #saved-steps-heading {
  margin: 32px 0 8px;
}

.save-source {
  margin: 24px 0 0;
  color: var(--text-muted);
}

.save-source a {
  color: var(--primary-deep);
  font-weight: 600;
}

.save-invalid {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.12rem;
}

[hidden] {
  display: none !important;
}
