/* Recipe welcome and account-owned favorites. */
.recipes-welcome{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(310px,.85fr);
  align-items:center;
  gap:28px;
  padding:clamp(22px,2.5vw,32px);
  overflow:hidden;
  background:radial-gradient(ellipse at 0 0,rgba(var(--accent-rgb),.12),transparent 58%),var(--card-bg);
}

/* Recipe discussions */
.recipe-community .community-heading {
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.community-heading h2, .comment-composer h3, .comments-list h3 {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.25;
}
.comment-composer, .recipe-comment {
  scroll-margin-top: calc(var(--site-header-height, 74px) + 20px);
}
.comment-composer {
  padding: clamp(16px, 2.4vw, 30px);
}
.comment-composer .comment-lead {
  margin: 8px 0 18px;
}
.comment-composer-form {
  display: grid;
  gap: 18px;
  overflow-wrap: anywhere;
}
.comment-composer-form label, .comment-rating legend {
  font-size: .94rem;
  font-weight: 650;
}
.comment-rating {
  padding: 0;
  margin: 0;
  min-width: 0;
  border: 0;
}
.comment-star-options {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.comment-star-options input, .comment-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.comment-star-options label {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  color: var(--accent);
  cursor: pointer;
  border-radius: 10px;
  font-size: 30px;
  line-height: 1;
}
.comment-star-options label::before { content: "☆"; }
.comment-star-options input:checked + label::before,
.comment-star-options label:has(~ input:checked)::before { content: "★"; }
.comment-star-options input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.comment-star-options label:hover { background: var(--field-bg); }
.comment-composer .comment-input {
  display: block;
  width: 100%;
  min-height: 140px;
  margin-top: 6px;
  padding: 12px;
  resize: vertical;
  font: inherit;
}
.comment-photo-field {
  padding: 14px;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: 12px;
  background: var(--field-bg);
}
.comment-photo-field p {
  margin: 3px 0 10px;
  font-size: .87rem;
}
.comment-photo-field input { width: 100%; font: inherit; font-size: .87rem; }
.comment-photo-field input::file-selector-button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-inline-end: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.comment-email-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.comment-email-option input { margin-top: 4px; accent-color: var(--accent); }
.comment-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.comment-submit-row p { margin: 0; font-size: .87rem; }
.comment-rate-only { justify-self: end; }
.comments-list { margin-top: 28px; }
.comment-thread { padding-block: 18px; border-bottom: 1px solid var(--line); }
.recipe-comment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(9px, 1.5vw, 18px);
}
.recipe-comment-reply {
  margin: 18px 0 0 clamp(10px, 3vw, 40px);
  padding-left: clamp(10px, 1.5vw, 18px);
  border-left: 2px solid var(--line);
}
.comment-avatar {
  display: grid;
  place-items: center;
  width: clamp(42px, 5vw, 56px);
  aspect-ratio: 1;
  align-self: start;
  overflow: hidden;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--panel);
}
.comment-avatar img { display: block; width: 100%; height: auto; }
.comment-avatar-host {
  background: color-mix(in srgb, var(--accent) 18%, var(--panel));
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 800;
}
.comment-copy, .comment-body { overflow-wrap: anywhere; }
.comment-byline, .comment-actions {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 12px;
}
.comment-byline time, .comment-host-label { font-size: .78rem; }
.comment-host-label { font-weight: 650; color: var(--accent); }
.comment-body { margin: 5px 0 8px; line-height: 1.55; }
.comment-action {
  display: inline-block;
  padding: 5px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .87rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
}
.comment-action:hover { text-decoration: underline; }
.comment-dish { display: inline-block; max-width: min(100%, 340px); margin: 6px 0; }
.comment-dish img {
  display: block;
  max-width: 100%;
  max-height: 340px;
  width: auto;
  height: auto;
  border-radius: 12px;
}
@media (max-width: 850px) {
  .comment-composer, .recipe-comment {
    scroll-margin-top: calc(var(--site-header-height, 74px) + 76px);
  }
}
@media (max-width: 480px) {
  .comment-star-options label { inline-size: 42px; }
  .comment-submit-row .btn { width: 100%; }
}
.recipes-welcome-kicker{
  margin:0 0 12px;
  color:var(--accent);
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.recipes-welcome-kicker span{margin:0 6px;opacity:.45;}
.recipes-welcome h1{margin:0;font-size:var(--page-title-size);font-weight:650;line-height:1.18;letter-spacing:-.035em;text-wrap:balance;}
.recipes-welcome-description{max-width:57ch;margin:12px 0 16px;color:var(--muted);font-size:var(--page-subtitle-size);line-height:1.5;}
.recipes-welcome-extra{margin:0 0 18px;}
.recipes-welcome-extra p{margin:0;}
.recipes-saved-link{display:inline-flex;align-items:center;gap:9px;color:var(--text);font-size:14px;font-weight:750;}
.recipes-saved-link svg{width:20px;height:20px;fill:none;stroke:var(--accent);stroke-width:1.7;stroke-linejoin:round;}
.recipes-saved-link:hover{color:var(--accent);}
.recipes-social{padding-left:32px;border-left:1px solid var(--line);min-width:0;}
.recipes-social h2{font-size:18px;line-height:1.4;margin:0 0 5px;}
.recipes-social>p{margin:0 0 16px;color:var(--muted);font-size:14px;}
.recipes-social-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.social-link{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--field-bg);font-size:14px;font-weight:700;transition:border-color .18s,background .18s,transform .18s;}
.social-link:hover{transform:translateY(-2px);border-color:var(--accent);background:var(--panel);text-decoration:none;}
.social-link>svg{width:23px;height:23px;flex:none;}
.social-link--instagram>svg{color:#d34883;}
.social-link--youtube>svg{color:#e53c45;}
.social-link--facebook>svg{color:#4285ed;}
.social-link--tiktok>svg{color:var(--text);}
.social-link-arrow{margin-left:auto;font-size:15px;color:var(--muted);font-weight:400;}

.recipe-card{position:relative;}
.recipe-card-body h3{padding-right:30px;}
.recipe-card-link::after{content:"";position:absolute;inset:0;z-index:1;border-radius:var(--radius);}
.recipe-card-link:hover{text-decoration:none;}
.recipe-card-link:focus-visible{outline:none;}
.recipe-card-link:focus-visible::after{outline:3px solid var(--accent);outline-offset:3px;}
.featured-recipe-link{position:absolute;inset:0;z-index:2;border-radius:inherit;}
.featured-recipe-link:focus-visible{outline:3px solid var(--accent);outline-offset:-4px;}
.favorite-control{position:absolute;top:10px;right:10px;z-index:3;margin:0;line-height:1;}
.favorite-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:38px;min-height:38px;padding:8px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--muted);cursor:pointer;font:inherit;font-size:14px;font-weight:650;transition:color .18s,background .18s,border-color .18s;}
.favorite-button svg{width:21px;height:21px;fill:transparent;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;flex:none;}
.favorite-button:hover{color:var(--accent);border-color:var(--accent);background:var(--field-bg);text-decoration:none;}
.favorite-button[aria-pressed="true"]{color:#95620b;border-color:rgba(181,133,32,.32);background:rgba(217,166,52,.1);}
.favorite-button[aria-pressed="true"] svg{fill:currentColor;}
html[data-theme="dark"] .favorite-button[aria-pressed="true"]{color:#f2c765;}
.featured-recipe-card .favorite-button{width:40px;min-height:40px;color:#fff;border-color:rgba(255,255,255,.32);background:rgba(10,12,18,.32);backdrop-filter:blur(8px);}
.featured-recipe-card .favorite-button[aria-pressed="true"]{color:#f2c765;}
.favorite-button:focus-visible,.social-link:focus-visible,.recipes-saved-link:focus-visible{outline:3px solid var(--accent);outline-offset:3px;}
.favorite-button:disabled{opacity:.6;cursor:wait;}
.favorite-control--inline{position:static;display:inline-flex;}
.favorite-control--inline .favorite-button{width:auto;padding:10px 16px;border-radius:999px;min-height:44px;}
.recipe-save-row{display:flex;justify-content:center;margin:18px 0 8px;}
.favorite-status{position:fixed;bottom:24px;left:50%;z-index:60;max-width:calc(100vw - 32px);width:max-content;padding:12px 18px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text);box-shadow:var(--shadow);font-size:14px;opacity:0;transform:translate(-50%,12px);transition:opacity .18s,transform .18s;pointer-events:none;}
.favorite-status:empty{display:none;}
.favorite-status.is-visible{opacity:1;transform:translate(-50%,0);}
.favorites-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px;}
.favorites-header h1{margin:0;}
.favorites-header .muted{margin:8px 0 0;}
.favorites-pagination{display:flex;justify-content:center;align-items:center;gap:20px;margin:28px 0 0;}
.favorites-empty{text-align:center;padding:56px 24px;}
.favorites-empty>svg{width:48px;height:48px;fill:none;stroke:var(--accent);stroke-width:1.3;stroke-linejoin:round;}
.favorites-empty h2{margin:12px 0 8px;font-size:24px;line-height:1.3;}
.favorites-empty p{max-width:48ch;margin:0 auto 24px;}
@media(max-width:899px){
  .recipes-welcome{grid-template-columns:1fr;gap:24px;}
  .recipes-social{border-left:0;border-top:1px solid var(--line);padding:22px 0 0;}
  .recipes-social-links{grid-template-columns:repeat(4,minmax(0,1fr));}
  .social-link{justify-content:center;}
  .social-link-arrow{display:none;}
}
@media(max-width:599px){
  .recipes-welcome{padding:24px 22px;gap:22px;}
  .recipes-welcome h1{font-size:var(--page-title-size);}
  .recipes-welcome-description{font-size:var(--page-subtitle-size);margin:12px 0 16px;}
  .recipes-social-links{grid-template-columns:repeat(2,minmax(0,1fr));}
  .social-link{justify-content:flex-start;min-height:47px;}
  .social-link-arrow{display:inline;}
  .recipe-card-body h3{padding-right:26px;}
  .favorite-control{top:8px;right:8px;}
  .favorite-button{width:36px;min-height:36px;padding:7px;}
  .favorites-header{display:block;}
  .favorites-header>.recipes-saved-link{margin-top:16px;}
}
@media(prefers-reduced-motion:reduce){.social-link,.favorite-button,.favorite-status{transition:none;}.social-link:hover{transform:none;}}
