/* סֶמֶךְ — תוספות על המסגרת המשותפת (design.css / style.css) */
/* נגישות (ת"י 5568 / WCAG 2.1 AA): גבול שדות ולשוניות בניגודיות ≥ 3:1 מול הרקע הלבן, וטקסט placeholder בניגודיות ≥ 4.5:1 */
:root { --field-line: #7f8c9b; }
input[type=text], input[type=password], input[type=number], input[type=email], input[type=tel], input[type=url], input[type=date],
input[type=datetime-local], input[type=search], select, textarea, .route-tabs button, .a11y-menu button.opt { border-color: var(--field-line); }
input::placeholder, textarea::placeholder { color: var(--muted); }
.brandlogo { display: block; height: 50px; width: auto; }                 /* הלוגו המלא (סימן + מילה) בסרגל העליון */
.brandmark { display: block; width: 60px; height: 60px; }                 /* הסימן לבדו */
.brandmark.auth-mark { margin-top: 42px; }
@media (max-width: 640px) { .brandlogo { height: 40px; } }
@media (max-width: 1300px) { .sitefoot .inner { padding-inline-start: 56px; } }   /* השם בתחתית לא מתחת ללחצן הנגישות */

.statbar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 14px 22px; margin: 0 0 18px; font-size: .95rem; }
.check-heading { align-items: flex-start; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ממצאים | גבול גריר | מסמך — רוחב חלון הממצאים ב---findings-w (ברירת מחדל חצי), נשמר בדפדפן; המסמך מקבל את השאר */
.check-grid { --findings-w: 50%; display: grid; grid-template-columns: minmax(280px, var(--findings-w)) 20px minmax(320px, 1fr); gap: 0; align-items: stretch; margin-bottom: 20px; }
.check-grid.dragging { cursor: col-resize; user-select: none; }
.check-grid.dragging .card { pointer-events: none; }
.split { position: relative; cursor: col-resize; touch-action: none; border-radius: 4px; }
.split::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--line); }
.split::after { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 40px; margin: -20px 0 0 -4px; border-radius: 4px; background: var(--navy); opacity: .55; }
.split:hover::before, .split:focus-visible::before, .dragging .split::before { background: var(--accent); }
.split:hover::after, .split:focus-visible::after, .dragging .split::after { opacity: 1; }
.check-grid > .card { display: flex; flex-direction: column; min-height: 0; }
.findings-scroll { flex: 1 1 auto; min-height: 220px; max-height: calc(100vh - 340px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.findings { list-style: none; margin: 0; padding: 0; }
.finding { padding: 12px 10px; border-bottom: 1px solid var(--line, #e3e7ec); cursor: pointer; border-inline-start: 4px solid transparent; }
.finding:hover, .finding:focus-visible { background: #f6f8fb; outline: none; }
.finding.current { background: #f1f5fb; border-inline-start-color: var(--accent, #c9a227); }
.f-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: .8rem; color: var(--muted, #667); }
.f-claim { margin: 0 0 6px; font-size: .95rem; line-height: 1.55; }
.f-ev { margin: 6px 0; padding: 6px 12px; border-inline-start: 3px solid var(--line, #d9dee5); background: #fafbfc; font-size: .9rem; line-height: 1.5; color: #333; }
.f-gap { margin: 4px 0 6px; font-size: .9rem; color: #7a3b00; }
.f-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.f-feedback { margin-inline-start: auto; display: inline-flex; gap: 10px; font-size: .8rem; }
.f-feedback .fb { background: none; border: 0; padding: 2px 4px; color: var(--muted, #667); cursor: pointer; font: inherit; font-size: .8rem; text-decoration: underline dotted; }
.f-feedback .fb.on { color: var(--navy, #1f3a5f); font-weight: 700; text-decoration: none; }

.badge.sev.not_found { background: #fbe9e7; color: #8c1d18; }
.badge.sev.mismatch { background: #fff1dc; color: #7a3b00; }
.badge.sev.review { background: #e8eef7; color: #1f3a5f; }
.badge.sev.match { background: #e6f4ea; color: #1e6b3a; }
.findings-pane .quick-heading { flex-wrap: wrap; gap: 10px 16px; }
.findings-pane .quick-heading h2 { white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1 1 100%; }
.chips [data-filter] { cursor: pointer; border: 1px solid transparent; font: inherit; font-size: .8rem; }
.chips [data-filter].active { border-color: var(--navy, #1f3a5f); }
.inline-adder { display: inline-block; margin: 0; }
.inline-adder summary { font-size: .8rem; }

.viewer-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.viewer-head select { max-width: 60%; }
.pager { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; font-size: .85rem; }
.viewer { flex: 1 1 auto; min-height: 320px; max-height: calc(100vh - 340px); overflow: auto; background: #e9ecf0; border: 1px solid var(--line, #e3e7ec); border-radius: 4px; }
.page-wrap { position: relative; width: 100%; }
.page-wrap img { display: block; width: 100%; height: auto; }
#hl { position: absolute; inset: 0; pointer-events: none; }
.hlbox { position: absolute; border: 2px solid rgba(201,162,39,.95); background: rgba(255,214,0,.28); border-radius: 2px; }

.cites-card .tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cites-card .tbl th, .cites-card .tbl td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--line, #e3e7ec); vertical-align: top; }
.cites-card .tbl tr.flag td { background: #fffaf0; }
.doclist { margin: 10px 0; padding-inline-start: 18px; }
.settings-card { max-width: 640px; }
.settings-card .checkline { align-items: center; }                                  /* כל תיבות ההגדרות באותו מראה (כמו שורת ההצהרה) */
.settings-card .checkline input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); }

@media (max-width: 900px) {
  .check-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .split { display: none; }
  .findings-scroll, .viewer { max-height: 60vh; }
  .viewer-head select { max-width: 100%; }
}

/* הסכמה מפורשת בטפסים (הרשמה — לא מסומנת מראש; הגדרות המשרד — הצהרת המשרד, פעילה כברירת מחדל): הקישורים מחוץ ל-label כדי שלחיצה עליהם לא תסמן את התיבה.
   .option — בחירה לכל בדיקה (תוכן פסק הדין) באותו מראה; שורת העזרה שלה מיושרת לטקסט, מתחת לתיבה */
.checkline.consent, .checkline.option { margin-top: 14px; align-items: center; }
.checkline.consent input, .checkline.option input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); }
.checkline.consent label, .checkline.option label { cursor: pointer; }
.auth-form .checkline.consent + .help { margin-top: 8px; }
.checkline.option + .option-help { margin: 2px 28px 0 0; }

/* תחתית העמוד: שורת המותג, קישורי המסמכים המשפטיים ופרטי המפעילה — בכל עמוד */
.sitefoot .inner { flex-direction: column; align-items: flex-start; gap: 6px; }
.sitefoot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.sitefoot nav a[aria-current="page"] { font-weight: 700; text-decoration: none; }
.sitefoot .biz { font-size: .75rem; }

/* המסמכים המשפטיים: עמוד קריאה אחד, גוף הטקסט דו-צדדי, כותרות לימין */
.legal { max-width: 860px; margin: 0 auto 24px; }
.legal-head h1 { color: var(--navy); font-size: 1.9rem; letter-spacing: -.6px; margin: 6px 0 2px; line-height: 1.3; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .875rem; margin: 10px 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.legal-nav a[aria-current="page"] { font-weight: 700; text-decoration: none; color: var(--accent-dark); }
.legal h2 { font-size: 1.125rem; color: var(--navy); margin: 26px 0 8px; text-align: right; }
.legal p, .legal li { text-align: justify; text-align-last: right; line-height: 1.8; }
.legal p.lead { font-size: 1.0625rem; }
.legal ul { padding-inline-start: 22px; margin: 6px 0 10px; }
.legal li { margin-bottom: 6px; }
.legal .tbl { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 8px 0 12px; }
.legal .tbl th, .legal .tbl td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal .tbl th { background: #e8edf2; color: var(--navy); }
.legal-foot { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.biz { font-style: normal; font-size: .875rem; color: var(--muted); }
@media (max-width: 640px) { .legal.card { padding: 20px 16px; } .legal .tbl { font-size: .8125rem; } .legal .tbl th, .legal .tbl td { padding: 6px; } }

/* פריסת תשלומים — מוצגת לפני אישור רכישה בתשלומים (מספר התשלומים, הסכום בכל תשלום, הסכום הכולל) */
.installments { display: grid; gap: 4px; border: 1px solid var(--field-line); border-radius: 8px; padding: 10px 14px; margin: 10px 0; background: #fafbfd; font-size: .9375rem; }

/* בדיקה חדשה — שני מסלולי העלאה (קובץ אחד / קבצים נפרדים): לשוניות שוות רוחב; מה שלא שייך למסלול — מוסתר */
.route-tabs { margin-bottom: 18px; }
.route-tabs button { padding: 11px 12px; font-weight: 600; border-radius: 9px; }
#newForm[data-mode="single"] .only-separate, #newForm[data-mode="separate"] .only-single { display: none !important; }
