/* Recipe card block and its "Made with" box. Colors and type come from the theme's tokens. */

.ggc-recipe { margin-block: var(--space-5, 40px); container-type: inline-size; }
.ggc-recipe__in { padding: 36px 40px 40px; }
.ggc-recipe p, .ggc-recipe h2, .ggc-recipe h3 { margin: 0; }
.ggc-recipe__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ggc-recipe__titles { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 auto; }
.ggc-recipe__seal { flex: none; }
.ggc-recipe__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 18px 0; margin: 20px 0 4px;
  border-top: 1px solid var(--line, #D8C8AC); border-bottom: 1px solid var(--line, #D8C8AC); }
.ggc-recipe__controls[hidden] { display: none; }
.ggc-recipe__control { display: flex; align-items: center; gap: 12px; }
.ggc-recipe__control--end { margin-left: auto; gap: 20px; }
.ggc-recipe__cols { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; margin-top: 24px; }
.ggc-recipe__sub { margin-bottom: 8px !important; }

.ggc-recipe__ing, .ggc-recipe__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ggc-recipe__row { display: grid; grid-template-columns: 22px 92px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0;
  border-bottom: 1px solid var(--line, #D8C8AC); cursor: pointer; font-size: 20px; line-height: 28px; }
.ggc-recipe__row.is-product { background: var(--ground, #F8F2E6); margin: 0 -10px; padding-inline: 10px; border-radius: var(--radius-sm, 3px); }
.ggc-recipe__check { width: 20px; height: 20px; margin: 0; accent-color: var(--brass, #7A5A1E); align-self: center; }
.ggc-recipe__amt { font-family: var(--font-label, Georgia, serif); font-weight: 700; letter-spacing: .04em; }
.ggc-recipe__pname { font-weight: 700; }
.ggc-recipe__row.is-checked .ggc-recipe__amt, .ggc-recipe__row.is-checked .ggc-recipe__name,
.ggc-recipe__step.is-checked .ggc-recipe__text { color: var(--ink-muted, #544231); text-decoration: line-through; text-decoration-thickness: 1px; }

.ggc-recipe__steps { gap: 4px; }
.ggc-recipe__step { display: grid; grid-template-columns: 40px minmax(0, 1fr) 22px; gap: 14px; align-items: start; padding: 10px 0; cursor: pointer; font-size: 20px; line-height: 30px; }
.ggc-recipe__num { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--brass, #7A5A1E); border-radius: 50%;
  font: 700 19px/1 var(--font-display, Georgia, serif); color: var(--brass, #7A5A1E); }
.ggc-recipe__step .ggc-recipe__check { align-self: start; margin-top: 4px; }

.ggc-recipe__notes { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line, #D8C8AC); display: flex; flex-direction: column; gap: 10px; }
.ggc-recipe__notelist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 19px; line-height: 28px; }

/* "Made with": printed beside the post by the theme, or under the card */
.ggc-recipe-madewith { display: flex; flex-direction: column; gap: 20px; margin-block: var(--space-4, 24px); max-width: 420px; }
.ggc-madewith__in { padding: 0 0 22px; }
.ggc-madewith__shot { display: grid; place-items: end center; height: 250px; padding: 20px 20px 14px; }
.ggc-madewith__shot img { height: 210px; width: auto; position: relative; z-index: 1; filter: drop-shadow(0 10px 10px rgba(60, 40, 20, .22)); }
.ggc-madewith__body { display: flex; flex-direction: column; gap: 14px; padding: 18px 22px 0; }
.ggc-madewith__body p { margin: 0; }
.ggc-madewith__name { margin: 0; }
.ggc-madewith__name a { color: var(--ink, #2A1D13); text-decoration: none; }
.ggc-madewith__name a:hover { color: var(--brass, #7A5A1E); }
.ggc-madewith__form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.ggc-madewith__sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 6px; margin: 0; padding: 0; border: 0; }
.ggc-madewith__sizes .gs-size { padding-inline: 4px; min-width: 0; }
.ggc-madewith__sizes .gs-size:focus-within { outline: var(--border-frame, 2px) solid var(--brass, #7A5A1E); outline-offset: 2px; }
.ggc-size__name { font-family: var(--font-label, Georgia, serif); font-weight: 700; font-size: 17px; letter-spacing: .04em; }
.ggc-size__price { font-size: 16px; color: var(--ink-muted, #544231); line-height: 21px; }
.ggc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

@media (max-width: 900px) {
  .ggc-recipe__cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
/* Beside the "Made with" column the card is too narrow for two columns: ingredients above steps. */
@container (max-width: 760px) {
  .ggc-recipe__cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 720px) {
  .ggc-recipe__in { padding: 24px 18px 28px; }
  .ggc-recipe__row { grid-template-columns: 22px 80px minmax(0, 1fr); }
  .ggc-recipe__control--end { margin-left: 0; }
}

/* Print the recipe card only, black on white. */
@media print {
  /* Same specificity as the hiding rule, and later, so the card wins. */
  body:has(.ggc-recipe) * { visibility: hidden; }
  body:has(.ggc-recipe) .ggc-recipe, body:has(.ggc-recipe) .ggc-recipe * { visibility: visible; }
  .ggc-recipe { position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 0 !important; background: #fff !important;
    -webkit-mask: none !important; mask: none !important; }
  .ggc-recipe .gs-frame__in { background: #fff !important; -webkit-mask: none !important; mask: none !important; padding: 0 !important; }
  .ggc-recipe, .ggc-recipe * { color: #000 !important; box-shadow: none !important; }
  .ggc-recipe__row.is-product { background: none; }
  .ggc-recipe__controls, .ggc-recipe__seal, .ggc-recipe__check { display: none !important; }
  .ggc-recipe__row { grid-template-columns: 92px minmax(0, 1fr); }
  .ggc-recipe__step { grid-template-columns: 40px minmax(0, 1fr); }
  .ggc-recipe__num { border-color: #000 !important; }
  .ggc-recipe__cols { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .ggc-recipe a { text-decoration: none; }
}
