/*
 * מנוע חדשות מודיעין — styles for markup the plugin itself outputs.
 * Uses the child theme's design tokens when present, with fallbacks so the
 * plugin's forms, notices and the emergency banner stay usable under any theme.
 * Logical properties throughout (RTL site).
 */

/* ---------- Emergency banner: must be unmistakable under any theme ---------- */
.hm-emergency{background:#9F1D14;color:#fff;border-block-end:3px solid #6E120C}
.hm-emergency-in{max-width:1240px;margin-inline:auto;padding:12px 16px;display:grid;gap:4px}
.hm-emergency-note{font-size:1.05rem;font-weight:800;line-height:1.4}
.hm-emergency-official{margin:0;font-size:.86rem;line-height:1.5;color:#FDE9E7}
.hm-emergency-links{margin:0;font-size:.86rem}
.hm-emergency-links a{color:#fff;text-decoration:underline;font-weight:700}
.hm-emergency-links a:focus-visible{outline:2px solid #fff;outline-offset:2px}
.hm-emergency-since{color:#FDE9E7}

/* ---------- Notices ---------- */
.hm-notice,.hm-nl-notice{
  margin-block:12px;padding:12px 14px;border-radius:8px;font-size:.92rem;line-height:1.5;
  border:1px solid var(--line,#DFDACE);background:var(--stone-2,#F5F2EA);color:var(--ink,#14201A)
}
.hm-notice-ok,.hm-notice-ok-nologo,.hm-nl-ok{border-color:var(--brand,#0E6B4E);background:var(--brand-soft,#E3F0EA)}
.hm-notice-error,.hm-nl-error{border-color:var(--signal,#B8372A);background:var(--signal-soft,#FBEAE7)}

/* ---------- Forms (business submit, claim) ---------- */
.hm-form,.hm-biz-submit,.hm-claim{display:grid;gap:14px;max-width:640px}
.hm-field{display:grid;gap:5px;margin:0}
.hm-field label{font-weight:700;font-size:.9rem;color:var(--ink,#14201A)}
.hm-field input:not([type=checkbox]):not([type=radio]),
.hm-field select,.hm-field textarea{
  width:100%;max-width:100%;padding:10px 12px;border-radius:8px;font:inherit;font-size:.95rem;
  border:1px solid var(--line,#DFDACE);background:var(--surface,#fff);color:var(--ink,#14201A)
}
.hm-field input[type=email],.hm-field input[type=tel],.hm-field input[type=url]{direction:ltr;text-align:end}
.hm-field input:focus-visible,.hm-field select:focus-visible,.hm-field textarea:focus-visible{
  outline:2px solid var(--brand,#0E6B4E);outline-offset:1px
}
.hm-field small,.hm-field .description{color:var(--muted,#626F68);font-size:.8rem}
.hm-tier-choice{border:0;padding:0;margin:0;display:grid;gap:8px}
.hm-tier-choice legend{font-weight:700;margin-block-end:6px}
.hm-tier-choice label{display:flex;gap:10px;align-items:flex-start;cursor:pointer}
.hm-price-vat,.hm-sub-price{font-size:.8rem;color:var(--muted,#626F68)}
.hm-form button[type=submit],.hm-biz-submit button[type=submit],.hm-claim button[type=submit]{
  justify-self:start;background:var(--ink,#14201A);color:var(--paper,#FBFAF6);border:0;border-radius:8px;
  padding:11px 20px;font:inherit;font-weight:700;cursor:pointer
}

/* ---------- Business single ---------- */
.hm-biz-single{display:grid;gap:14px;margin-block:18px}
.hm-block{border:1px solid var(--line,#DFDACE);border-radius:10px;padding:14px 16px;background:var(--surface,#fff)}
.hm-contact,.hm-address,.hm-hours{display:grid;gap:4px;font-size:.93rem}
.hm-contact a{font-weight:700;color:var(--brand-ink,#0A5039)}
.hm-chip{display:inline-flex;align-items:center;gap:5px;font-size:.75rem;font-weight:700;padding:2px 8px;border-radius:99px;background:var(--stone,#EFEBE1)}
.hm-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:currentColor}
.hm-sub-status,.hm-sub-renews{font-size:.8rem;color:var(--muted,#626F68)}
.hm-report{font-size:.85rem}

/* ---------- Business index wrapper ---------- */
.hm-biz-index{display:block}

/* ---------- Neighbourhood landing pages ---------- */
.hm-hood-page{display:grid;gap:26px;margin-block:10px 26px}
.hm-hood-intro{font-size:1.05rem;line-height:1.6;max-width:65ch;color:var(--body,#3A4741)}
.hm-hood-news,.hm-hood-biz,.hm-hood-events,.hm-hood-realestate,.hm-hood-deals{display:grid;gap:12px}

/* ---------- Ad inner (reservation CSS is printed inline by HM_Ads) ---------- */
.hm-ad__inner{width:100%}

@media (max-width:640px){
  .hm-form button[type=submit],.hm-biz-submit button[type=submit],.hm-claim button[type=submit]{justify-self:stretch}
}
