/* v29i.css — SPEC-v2.9 §3 ("🔗 ייבוא מתכון מהאינטרנט", צבי): the menu page's "🔗 ייבוא מתכון" next
   to "+ מנה חדשה", the import sheet (a link + "ייבוא", "קורא את המתכון…", what went wrong, the
   recipe's text pasted + "קריאת הטקסט") and the "✨ המנה מולאה מהמתכון" line at the top of the
   "מנה חדשה" editor it fills (ui/menus.js).
   Like v26b.css / v27b.css / v28.css: built only from the app's shared variables (style.css), which
   theme-clean.css points at its own tokens (--rule / --ink / --ink-soft / --font …), so the fridge
   look (default, where the recipe card and the sheets stay light paper objects even in dark mode)
   and html[data-theme="clean"] (light and dark) both follow it; the few clean-only rules below just
   swap a fridge object for its flat twin.
   Every font-size follows the text-size slider (var(--ts) / var(--ts2)); every tap target >= 44px. */

/* ---------------- the menu page: "+ מנה חדשה" and "🔗 ייבוא מתכון" side by side ---------------- */
/* one row on a phone (360px); with a bigger text each takes a row of its own */
.ri-foot { display: flex; flex-wrap: wrap; gap: 0 10px; }
.ri-foot .btn { flex: 1 1 calc(128px * var(--ts)); min-width: 0; padding-inline: 10px; }
.ri-foot .ri-open { font-size: calc(16.5px * var(--ts)); }

/* ---------------- the sheet ---------------- */
.ri-help { margin: 2px 2px 0; font-size: calc(15px * var(--ts)); line-height: 1.45; }
/* the link and "ייבוא" on one line (the link is written left to right: dir="ltr") */
.ri-row { display: flex; align-items: stretch; gap: 8px; }
.ri-row .input { flex: 1; min-width: 0; }
.ri-row .ri-go { flex: none; width: auto; min-height: 50px; margin-top: 0; padding: 8px 18px; }
/* "קורא את המתכון…" */
.ri-busy {
  justify-content: flex-start; margin: 10px 2px 0;
  font-size: calc(15px * var(--ts)); color: var(--ink-soft);
}
/* what went wrong: a red-edged note, right above the place to fix it */
.ri-err {
  margin: 10px 0 0; padding: 9px 12px; border-radius: 10px;
  border: 1.5px solid rgba(224, 57, 62, 0.45); background: rgba(224, 57, 62, 0.07);
  font: 700 calc(15px * var(--ts))/1.4 var(--font); color: #B8232A;
  overflow-wrap: anywhere;
}
/* "או להדביק כאן…": a dashed line between the two ways */
.ri-or { margin-top: 20px; border-top: 2px dashed var(--rule); }
.ri-or .field-label { margin-top: 16px; }
.ri-or .ri-err { margin-top: 8px; }
.ri-text { min-height: calc(150px * var(--ts2)); }

/* ---------------- the "מנה חדשה" editor, filled from a recipe ---------------- */
.ri-hint {
  margin: 2px 0 8px; padding: 8px 12px; border-radius: 10px;
  background: rgba(36, 86, 201, 0.07); color: var(--ink);
  font-weight: 600; line-height: 1.4;
}
/* the "📖 מתוך …" line follows it closely */
.ri-hint + .src-line { margin-top: 0; }

/* ---------------- the clean look ("לבן ולימון") ---------------- */
/* no red paper edge or blue wash there: grey tags, the danger colour of the look for the text */
html[data-theme="clean"] .ri-err { border: 0; background: var(--c-fill); color: var(--c-danger); font-family: var(--c-sans); font-weight: 600; }
html[data-theme="clean"] .ri-or { border-top: 1px solid var(--c-line); }
html[data-theme="clean"] .ri-hint { background: var(--c-fill); color: var(--c-ink); font-family: var(--c-sans); font-weight: 500; }
