/*
 * דף חברה ציבורי בסגנון מודעה. --brand הוא צבע החברה, --accent צבע ההדגשה שלה (למשל זהב).
 * הכותרת העליונה תמיד כהה (נייבי), עם זוהר בצבע החברה.
 */
:root { --accent: var(--brand-strong); --accent-fg: #ffffff; --hero-a: #06182c; --hero-b: #0b2a4a; }

main.orgpage { max-width: none; margin: 0; padding: 0; }
.hero { position: relative; overflow: hidden; color: #fff; padding: 40px 20px 36px;
  background:
    radial-gradient(560px 280px at 6% 0%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%),
    radial-gradient(460px 340px at 0% 100%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%),
    linear-gradient(110deg, var(--hero-a), var(--hero-b)); }
.hero .inner { max-width: 1080px; margin: 0 auto; position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); column-gap: 40px; }
.hero .inner > * { grid-column: 1; }
.hero .inner > .herofacts { grid-column: 2; grid-row: 1 / span 6; align-self: center; }
.herofacts { margin: 0; padding: 18px 22px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; background: rgba(255, 255, 255, .07); display: grid; gap: 12px; }
.herofacts div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: baseline; }
.herofacts dt { color: #b9d3dd; font-size: var(--fs-sm); } .herofacts dd { margin: 0; font-weight: 700; font-size: var(--fs-md); }
@media (max-width: 880px) { .hero .inner { display: block; } .herofacts { margin-top: 24px; } }
.hero .org { display: flex; align-items: center; gap: 12px; font-weight: 500; color: #dbeaf0; }
.hero .org .mark { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.hero .org img.mark.logo { width: 56px; height: 56px; background: #fff; border-color: transparent; padding: 4px; }
.hero h1 { color: #fff; font-size: clamp(2.125rem, 6vw, 3rem); font-weight: 700; line-height: 1.08; margin: 22px 0 0; }
.hero h1 em { display: block; font-style: normal; color: var(--brand-ink-dark, color-mix(in srgb, var(--brand) 60%, #fff)); }
/* קו המותג מתחת לכותרת: בגוון הבהיר של המותג, שנראה על הרקע הכהה */
.hero .rule { width: 64px; height: 3px; border-radius: 2px; background: var(--brand-ink-dark, color-mix(in srgb, var(--brand) 70%, #fff)); margin: 16px 0 18px; }
.hero .tag { font-size: clamp(1.2rem, 3.2vw, 1.7rem); font-weight: 700; margin: 0 0 6px; }
.hero .intro { font-size: var(--fs-lg); margin: 0; max-width: 62ch; color: #e6f1f5; }
.hero .actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
a.btn.cta, a.btn.cta:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 700; padding: 10px 24px; }
a.btn.cta:hover { filter: brightness(1.07); }
.hero button.ghost, .hero button.ghost:not([disabled]):hover { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.hero button.ghost:not([disabled]):hover { background: rgba(255, 255, 255, .12); }
.hero :focus-visible { outline-color: #fff; }

.orgbody { max-width: 1080px; margin: 0 auto; padding: 24px 16px 32px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.orgbody aside { position: sticky; top: 16px; }
.orgbody aside .card { border-top: 4px solid var(--accent); margin-bottom: 0; }
.orgbody aside input, .orgbody aside .pwrow { max-width: none; } .orgbody aside button[type=submit] { width: 100%; padding: 11px; }
/* במסך צר הכניסה באה אחרי פרטי הקורס, באותו סדר שבו היא מופיעה במבנה הדף. הכפתור "כבר רשומים?" בראש הדף מקפיץ אליה */
@media (max-width: 880px) { .orgbody { grid-template-columns: minmax(0, 1fr); } .orgbody aside { position: static; } }

.poster .ptitle { font-size: var(--fs-xl); font-weight: 700; margin: 0 0 12px; } .poster .ptitle em { font-style: normal; color: var(--brand-ink); }
.format { display: flex; gap: 14px; align-items: center; }
.format strong { font-size: var(--fs-xl); font-weight: 700; display: block; line-height: 1.3; } .format p { margin: 2px 0 0; color: var(--muted); }

.ic { display: inline-block; flex: none; width: 38px; height: 38px; background: var(--accent); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ic.sm { width: 26px; height: 26px; background: var(--brand-ink); margin-top: 2px; }
.ic-bulb { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.6 10.8c.7.5 1.1 1.3 1.1 2.1V16h5v-.1c0-.8.4-1.6 1.1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.ic-cal { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M4 11h16'/%3E%3C/svg%3E"); }
.ic-pin { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6-5.3-6-10a6 6 0 1 1 12 0c0 4.7-6 10-6 10z'/%3E%3Ccircle cx='12' cy='11' r='2.2'/%3E%3C/svg%3E"); }
.ic-coins { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='7' rx='7' ry='3'/%3E%3Cpath d='M5 7v5c0 1.7 3.1 3 7 3s7-1.3 7-3V7M5 12v5c0 1.7 3.1 3 7 3s7-1.3 7-3v-5'/%3E%3C/svg%3E"); }

.rule-title { display: flex; align-items: center; gap: 14px; font-size: var(--fs-xl); font-weight: 700; margin: 22px 0 14px; text-align: center; }
/* כותרת בלי קווי קישוט; שורה דקה מתחת בלבד */
.rule-title { justify-content: center; }

.sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.session { display: grid; grid-template-columns: 78px minmax(0, 1fr) minmax(120px, 180px); align-items: stretch; background: var(--brand-soft); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.session .num { display: flex; align-items: center; justify-content: center; font-size: var(--fs-2xl); font-weight: 700; color: color-mix(in srgb, var(--accent) 60%, #fff); background: var(--hero-a); }
.session .body { padding: 12px 16px; }
.session .body strong { font-size: var(--fs-lg); font-weight: 700; display: block; } .session .body p { margin: 2px 0 0; }
.session .when { margin-top: 6px; font-size: var(--fs-sm); color: var(--muted); }
.session .outcome { display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 10px 12px; background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--fg); border-inline-start: 3px solid var(--accent); font-weight: 700; line-height: 1.35; }
.session .outcome span { font-weight: 500; font-size: var(--fs-sm); }
@media (max-width: 640px) {
  .session { grid-template-columns: 56px minmax(0, 1fr); } .session .num { font-size: 1.45rem; }
  .session .outcome { grid-column: 1 / -1; flex-direction: row; gap: 6px; justify-content: flex-start; text-align: start; padding: 8px 14px; }
}

.facts { display: grid; gap: 12px; margin: 20px 0 4px; }
.fact { display: flex; gap: 12px; align-items: flex-start; } .fact strong { display: block; font-size: var(--fs-lg); font-weight: 700; }
.fact.place { background: var(--brand-soft); border-radius: 8px; padding: 8px 12px; align-items: center; } .fact.place strong { color: var(--brand-ink); } .fact.place .ic { margin-top: 0; }
.dates { list-style: none; margin: 2px 0 0; padding: 0; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 0; padding: 0; list-style: none; }
.chips li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 14px; font-weight: 500; background: var(--card); }
.chips li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.poster .register { margin-top: 20px; }

/* פעולה ראשית אחת: כשיש כפתור הרשמה בראש הדף, כפתור הכניסה בעמודה הצדדית משני */
/* כפתור הכניסה מלא: זו הפעולה העיקרית של מי שכבר תלמיד */

/* סבב שופטים 8 */
@media (prefers-color-scheme: dark) {
  .session .outcome { background: color-mix(in srgb, var(--accent) 8%, var(--subtle)); }
}
.hero .tag { font-size: var(--fs-xl); } @media (min-width: 900px) { .hero .tag { font-size: var(--fs-2xl-m); } }
@media (max-width: 640px) { .session .num { font-size: var(--fs-xl); } }
.herofacts { border-radius: var(--radius); }
.orgpage .powered { margin-top: var(--s3); }

.poster .pcover { border-radius: var(--radius-btn); margin-bottom: var(--s4); }

/* טלפון: מפגש בעמודה אחת (מספר, תוכן, תוצאה זה מתחת לזה) */
@media (max-width: 600px) {
  .session { grid-template-columns: 1fr; }
  .session .num { justify-content: flex-start; padding: 8px 16px; font-size: var(--fs-lg); }
  .session .outcome { grid-column: auto; }
}

/* בלי קורסים בדף: כרטיס הכניסה לבד, במרכז, עולה לתוך ראש הדף (בלי עמודה ריקה) */
.orgbody.solo { grid-template-columns: minmax(0, 440px); justify-content: center; padding-top: 0; }
.orgbody.solo aside { position: static; margin-top: -32px; }
.orgbody.solo aside .card { box-shadow: 0 18px 40px rgba(6, 24, 44, .14); }
.hero:has(+ .orgbody.solo) { padding-bottom: 72px; }
main.orgpage:has(.orgbody.solo) .hero .inner { text-align: center; display: block; max-width: 760px; }
main.orgpage:has(.orgbody.solo) .hero .org { justify-content: center; }
main.orgpage:has(.orgbody.solo) .hero .rule { margin-inline: auto; }
main.orgpage:has(.orgbody.solo) .hero .intro { margin-inline: auto; }
/* במחשב כרטיס הכניסה כבר גלוי בצד: אין צורך בכפתור שקופץ אליו */
@media (min-width: 881px) { .hero button.tologin { display: none; } }
.orgbody.solo aside { position: relative; z-index: 2; }
