/* Mad Hungry Recipe Finder (draft). Inherits the theme's fonts and text color so it matches madhungry.com
   (mdh2026 theme); accent colors are variables Calder/Grace can set to the theme's exact values. */
.mhrf { --mhrf-ink: currentColor; --mhrf-muted: #535862; --mhrf-line: #e5e5e5; --mhrf-accent: #32373c; --mhrf-chip: #f4f4f2;
  font-family: inherit; color: inherit; margin: 24px 0; }
.mhrf-label { display: block; font-family: inherit; font-weight: 600; font-size: 1.25em; margin: 0 0 10px; }
.mhrf-row { display: flex; gap: 8px; border: 1px solid var(--mhrf-accent); border-radius: 999px; padding: 4px 4px 4px 18px; background: #fff; }
.mhrf-input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; background: transparent; padding: 8px 0; }
.mhrf-go { border: 0; border-radius: 999px; background: var(--mhrf-accent); color: #fff; font: inherit; font-weight: 600; padding: 10px 20px; cursor: pointer; }
.mhrf-go:disabled { opacity: .6; cursor: default; }
.mhrf-status { min-height: 1.5em; margin: 12px 0; color: var(--mhrf-muted); font-size: 14px; }
.mhrf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.mhrf-card { display: flex; flex-direction: column; border: 1px solid var(--mhrf-line); border-radius: 12px; overflow: hidden; color: inherit; text-decoration: none; background: #fff; }
.mhrf-card:hover, .mhrf-card:focus { border-color: var(--mhrf-accent); }
.mhrf-img { aspect-ratio: 4 / 3; background: var(--mhrf-chip); overflow: hidden; }
.mhrf-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mhrf-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.mhrf-title { font-family: inherit; font-size: 1.1em; line-height: 1.2; margin: 0; }
.mhrf-blurb { margin: 0; font-size: 14px; color: var(--mhrf-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mhrf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mhrf-chip { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--mhrf-chip); color: #4a4a4a; }
@media (max-width: 480px) { .mhrf-go { padding: 10px 14px; } }

/* v0.2.0 (Nov 28 2026): homepage band and /recipes/ inline box */
.mhrf-band { border: 2px solid #111; background: #faf7f2; padding: 24px 28px; margin: 32px 0; }
.mhrf-band .mhrf-h { font-family: inherit; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: 26px; margin: 0 0 6px; }
.mhrf-band .mhrf-sub { margin: 0 0 14px; font-size: 15px; color: #333; }
.mhrf-band .mhrf-row { border-radius: 0; border: 1px solid #111; padding: 0; }
.mhrf-band .mhrf-input { padding: 12px 14px; font-size: 17px; }
.mhrf-band .mhrf-go { border-radius: 0; background: #111; padding: 0 24px; }
.mhrf-chiprow { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.mhrf-chiprow .mhrf-ex { border: 1px solid #111; border-radius: 16px; padding: 4px 12px; background: #fff; font-size: 13px; color: #111; text-decoration: none; }
.mhrf-chiprow .mhrf-ex:hover { background: #111; color: #fff; }
.mhrf-inline { margin: 0; }
.mhrf-inline .mhrf-help { font-size: 13px; line-height: 1.5; margin-top: 8px; color: #444; }
.mhrf-inline .mhrf-help a { color: inherit; text-decoration: underline; }
.mhrf-inline > .mhrf-grid:empty { display: none; }
#mhrf-results:empty { display: none; }
#mhrf-results { margin: 8px 0 32px; }
@media (max-width: 600px) { .mhrf-band { padding: 18px; } .mhrf-band .mhrf-h { font-size: 21px; } .mhrf-band .mhrf-go { padding: 0 14px; } }

/* v0.2.1 (Nov 28 2026): tidy empty space; stack the button on phones */
.mhrf .mhrf-status:empty, .mhrf-band .mhrf-grid:empty { display: none; }
.mhrf-band .mhrf-status { margin: 12px 0 0; }
.mhrf-band .mhrf-grid { margin-top: 16px; }
@media (max-width: 600px) { .mhrf-band .mhrf-row { flex-direction: column; } .mhrf-band .mhrf-go { padding: 12px; } }
