.madlib-result [hidden], [data-story-sharing] [hidden] { display: none; }
.madlib-result [data-story-preview]:not([hidden]) { display: block; width: 100%; height: auto; margin: .8rem 0; }
[data-story-caption] { overflow-wrap: anywhere; }

.recipe-jump a { font-weight: 650; text-underline-offset: .2em; }
.recipe-collection { container-type: inline-size; scroll-margin-block-start: 3.2rem; }
.recipe-cover {
  display: flex;
  align-items: end;
  min-height: clamp(8rem, 27cqi, 12rem);
  padding: clamp(1rem, 4cqi, 1.65rem);
  border: 1px solid #957854;
  border-radius: .65rem;
  background: linear-gradient(90deg, #10291ee8, #142c2060 54%, transparent 80%),
              url("story-kitchen.webp") center 53% / cover, #233b2f;
}
.recipe-cover h2 {
  margin: 0;
  max-width: 72%;
  color: #fff6df;
  font: 500 clamp(1.75rem, 7cqi, 2.8rem)/1.05 Georgia, serif;
  text-wrap: balance;
  text-shadow: 0 1px 5px #16281c;
}
.recipe-grid { display: grid; gap: .85rem; margin-top: 1rem; align-items: start; }
@container (min-width: 31rem) {
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recipe-card[open] { grid-column: 1 / -1; }
}
.recipe-collection .recipe-card {
  --recipe-ink: #773636;
  min-width: 0;
  padding: 0;
  border-radius: .3rem;
  border: 1px solid #c6ad8b;
  border-top: 4px solid var(--recipe-ink);
  background: #fff5df;
  color: #362e26;
  box-shadow: 0 2px 0 #baa179;
}
.recipe-card:nth-child(3n + 2) { --recipe-ink: #325848; background-color: #f1f1df; }
.recipe-card:nth-child(3n) { --recipe-ink: #494d69; background-color: #f7efdf; }
.recipe-card summary {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 7.8rem;
  padding: .8rem 2.8rem .95rem 1rem;
  list-style: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.recipe-card summary::-webkit-details-marker { display: none; }
.recipe-card summary:focus-visible { outline: 3px solid #3383bf; outline-offset: 2px; }
.recipe-index { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: baseline; padding-bottom: .4rem; border-bottom: 1px solid #bfaa8c; color: var(--recipe-ink); font: 700 .76rem/1.3 system-ui,sans-serif; }
.recipe-index span { color: #62584d; font-weight: 500; }
.recipe-name { margin-block: .55rem .3rem; color: var(--recipe-ink); font: italic 600 clamp(1.28rem, 4cqi, 1.65rem)/1.16 Georgia, serif; }
.recipe-flavours { color: #5e5249; font: .88rem/1.4 system-ui,sans-serif; }
.recipe-toggle { position: absolute; inset: .7rem .7rem auto auto; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 1px solid #bea989; border-radius: 50%; color: var(--recipe-ink); }
.recipe-toggle::before { content: "+"; font: 500 1rem/1 system-ui,sans-serif; }
.recipe-card[open] .recipe-toggle::before { content: "−"; }
.recipe-card[open] summary { min-height: 0; }
.recipe-card summary:hover .recipe-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.recipe-reading { margin-inline: 1rem; padding-block: .2rem 1.1rem; border-top: 1px dashed #b59974; overflow-wrap: anywhere; }
.recipe-reading .recipe-prose p { color: #362e26; font: 1.07rem/1.65 Georgia,serif; }
.recipe-reading [data-story-caption] { color: #534b41; font: .9rem/1.5 system-ui,sans-serif; }
.recipe-reading [data-caption-status] { color: #534b41; }
