/* Recipes page cards: 2 columns on phones, heart on the photo, quieter no-photo tile.
   Scoped to the list that follows the new controls (.rc-find ~ #cards). No !important. */
.rc-find ~ #cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:8px}
.rc-find ~ #cards .recipe-card-shell{position:relative;min-width:0;display:flex;flex-direction:column}
.rc-find ~ #cards .recipe-card-shell>.card{flex:1;display:flex;flex-direction:column;gap:6px;padding:0 0 14px;overflow:hidden;border-radius:16px}
.rc-find ~ #cards .card .recipe-photo{margin:0;width:100%;aspect-ratio:4/3;border-radius:0;overflow:hidden}
.rc-find ~ #cards .card .recipe-photo img{display:block;width:100%;height:100%;object-fit:cover}
.rc-find ~ #cards .card .personal-recipe-photo,.rc-find ~ #cards .card .personal-recipe-placeholder{display:block;width:100%;height:auto;max-height:none;aspect-ratio:4/3;margin:0;border-radius:0;object-fit:cover}
.rc-find ~ #cards .card .photo-placeholder{position:relative;display:block}
.rc-find ~ #cards .card .photo-placeholder::before{content:"";position:absolute;inset:0;background:#e4e9df}
.rc-find ~ #cards .card .photo-placeholder span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.rc-find ~ #cards .card .photo-placeholder::after{content:"";position:absolute;inset:0;background:url(radish.png) center/auto 46% no-repeat;opacity:.45}
.rc-find ~ #cards .card .tag,.rc-find ~ #cards .card .br-status-badge{margin:0 12px;font-size:11px;letter-spacing:.06em}
.rc-find ~ #cards .card h2,.rc-find ~ #cards .card h3{margin:0 12px;font-size:17px;line-height:1.2}
.rc-find ~ #cards .card .card-description,.rc-find ~ #cards .card>p{margin:0 12px;font-size:14px;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.rc-find ~ #cards .recipe-card-shell{container-type:inline-size}
.rc-find ~ #cards .card .tag{padding:6px 44px 0 0;min-height:30px;box-sizing:border-box}
.rc-find ~ #cards .recipe-card-shell>.favorite-button{position:absolute;top:calc(75cqw - 3px);right:4px;left:auto;bottom:auto;z-index:2;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-height:0;margin:0;padding:0;border:0;border-radius:50%;background:transparent;border-color:transparent;color:var(--green,#365444);font-size:22px;line-height:1;cursor:pointer}
.rc-find ~ #cards .recipe-card-shell>.favorite-button[aria-pressed="true"]{background:transparent;color:#63384f}
.rc-find ~ #cards .favorite-button .favorite-word{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.rc-find ~ #cards .favorite-button:focus-visible{outline:3px solid #b08547;outline-offset:2px}
@media (min-width:640px){
  .rc-find ~ #cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .rc-find ~ #cards .card h2,.rc-find ~ #cards .card h3{font-size:19px}
  .rc-find ~ #cards .card .card-description,.rc-find ~ #cards .card>p{font-size:15px;-webkit-line-clamp:3}
}
@media (min-width:1100px){.rc-find ~ #cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
html[data-theme=dark] .rc-find ~ #cards .card .photo-placeholder::before{background:#27352b}
html[data-theme=dark] .rc-find ~ #cards .card .photo-placeholder::after{filter:brightness(2.4);opacity:.5}
html[data-theme=dark] .rc-find ~ #cards .recipe-card-shell>.favorite-button{color:#adc6ad}
html[data-theme=dark] .rc-find ~ #cards .recipe-card-shell>.favorite-button[aria-pressed="true"]{color:#e0b3cd}
html[data-theme=dark] .rc-find ~ #cards .recipe-card-shell>.favorite-button{background:transparent}

/* Status badge on the recipe thumbnail: Tried & True, My Recipe, Developing */
.rc-badge-host{position:relative}
.rc-badge-wrap{position:absolute;top:0;left:0;right:0;z-index:2;aspect-ratio:4/3;display:flex;align-items:flex-end;justify-content:flex-end;padding:4px;box-sizing:border-box;pointer-events:none}
.rc-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:28px;height:28px;border-radius:50%;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.35)}
.rc-badge svg{display:block}
.rc-badge--tried{background:#365b3b}
.rc-badge--book{background:#63384f}
.rc-badge--lab{background:#8a5a22}
html[data-theme=dark] .rc-badge{box-shadow:0 1px 4px rgba(0,0,0,.5);border:1px solid rgba(255,255,255,.22)}
html[data-theme=dark] .rc-badge--tried{background:#4a6b43}
html[data-theme=dark] .rc-badge--book{background:#7a4a64}
html[data-theme=dark] .rc-badge--lab{background:#8f6428}
.rc-find ~ #cards .card .personal-recipe-placeholder{display:flex;align-items:center;justify-content:center;color:#7d8f78;background:#e4e9df}
html[data-theme=dark] .rc-find ~ #cards .card .personal-recipe-placeholder{color:#9db39a;background:#323e31}
