/* תורמים ודרגות — כיוון א׳ ("חותמת") מהקנבס https://claude.ai/artifact/PiBaErho2S9mYYWfjwrRTv
   הדרגה היא חותמת עגולה מוטה כמו הלוגו. נטען ב-business.php, contribute.php ו-account.php. */
:root {
  --bronze: #B7804F;
  --silver: #6E7B88;   /* כהה מספיק לטקסט לבן גדול (4.4:1) */
}

/* ⚠️ `display:flex` על fieldset גובר על התכונה hidden — בלי זה הסתרת החלקים לפי סוג לא עבדה. */
.contrib-form [hidden], .contrib-acc [hidden] { display: none !important; }

/* ─── חותמת ─────────────────────────────────────────────────────────── */
.c-stamp {
  flex: none; display: grid; place-items: center; border-radius: 999px;
  width: 74px; height: 74px; border: 3px solid var(--navy-900); background: #fff;
  transform: rotate(-8deg); color: var(--navy-900);
}
.c-stamp > span {
  width: 58px; height: 58px; border-radius: 999px; border: 2px dashed currentColor;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1;
}
.c-stamp-lg { width: 150px; height: 150px; border: 5px solid #fff; color: #fff; }
.c-stamp-lg > span { width: 122px; height: 122px; }
.c-stamp-lg small { font-size: 26px; line-height: .9; }
.c-stamp-lg b { font-size: 54px; line-height: .9; font-weight: 700; }
.c-stamp-bronze { background: var(--bronze); }
.c-stamp-silver { background: var(--silver); }
.c-stamp-gold   { background: var(--gold-400); color: var(--navy-900); }
.c-stamp-none   { background: rgba(255,255,255,.12); border-style: dashed; }
.c-stamp-sm { width: 30px; height: 30px; border-width: 2px; }
.c-stamp-sm > span { width: 22px; height: 22px; border-width: 1px; font-size: 13px; }

/* ─── הכרטיס בדף העסק ───────────────────────────────────────────────── */
.contrib-card {
  background: var(--gold-100); border-radius: 22px; padding: 18px 16px; margin: 16px 0;
  display: flex; gap: 14px; align-items: center;
}
.contrib-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.contrib-card h2 {
  font-family: var(--font-display); font-size: 32px; line-height: .95; color: var(--navy-900); margin: 0;
}
.contrib-card p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-900); }
.contrib-cta {
  align-self: flex-start; margin-top: 4px; background: var(--navy-900); color: #fff; text-decoration: none;
  border-radius: 999px; padding: 8px 18px; min-height: 44px; box-sizing: border-box;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1;
}
.contrib-cta:hover { background: #0e3f68; color: #fff; }
.contrib-more { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 2px; font-size: 14px; }
.contrib-more a { color: var(--gold-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.contrib-line {
  margin: 12px 0; font-size: 14.5px; color: var(--ink-700);
  display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center;
}
.contrib-line a { color: var(--gold-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* "לפי דיווח משתמש" ליד גוף כשרות — בתוך גלולת הנייבי של הגוף (business.css), ולכן זהב בהיר (8:1). */
.mh-byuser {
  display: inline-flex; align-items: center; gap: 6px; flex-basis: 100%;
  font-size: 13px; font-weight: 700; color: var(--gold-400); line-height: 1.3;
}
.mh-byuser .lvl {
  font-size: 12px; font-weight: 800; color: #fff; border-radius: 999px; padding: 1px 8px; background: var(--bronze);
}
.mh-byuser .lvl-silver { background: var(--silver); }
.mh-byuser .lvl-gold { background: var(--gold-400); color: var(--navy-900); }

/* ─── הטופס ────────────────────────────────────────────────────────── */
.contrib-page { max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; }
.contrib-page h1 { font-size: clamp(40px, 9vw, 54px); color: var(--navy-900); margin-bottom: 4px; }
.contrib-page .sub { color: var(--ink-500); margin: 0 0 18px; font-size: 15.5px; }
.contrib-form { background: #fff; border-radius: 26px; padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--line); }
.contrib-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.contrib-form legend, .contrib-form .lbl { font-weight: 700; font-size: 15.5px; padding: 0; margin-bottom: 8px; color: var(--ink-900); }
.c-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.c-chip { position: relative; }
.c-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.c-chip span {
  display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 8px 14px;
  border-radius: 999px; border: 2px solid #C9D3DC; background: #fff; color: var(--navy-900);
  font-weight: 700; font-size: 14.5px; line-height: 1.2; cursor: pointer;
}
.c-chip.dash span { border-style: dashed; color: var(--ink-500); }
.c-chip input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.c-chip input:focus-visible + span { outline: 3px solid var(--teal-600); outline-offset: 2px; }
.c-photo {
  border: 2px dashed var(--navy-900); border-radius: 22px; background: var(--gold-100); min-height: 150px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--navy-900); cursor: pointer; padding: 16px; text-align: center; position: relative;
}
.c-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.c-photo:focus-within { outline: 3px solid var(--teal-600); outline-offset: 2px; }
.c-photo strong { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; }
.c-photo small { font-size: 13.5px; color: var(--gold-text); }
.c-photo .c-stamp { width: 64px; height: 64px; }
.c-photo img { max-width: 100%; max-height: 220px; border-radius: 12px; display: block; }
.c-photo-name { font-size: 13.5px; color: var(--ink-700); font-weight: 600; word-break: break-all; }
.c-hint { font-size: 13.5px; color: var(--ink-500); margin: 0; }
.c-review { background: #F0FAFB; border-radius: 16px; padding: 12px 14px; font-size: 14.5px; line-height: 1.45; color: #045C69; margin: 0; }
.c-submit {
  font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; border: 0;
  border-radius: 999px; background: var(--gold-400); color: var(--navy-900); min-height: 56px; cursor: pointer; width: 100%;
}
.c-submit:hover { background: #d6a85c; }
.contrib-form .input, .contrib-form textarea { width: 100%; box-sizing: border-box; }
.c-sent { text-align: center; background: #fff; border-radius: 26px; padding: 28px 18px; border: 1px solid var(--line); }
.c-sent .c-stamp { margin: 0 auto 12px; width: 96px; height: 96px; }
.c-sent .c-stamp > span { width: 76px; height: 76px; }
.c-sent h2 { font-size: 40px; margin-bottom: 8px; }

/* ─── אזור החשבון ───────────────────────────────────────────────────── */
.contrib-acc { margin-top: 24px; border-radius: 26px; overflow: hidden; background: #E9EFF4; border: 1px solid var(--line); }
.contrib-hero {
  background: var(--teal-600); color: #fff; padding: 22px 18px 28px; border-radius: 0 0 34px 34px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.contrib-hero h2 { color: #fff; font-size: 34px; margin: 0; }
.contrib-hero .nick { font-size: 14.5px; font-weight: 700; opacity: .92; }
.contrib-hero .cnt { font-size: 15.5px; font-weight: 600; }
.contrib-acc-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.c-box { background: #fff; border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.c-box > strong { font-size: 15.5px; }
.c-ladder { display: flex; align-items: center; gap: 8px; }
.c-rung { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.c-rung i { width: 48px; height: 48px; border-radius: 999px; display: block; border: 3px dashed #C9D3DC; background: #fff; }
.c-rung.on i { border: 3px solid var(--navy-900); }
.c-rung.on.bronze i { background: var(--bronze); }
.c-rung.on.silver i { background: var(--silver); }
.c-rung.on.gold i { background: var(--gold-400); }
.c-rung span { font-size: 13px; font-weight: 700; color: var(--ink-500); }
.c-rung.on span { color: var(--ink-900); }
.c-link { flex: 1; height: 3px; background: repeating-linear-gradient(90deg, #C9D3DC 0 6px, transparent 6px 12px); }
.c-link.on { background: repeating-linear-gradient(90deg, var(--navy-900) 0 6px, transparent 6px 12px); }
.c-switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.c-switch input[type=checkbox] {
  appearance: none; -webkit-appearance: none; flex: none; width: 52px; height: 32px; border-radius: 999px;
  background: #C9D3DC; position: relative; cursor: pointer; margin: 0;
}
.c-switch input[type=checkbox]::after {
  content: ""; position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 999px;
  background: #fff; transition: right .15s, left .15s;
}
.c-switch input[type=checkbox]:checked { background: var(--teal-600); }
.c-switch input[type=checkbox]:checked::after { right: 24px; }
.c-switch input:focus-visible { outline: 3px solid var(--teal-600); outline-offset: 2px; }
[dir=ltr] .c-switch input[type=checkbox]::after { right: auto; left: 4px; }
[dir=ltr] .c-switch input[type=checkbox]:checked::after { left: 24px; }
.c-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.c-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; align-items: baseline; }
.c-list li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.c-st { font-weight: 700; flex: none; }
.c-st-approved { color: #1E7A4F; }
.c-st-pending { color: #966110; }
.c-st-rejected { color: var(--ink-500); }

@media (max-width: 420px) {
  .contrib-card { align-items: flex-start; }
  .contrib-card .c-stamp { width: 60px; height: 60px; }
  .contrib-card .c-stamp > span { width: 46px; height: 46px; font-size: 24px; }
  .c-rung i { width: 40px; height: 40px; }
}
