/* Public recipe share pages (/r/{token}) — layout on top of palatte.css */

.share-main {
  background: var(--page);
  padding-bottom: var(--s-hero);
}

.share-main .nav--surface {
  border-bottom-color: var(--border);
}

.share-main .share-content .btn {
  width: 100%;
}

.share-main .nav .btn {
  width: auto;
}

.share-content {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
  padding-top: var(--s-lg);
  padding-bottom: 0;
}

.share-content .card {
  margin: 0;
  box-shadow: var(--shadow-card);
}

.share-content .card.cta {
  margin-top: var(--s-sm);
  padding: var(--s-xxxl) var(--s-section);
  border-color: var(--ramp-4);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(79, 121, 66, 0.07) 100%);
}

/* Recipe header — contained cover (not full-bleed) */
.share-hero-stage {
  position: relative;
  padding-top: var(--s-xs);
}

.share-hero-stage::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 160px;
  background: radial-gradient(closest-side, rgba(163, 196, 150, 0.42), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.recipe-spotlight.card {
  position: relative;
  z-index: 1;
  padding: 0;
  overflow: hidden;
}

.recipe-cover-wrap {
  display: flex;
  justify-content: center;
  padding: var(--s-md) var(--s-md) 0;
}

.recipe-cover {
  width: min(100%, 300px);
  margin: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-height: 220px;
  background: var(--light-grey);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.recipe-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.recipe-spotlight-body {
  padding: var(--s-section) var(--s-section) var(--s-xl);
  text-align: center;
}

.recipe-eyebrow {
  margin: 0 0 var(--s-sm);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

h1.recipe-title {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.22;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--title);
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-sm);
  margin: var(--s-md) 0 0;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: var(--s-xs) var(--s-md);
  border-radius: var(--chip-radius);
  border: 1px solid var(--border);
  background: var(--page);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.meta-chip svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: var(--primary);
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-sm);
  margin: var(--s-md) 0 0;
}

.tag-pill {
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--pill);
  padding: 6px 12px;
  white-space: nowrap;
}

.attribution-card {
  text-align: center;
  padding: var(--s-section);
}

.attribution-card .source-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 var(--s-lg);
}

.attribution-card .source-line strong {
  color: var(--text);
  font-weight: 700;
}

.source-favicon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .recipe-cover {
    max-height: 240px;
    width: min(100%, 320px);
  }

  h1.recipe-title {
    font-size: 1.75rem;
  }
}
