/* Recipe collection and cooking pages. Shared brand styles remain in site.css. */
.recipe-collection, .recipe-detail { --line: #d9dccd; --muted: #536255; --soft: #eef0e5; }
.recipe-collection *, .recipe-detail * { min-width: 0; }
.treat-eyebrow { margin: 0 0 .65rem; color: #5b692b; font-size: .75rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.treat-intro { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.treat-intro h1 { font-size: clamp(2.5rem, 5vw, 4.15rem); }
.treat-intro > div:first-child > p:last-child { max-width: 62ch; margin: 1rem 0 0; color: var(--muted); font-size: 1.05rem; }
.treat-count { flex: 0 0 8rem; text-align: center; border-left: 1px solid var(--line); padding-left: 1.5rem; }
.treat-count strong { display: block; font: 3.6rem/1 Georgia, serif; }
.treat-count span { display: block; margin-top: .5rem; color: var(--muted); font-size: .8rem; }
.treat-controls { padding: 1.25rem 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: .8rem; }
.treat-filter-row { display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: end; }
.treat-controls label { margin-bottom: .4rem; font-size: .8rem; font-weight: 700; }
.treat-controls input, .treat-controls select { width: 100%; max-width: none; border-color: #a8b19d; min-height: 48px; padding: .7rem .75rem; font-size: .9rem; border-radius: .35rem; }
.treat-search-field { position: relative; }
.treat-search-field > svg { position: absolute; inset: 50% auto auto .8rem; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.treat-search-field input { padding-left: 2.6rem; }
.treat-search-field input::placeholder { color: #64705f; opacity: 1; }
.treat-filter-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .65rem; }
.treat-filter-help { margin: 0; color: var(--muted); font-size: .76rem; }
.treat-reset, .treat-controls .treat-reset { margin: 0; padding: .3rem 0; min-height: 44px; border: 0; background: transparent; color: var(--forest); font: 650 .8rem/1.4 system-ui, sans-serif; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.treat-results { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; margin: 1.5rem 0 1rem; font-size: .85rem; }
.treat-results p { margin: 0; }
.treat-results [role="status"] { font-weight: 750; }
.treat-results [data-active-filters] { color: var(--muted); }
.treat-image-note { margin-left: auto !important; color: var(--muted); font-size: .75rem; }
.treat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; list-style: none; padding: 0; margin: 0; }
.treat-card { border: 1px solid var(--line); border-radius: .8rem; background: var(--paper); position: relative; }
.treat-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; border-radius: inherit; transition: box-shadow .18s ease, transform .18s ease; }
.treat-card-link:hover { box-shadow: 0 10px 25px #153c2e10; transform: translateY(-3px); }
.treat-card-link:focus-visible { outline: 3px solid var(--forest); outline-offset: 4px; }
.treat-card-link:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.treat-art { position: relative; overflow: hidden; aspect-ratio: 3 / 2; width: 100%; border-radius: .75rem .75rem 0 0; background: #ece7d9; }
.treat-art img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; }
.treat-art-reference { aspect-ratio: 512 / 308; }
.treat-card .treat-art-reference { aspect-ratio: 3 / 2; }
.treat-art-reference img { position: absolute; width: 200%; height: auto; max-width: none; left: -94.3%; top: -42.5%; }
/* Keep the 3:2 card crop inside the photograph on the original recipe sheet. */
.treat-card .treat-art-reference img { width: 224%; left: -112%; top: -43.5%; }
.treat-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem 1.35rem 1rem; }
.treat-category { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 750; color: #657335; margin: 0 0 .55rem; }
.treat-card h2 { margin: 0 0 .8rem; font-size: 1.5rem; line-height: 1.18; letter-spacing: -.015em; }
.treat-description { margin: 0 0 1.2rem; font-size: .87rem; line-height: 1.6; color: var(--muted); }
.treat-card-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: auto 0 0; padding: .95rem 0; border-block: 1px solid var(--line); }
.treat-card-facts dt { font-size: .68rem; color: var(--muted); margin-bottom: .2rem; }
.treat-card-facts dd { margin: 0; font-size: .79rem; font-weight: 700; white-space: nowrap; }
.treat-card-action { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding-top: .45rem; font-size: .82rem; font-weight: 700; }
.treat-empty { text-align: center; border: 1px dashed #a8b19d; border-radius: .75rem; background: var(--soft); padding: 3rem 1.25rem; }
.treat-empty h2 { font-size: 2rem; margin: 0; }
.treat-empty p { color: var(--muted); }
.recipe-collection .button, .recipe-detail .button { gap: .65rem; padding: .75rem 1.1rem; border: 1px solid var(--forest); border-radius: .35rem; font: 650 .9rem/1.4 system-ui, sans-serif; cursor: pointer; }
.treat-guidance { margin-top: 3rem; padding: 1.75rem 2rem; display: flex; gap: 1rem 2rem; align-items: center; justify-content: space-between; background: #ebeddf; border-radius: .75rem; }
.treat-guidance h2 { margin: 0 0 .7rem; font-size: 1.8rem; }
.treat-guidance p:last-child { margin: 0; max-width: 65ch; color: var(--muted); font-size: .9rem; }
.treat-guidance .button { flex-shrink: 0; }
.recipe-breadcrumb { display: flex; align-items: center; gap: 1rem; margin: -.5rem 0 1.75rem; font-size: .82rem; color: var(--muted); }
.recipe-breadcrumb a { gap: .5rem; min-height: 44px; font-size: inherit; }
.recipe-breadcrumb svg { transform: rotate(180deg); }
.recipe-breadcrumb > span { border-left: 1px solid var(--line); padding-left: 1rem; }
.treat-detail-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.treat-detail-hero h1 { font-size: clamp(2.3rem, 4vw, 3.65rem); line-height: 1.08; letter-spacing: -.035em; }
.treat-detail-description { font-size: 1.05rem; color: var(--muted); margin: 1.25rem 0; max-width: 53ch; }
.treat-detail-hero figure { margin: 0; }
.treat-detail-hero .treat-art { border-radius: .8rem; aspect-ratio: 1 / 1; }
.treat-detail-hero .treat-art-reference { aspect-ratio: 512 / 308; }
.treat-detail-hero figcaption { color: var(--muted); font-size: .7rem; padding-top: .5rem; }
.treat-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; padding: 1.25rem 0; margin: 0; border-block: 1px solid var(--line); }
.treat-facts dt { font-size: .72rem; color: var(--muted); margin-bottom: .2rem; }
.treat-facts dd { margin: 0; font-size: 1.2rem; font-weight: 700; }
.treat-facts dd span { font-size: .85rem; font-weight: 500; }
.treat-timing-note { font-size: .76rem; color: var(--muted); margin: .85rem 0 0; }
.recipe-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.25rem; }
.recipe-before { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.25rem; background: var(--soft); padding: 1.25rem 1.5rem; border-radius: .65rem; margin: 2rem 0 3rem; }
.recipe-before h2 { margin: .15rem 0 0; font-size: 1.3rem; }
.recipe-before p { margin: 0; font-size: .84rem; color: #40533e; }
.recipe-before p + p { margin-top: .45rem; }
.recipe-workspace { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.45fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.recipe-ingredients-panel { padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: .75rem; scroll-margin-top: 1rem; }
.recipe-ingredients-panel:focus-visible { outline: 3px solid var(--forest); outline-offset: 4px; }
.recipe-section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; }
.recipe-section-heading h2 { margin: 0; font-size: 1.8rem; letter-spacing: -.02em; }
.recipe-section-heading > span { font-size: .75rem; color: var(--muted); }
.recipe-section-intro { color: var(--muted); font-size: .8rem; margin: .65rem 0 1rem; }
.recipe-checklist { padding: 0; margin: 0; list-style: none; }
.recipe-checklist li { border-bottom: 1px solid var(--line); }
.recipe-checklist label { display: flex; align-items: flex-start; gap: .7rem; padding: .9rem 0; min-height: 48px; cursor: pointer; font-size: .9rem; }
.recipe-checklist input { accent-color: var(--forest); width: 19px; height: 19px; flex: 0 0 19px; margin: .15rem 0 0; }
.recipe-checklist input:checked + span { text-decoration: line-through; color: #6e786c; }
.recipe-checklist-status { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem 1rem; margin-top: .65rem; }
.recipe-checklist-status p { margin: 0; color: var(--muted); font-size: .75rem; }
.recipe-equipment { border-top: 1px solid var(--line); padding-top: 1.3rem; margin-top: 1rem; }
.recipe-equipment h2 { margin: 0; font-size: 1.35rem; }
.recipe-equipment ul { padding-left: 1.2rem; margin: .75rem 0 0; font-size: .85rem; color: var(--muted); }
.recipe-equipment li { padding-block: .15rem; }
.recipe-batch-note { background: var(--soft); border-radius: .45rem; padding: 1rem; margin-top: 1.5rem; }
.recipe-batch-note h3 { margin: 0 0 .5rem; font-size: .9rem; }
.recipe-batch-note p { margin: 0; font-size: .8rem; color: var(--muted); }
.recipe-batch-note p + p { margin-top: .6rem; }
.recipe-method h2 { scroll-margin-top: 1rem; }
.recipe-method-list { counter-reset: method; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.recipe-method-list li { counter-increment: method; display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); gap: 1rem; margin: 0; padding: 1rem 0 1.25rem; border-bottom: 1px solid var(--line); }
.recipe-method-list li:first-child { padding-top: .3rem; }
.recipe-method-list li::before { content: counter(method, decimal-leading-zero); color: #697746; font-size: .95rem; font-weight: 750; line-height: 1.8; }
.recipe-method-list p { margin: 0; line-height: 1.75; font-size: .96rem; }
.recipe-storage { margin-top: 3rem; padding: 2rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--paper); }
.recipe-storage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; margin-top: 1.25rem; }
.recipe-storage-grid h3 { font: 700 .9rem/1.4 system-ui, sans-serif; margin: 0 0 .5rem; }
.recipe-storage-grid p { margin: 0; color: var(--muted); font-size: .85rem; }
.recipe-source-link { margin: 1.5rem 0 0; font-size: .75rem; }
.recipe-notes { margin: 2rem 0 0; max-width: 80ch; color: var(--muted); font-size: .82rem; }
.recipe-notes h2 { color: var(--forest); font-size: 1.2rem; }
.recipe-notes summary { cursor: pointer; min-height: 44px; padding: .65rem 0; font-weight: 650; color: var(--forest); }
.recipe-notes details p { margin-top: .3rem; }
.recipe-related { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.recipe-related > .recipe-section-heading { margin-bottom: 1.5rem; }
.recipe-related > .recipe-section-heading a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .85rem; }
@media (prefers-reduced-motion: reduce) { .treat-card-link { transition: none; } .treat-card-link:hover { transform: none; } }
@media (max-width: 65rem) {
  .treat-filter-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .treat-search { grid-column: 1 / -1; }
  .treat-card-body { padding-inline: 1rem; }
  .treat-card h2 { font-size: 1.35rem; }
  .treat-guidance { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 54rem) {
  .treat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .treat-detail-hero { gap: 1.75rem; }
  .treat-detail-hero h1 { font-size: 2.4rem; }
  .recipe-workspace { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 1.75rem; }
  .recipe-ingredients-panel { padding: 1.1rem; }
}
@media (max-width: 42rem) {
  .treat-intro { gap: 1rem; margin-bottom: 1.5rem; }
  .treat-count { display: none; }
  .treat-controls { padding: 1rem; }
  .treat-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .treat-filter-row > div:last-child { grid-column: 1 / -1; }
  .treat-filter-bottom { gap: .4rem; margin-top: .8rem; }
  .treat-filter-help { font-size: .72rem; }
  .treat-image-note { width: 100%; margin-left: 0 !important; }
  .treat-detail-hero { grid-template-columns: 1fr; }
  .treat-detail-hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
  .treat-detail-hero .treat-art { aspect-ratio: 3 / 2; }
  .treat-detail-hero .treat-art-reference { aspect-ratio: 512 / 308; }
  .recipe-before { grid-template-columns: 1fr; gap: .6rem; margin-bottom: 2rem; padding: 1.2rem; }
  .recipe-workspace { grid-template-columns: 1fr; gap: 2rem; }
  .recipe-ingredients-panel { padding: 1.3rem; }
  .recipe-storage { padding: 1.3rem; }
  .recipe-storage-grid { gap: 1.25rem; }
}
@media (max-width: 34rem) {
  .treat-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .treat-card h2 { font-size: 1.6rem; }
  .treat-card-body { padding-inline: 1.2rem; }
  .treat-card-facts dd { font-size: .85rem; }
  .treat-guidance { padding: 1.3rem; margin-top: 2rem; }
  .treat-guidance h2 { font-size: 1.6rem; }
  .recipe-storage-grid { grid-template-columns: 1fr; }
  .recipe-method-list li { gap: .6rem; grid-template-columns: 1.8rem minmax(0, 1fr); }
  .recipe-section-heading h2 { font-size: 1.65rem; }
}
@media print {
  .recipe-breadcrumb, .recipe-actions, .treat-detail-hero figure, .recipe-checklist-status, .recipe-related { display: none !important; }
  .treat-detail-hero, .recipe-workspace, .recipe-before { display: block; }
  .treat-detail-hero h1 { font-size: 24pt; }
  .treat-facts { grid-template-columns: repeat(4, 1fr); padding: .5rem 0; }
  .recipe-before, .recipe-ingredients-panel, .recipe-storage { padding: .7rem; margin: .75rem 0; background: white; }
  .recipe-before h2 { margin-bottom: .5rem; }
  .recipe-checklist label { padding: .3rem 0; min-height: 0; }
  .recipe-checklist input:checked + span { text-decoration: none; color: #111; }
  .recipe-equipment, .recipe-batch-note { margin: .65rem 0 0; padding: .5rem 0; }
  .recipe-method-list li { padding: .5rem 0; break-inside: avoid; }
  .recipe-notes { font-size: 8pt; }
  .recipe-storage-grid { gap: 1rem; }
}
