/* The events page (Figma 38-41): the kinds as filters, the next event large, and the rows of coming and
   past events. The page's header is the catalogue's (catalogue-pages/assets/page.css); an open row's
   details are details.css. Logical properties and the brand's tokens. */

.cil-ev *, .cil-ev *::before, .cil-ev *::after { box-sizing: border-box; }
.cil-ev { --ev-ease: cubic-bezier(.4, 0, .2, 1); }
.cil-ev p, .cil-ev h2, .cil-ev h3, .cil-ev dl, .cil-ev dd { margin: 0; }
.cil-ev__body { display: flex; flex-direction: column; gap: 72px; padding-block: 40px 120px; }
.cil-ev__section { display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 90px; }
.cil-ev__section[hidden] { display: none; }
.cil-ev .cil-ev__title { font-size: 32px; }
.cil-ev .cil-ev__title::before { height: 30px; }
.cil-ev__empty { padding: 32px; border: 1px solid var(--cil-black-light-3); border-radius: 20px; background: var(--cil-white); color: var(--cil-black-regular-7); text-align: center; }
.cil-ev__empty[hidden] { display: none; }

/* ---- No event coming (Figma 13623:929 desktop, 13628:764 mobile): "אירועים קרובים" over a box that says so,
   with the ways on -- to the past events, and updates by email (templates/none.php) ---- */
.cil-ev-none { display: flex; flex-direction: column; gap: 20px; }
.cil-ev h2.cil-ev-next__eyebrow { line-height: 1.2; }
.cil-ev-none__box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 32px 48px; border-radius: 24px; background: var(--cil-blue-light-1); text-align: center; }
.cil-ev-none__icon { display: block; width: 32px; height: 32px; }
.cil-ev .cil-ev-none__title { color: var(--cil-black); font-size: 24px; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.cil-ev-none__text { color: var(--cil-black-regular-7); font-size: 16px; line-height: 1.2; text-wrap: pretty; }
.cil-ev-none__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* The events could not be read (templates/failed.php, item 176): the same box, white and framed, its mark on red; the
   retry's arrow turns a little under the pointer. */
.cil-ev-failed__box { border: 1px solid var(--cil-black-light-3); background: var(--cil-white); }
.cil-ev-failed__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 32px; background: var(--cil-red-light-1); color: var(--cil-red-dark); }
.cil-ev .cil-ev-failed__retry svg { flex: none; transition: transform .3s var(--ev-ease); }
.cil-ev .cil-ev-failed__retry:is(:hover, :focus-visible) svg { transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) { .cil-ev .cil-ev-failed__retry svg { transition: none; } }

/* ---- Buttons, links, chips ---- */
.cil-ev .cil-ev-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding-inline: 32px; border: 1px solid var(--cil-black); border-radius: 24px;
    background: var(--cil-white); color: var(--cil-black); font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: transform .2s var(--ev-ease);
}
.cil-ev .cil-ev-btn--primary { border-color: var(--cil-blue-dark-1); background: var(--cil-blue); }
.cil-ev .cil-ev-btn[hidden] { display: none; }
/* No light-blue ring on hover (Oren 2026-10-15, item 65): "להרשמה" draws its outline, "הוספה ליומן" makes room for its
   caret (below); the keyboard gets a focus ring. */
.cil-ev .cil-ev-btn:is(:hover, :focus-visible) { color: var(--cil-black); box-shadow: none; outline: none; }
.cil-ev .cil-ev-btn:focus-visible { outline: 2px solid var(--cil-blue-dark-1); outline-offset: 3px; }
.cil-ev-btn__words { display: block; }
/* Every "להרשמה" -- the next event's "להרשמה למפגש" and each row's (Oren 2026-10-15, items 66, 67): the house
   sweep (design-system/sweep-button.css; item 857 made it shared): a band of light crosses the button once in the
   reading direction, the words step back and an arrow steps forward in after them. The band is the brand blue on
   the white button, white on the filled one. */
.cil-ev .cil-ev-btn--register.cil-ev-btn--primary { --cil-sweep-band: color-mix(in srgb, var(--cil-white) 70%, transparent); }
.cil-ev .cil-ev-btn--register:focus-visible { outline: 2px solid var(--cil-blue-dark-1); outline-offset: 3px; }
.cil-ev .cil-ev-btn--primary:is(:hover, :focus-visible) { background: var(--cil-blue); }
.cil-ev .cil-ev-btn--secondary:is(:hover, :focus-visible) { background: var(--cil-white); }
.cil-ev .cil-ev-btn:active { transform: scale(.98); }
.cil-ev .cil-ev-btn:disabled { cursor: progress; opacity: .7; }
.cil-ev .cil-ev-link { padding: 0; border: 0; background: none; color: var(--cil-blue-dark-1); font: inherit; font-size: 16px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cil-ev .cil-ev-link[hidden] { display: none; }
.cil-ev .cil-ev-link:is(:hover, :focus-visible) { color: var(--cil-blue-dark-1); text-decoration-thickness: 2px; }
/* A link with its mark at the far side of its words: play, download, the map. */
.cil-ev .cil-ev-go { display: inline-flex; flex-direction: row-reverse; align-items: center; justify-content: flex-end; gap: 6px; align-self: flex-start; color: var(--cil-blue-dark-1); font-size: 16px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cil-ev .cil-ev-go img { transition: transform .2s var(--ev-ease); }
.cil-ev .cil-ev-go:is(:hover, :focus-visible) { color: var(--cil-blue-dark-1); text-decoration-thickness: 2px; }
.cil-ev .cil-ev-go:is(:hover, :focus-visible) img { transform: scale(1.15); }

.cil-ev-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cil-ev-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 14px; font-size: 14px; font-weight: 600; line-height: 1.2; }
.cil-ev-chip--type { background: var(--cil-blue-light-1); color: var(--cil-blue-dark-1); }
.cil-ev-chip--type svg { color: var(--cil-blue-dark-1); }
.cil-ev-chip--status { gap: 8px; padding: 6px 14px; border-radius: 20px; background: var(--cil-white); color: var(--cil-blue-dark-1); }
.cil-ev-chip--status img { animation: cil-ev-live 1.6s ease-in-out infinite; }
@keyframes cil-ev-live { 50% { opacity: .35; } }
.cil-ev-chip--past { border: 1px solid var(--cil-black-light-3); color: var(--cil-black-regular-7); }
.is-past .cil-ev-chip--type { background: var(--cil-black-light-2); color: var(--cil-black-regular-7); }

/* ---- Filters ---- */
.cil-ev-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.cil-ev .cil-ev-filter { padding: 8px 18px; border: 1px solid var(--cil-black-light-3); border-radius: 20px; background: var(--cil-white); color: var(--cil-black); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.cil-ev .cil-ev-filter:is(:hover, :focus-visible) { border-color: var(--cil-blue-dark-1); color: var(--cil-black); outline: none; }
.cil-ev .cil-ev-filter.is-on { border-color: var(--cil-blue-dark-1); background: var(--cil-blue-dark-1); color: var(--cil-white); font-weight: 700; animation: cil-ev-press .3s var(--ev-ease); }
@keyframes cil-ev-press { 40% { transform: scale(.94); } }

/* ---- The next event ---- */
.cil-ev-next { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 90px; }
.cil-ev-next[hidden] { display: none; }
.cil-ev-next__eyebrow { color: var(--cil-blue-dark-1); font-size: 14px; font-weight: 600; }
/* Nothing clips the card, so "הוספה ליומן" can open its calendars over what follows; the picture rounds its own corners. */
.cil-ev-next__card { display: flex; border-radius: 24px; background: var(--cil-blue-light-1); }
.cil-ev-next__content { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 36px; }
/* "האירוע הקרוב": the box's own small label, its first line -- held close to the chips under it (Oren 2026-10-15 item 63). */
.cil-ev .cil-ev-next__label { margin-block-end: -8px; color: var(--cil-blue-dark-1); font-size: 14px; font-weight: 700; line-height: 1.2; }
/* The picture fills its side of the card top to bottom, however tall the words make it: the height
   attribute would otherwise hold it at 352px, short of the card's end (height auto lets the row stretch it). Figma
   13612:370 (item 838): the picture 540 of the card's 1420, at least 352 tall. */
.cil-ev-next__image { flex: none; align-self: stretch; width: 38%; height: auto; min-height: 352px; border-start-end-radius: 24px; border-end-end-radius: 24px; object-fit: cover; }
.cil-ev-next__when { color: var(--cil-blue-dark-1); font-size: 18px; font-weight: 700; }
.cil-ev-next__title { color: var(--cil-black); font-size: 32px; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.cil-ev-next__line { color: var(--cil-black-regular-7); font-size: 18px; line-height: 1.25; }
/* The whole of an event's words is on the page; the lines show what fits and "…" says there is more, which the site's
   tooltip shows whole (design-system/cut-tip.js, item 908; until then cut at 18 and 40 words in the template, unreadable). */
.cil-ev-next__line { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 4; }
.cil-ev-next__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.cil-ev-next__meta li { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }

.cil-ev-actions { display: flex; flex-direction: column; gap: 16px; }
.cil-ev-actions__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.cil-ev-done { display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; border: 1px solid var(--cil-green-light-7); border-radius: 12px; background: var(--cil-green-light-1); line-height: 1.3; }
.cil-ev-done[hidden] { display: none; }
.cil-ev-done:not([hidden]) { animation: cil-ev-rise .35s var(--ev-ease); }
.cil-ev-done > span { display: flex; flex-direction: column; gap: 2px; }
.cil-ev-done strong { color: var(--cil-green-regular-10); font-size: 16px; }
.cil-ev-done span span { color: var(--cil-black); font-size: 14px; }
.cil-ev-alert { padding: 10px 14px; border-radius: 10px; background: var(--cil-red-light-1); color: var(--cil-red-regular-5); font-size: 14px; font-weight: 600; }
.cil-ev-alert[hidden] { display: none; }
/* edX not answering (parts.php): the row's own button, greyed and still, the reason in the alert beside it. */
.cil-ev .cil-ev-btn--unavailable { cursor: default; opacity: .5; }
.cil-ev .cil-ev-btn--unavailable::before, .cil-ev .cil-ev-btn--unavailable::after { content: none; }
.cil-ev .cil-ev-btn--unavailable:is(:hover, :focus-visible) .cil-ev-btn__words { inset-inline-end: 0; }
.cil-ev-full { color: var(--cil-black-regular-7); font-size: 14px; font-weight: 600; }
/* A row once registered (Oren 2026-10-15, item 68): "נרשמת" as a green pill with its check, in the button's place and
   in the colours of the details' confirmation box, and "ביטול ההרשמה" beside it. */
.cil-ev-mine {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 12px 16px; border: 1px solid var(--cil-green-light-7); border-radius: 20px;
    background: var(--cil-green-light-1); color: var(--cil-green-regular-10); font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.cil-ev-mine[hidden] { display: none; }
.cil-ev-mine:not([hidden]) { animation: cil-ev-rise .35s var(--ev-ease); }
.cil-ev .cil-ev-link--row { font-size: 14px; white-space: nowrap; }
@keyframes cil-ev-rise { from { opacity: 0; transform: translateY(8px); } }
/* "הוספה ליומן": its calendars drop down over the page under the button (parts.php) -- the button keeps its size, the
   card its height, and the button's neighbours ("ביטול ההרשמה" too) stay centred on its line (Oren 2026-10-15, item 64). */
.cil-ev-actions--long .cil-ev-actions__row { align-items: center; }
/* Its words centred in the button's 48px, not at the top of it -- and across the column where it spans one (an open
   row's details, a phone), under the buttons' centres (Oren 2026-10-15). */
.cil-ev .cil-ev-actions--long .cil-ev-link:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; }
.cil-ev-cal { position: relative; display: flex; }
.cil-ev-cal__ways { position: absolute; z-index: 20; inset-block-start: calc(100% + 8px); inset-inline-start: 0; min-width: 100%; width: max-content;
    box-shadow: 0 12px 32px -8px color-mix(in srgb, var(--cil-black) 22%, transparent), 0 2px 6px color-mix(in srgb, var(--cil-black) 8%, transparent); }
/* Over the button instead, where the events list (which rounds its corners by clipping) would cut them off (events.js). */
.cil-ev-cal.is-up .cil-ev-cal__ways { inset-block-start: auto; inset-block-end: calc(100% + 8px); }
/* Its hover is "show more"'s (design-system/load-more.css): the words step back and a caret drops in beside them; open,
   both stay, the caret turned up. */
/* The words step by their offset, not a transform: a moving transform hands text to the compositor, which draws it
   with plain grey edges for the length of the move and reads as the words changing colour (Oren 2026-10-15). */
.cil-ev-cal__label { position: relative; inset-inline-end: 0; display: block; transition: inset-inline-end .3s cubic-bezier(.22, 1, .36, 1); }
.cil-ev-cal__label::after {
    content: ""; position: absolute; top: 50%; inset-inline-end: -22px; width: 16px; height: 16px; margin-top: -8px; background: currentColor;
    -webkit-mask: url("../../../images/events-page/caret-down.svg") center / contain no-repeat; mask: url("../../../images/events-page/caret-down.svg") center / contain no-repeat;
    opacity: 0; transform: translateY(-9px); transition: opacity .2s cubic-bezier(.22, 1, .36, 1), transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.cil-ev [data-ev-ics]:is(:hover, :focus-visible, [aria-expanded="true"]) .cil-ev-cal__label { inset-inline-end: 11px; }
.cil-ev [data-ev-ics]:is(:hover, :focus-visible, [aria-expanded="true"]) .cil-ev-cal__label::after { opacity: 1; transform: translateY(1px); }
.cil-ev [data-ev-ics][aria-expanded="true"] .cil-ev-cal__label::after { transform: translateY(1px) rotate(180deg); }
.cil-ev-cal__ways { display: flex; flex-direction: column; overflow: hidden; margin: 0; padding: 4px; border: 1px solid var(--cil-black-light-3); border-radius: 16px; background: var(--cil-white); list-style: none; }
.cil-ev-cal__ways[hidden] { display: none; }
.cil-ev-cal__ways:not([hidden]) { animation: cil-ev-rise .25s var(--ev-ease); }
.cil-ev .cil-ev-cal__ways a { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 12px; color: var(--cil-black); font-size: 16px; font-weight: 600; line-height: 1.25; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s ease, background-color .2s ease, color .2s ease; }
/* The option under the pointer: underlined, on the site's menu-option tint (as the course card's menu, card-menu.css). */
.cil-ev .cil-ev-cal__ways a:is(:hover, :focus-visible) { background: var(--cil-blue-light-3); color: var(--cil-black); text-decoration-color: currentColor; outline: none; }
.cil-ev .cil-ev-cal__ways a:focus-visible { box-shadow: inset 0 0 0 2px var(--cil-blue-dark-1); }

/* ---- The rows ---- */
.cil-ev-list { overflow: hidden; margin: 0; padding: 0; border: 1px solid var(--cil-black-light-3); border-radius: 20px; background: var(--cil-white); list-style: none; }
.cil-ev-row { scroll-margin-top: 90px; transition: background-color .3s ease; }
.cil-ev-row[hidden] { display: none; }
.cil-ev-row + .cil-ev-row { border-top: 1px solid var(--cil-black-light-3); }
.cil-ev-row.is-open { background: var(--cil-blue-light-1); }
.cil-ev-row.is-entering { animation: cil-ev-rise .35s var(--ev-ease) backwards; }
.cil-ev-row.is-flash { animation: cil-ev-flash 1.6s ease; }
@keyframes cil-ev-flash { 0%, 30% { background: var(--cil-blue-light-2); } }
.cil-ev-row__main { display: flex; align-items: center; gap: 28px; padding: 24px 28px; }
.cil-ev-tile { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 88px; height: 96px; border-radius: 16px; background: var(--cil-blue-light-1); line-height: 1.2; text-align: center; }
.cil-ev-row.is-open .cil-ev-tile { background: var(--cil-white); }
.cil-ev-tile__day { color: var(--cil-blue-dark-1); font-size: 32px; font-weight: 700; }
.cil-ev-tile__month { color: var(--cil-blue-dark-1); font-size: 14px; font-weight: 700; }
.cil-ev-tile__weekday { color: var(--cil-black-regular-7); font-size: 14px; }
.is-past .cil-ev-tile { background: var(--cil-black-light-2); }
.is-past .cil-ev-tile__day, .is-past .cil-ev-tile__month { color: var(--cil-black-regular-7); }
.is-past .cil-ev-tile__weekday { color: var(--cil-black-regular-5); }
.cil-ev-row__text { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cil-ev-row__title { color: var(--cil-black); font-size: 24px; font-weight: 700; line-height: 1.2; }
.is-past .cil-ev-row__title { color: var(--cil-black-regular-7); }
.cil-ev-row__line { color: var(--cil-black-regular-7); font-size: 16px; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 2; }
.cil-ev-row__facts { color: var(--cil-blue-dark-1); font-size: 14px; font-weight: 600; }
.is-past .cil-ev-row__facts { color: var(--cil-black-regular-7); }
.cil-ev-row__actions { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cil-ev-row__actions .cil-ev-btn { height: 48px; padding-inline: 32px; }
.cil-ev-row__image { flex: none; width: 200px; height: 120px; border-radius: 12px; object-fit: cover; }
.cil-ev .cil-ev-toggle { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--cil-blue-dark-1); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.cil-ev .cil-ev-toggle:is(:hover, :focus-visible) { color: var(--cil-blue-dark-1); text-decoration: underline; text-underline-offset: 3px; outline: none; }
.cil-ev .cil-ev-toggle:focus-visible { outline: 2px solid var(--cil-blue-dark-1); outline-offset: 2px; border-radius: 4px; }
.cil-ev-toggle img { transition: transform .3s var(--ev-ease); }
.cil-ev-toggle[aria-expanded="true"] img { transform: rotate(180deg); }
/* Every row's "פרטים" in one place (Oren 2026-10-15, items 36, 64): the caret after the word, the toggle at the column's
   far end -- left in Hebrew, right in English -- on the line under the button's, which every coming row keeps even with
   no button, so a row without registration puts it where the others do (on a phone: details.css). */
.cil-ev .cil-ev-row .cil-ev-toggle { flex-direction: row; }
.cil-ev-row__actions .cil-ev-actions__row { min-height: 48px; }
/* A long sentence here must wrap, not widen the column the row's title gives way to. */
@media (min-width: 641px) { .cil-ev-row__actions .cil-ev-alert { max-inline-size: 240px; } }
/* Open, the details say it, in their own box; the row's hidden copy keeps no room. */
.cil-ev-row.is-open .cil-ev-row__actions .cil-ev-alert { display: none; }
/* An open row shows its registering once, in the details (Oren 2026-10-15, item 65): the row's own button fades and
   settles back while the details open, and returns the same way as they close; its place is kept, so "פרטים" stays put. */
.cil-ev-row__actions > .cil-ev-actions { transition: opacity .25s ease, transform .3s var(--ev-ease), visibility 0s; }
.cil-ev-row.is-open .cil-ev-row__actions > .cil-ev-actions {
    opacity: 0; transform: scale(.94); visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, transform .25s var(--ev-ease), visibility 0s .25s;
}
@media (min-width: 641px) { .cil-ev .cil-ev-row__actions .cil-ev-toggle { align-self: flex-end; } }

@media (prefers-reduced-motion: reduce) {
    .cil-ev .cil-ev-btn, .cil-ev .cil-ev-filter, .cil-ev-row, .cil-ev-toggle img, .cil-ev .cil-ev-go img, .cil-ev .cil-ev-cal__ways a { transition: none; }
    /* The calendar's words stand aside at once and its caret fades in where it rests. */
    .cil-ev-cal__label, .cil-ev-cal__label::after { transition: opacity .2s ease; }
    .cil-ev [data-ev-ics]:is(:hover, :focus-visible):not([aria-expanded="true"]) .cil-ev-cal__label::after { transform: none; }
    .cil-ev-row__actions > .cil-ev-actions { transition: none; }
    .cil-ev .cil-ev-filter.is-on, .cil-ev-row.is-entering, .cil-ev-row.is-flash, .cil-ev-done:not([hidden]), .cil-ev-mine:not([hidden]), .cil-ev-chip--status img, .cil-ev-cal__ways:not([hidden]) { animation: none; }
}

/* A short window (items 672-673; catalogue-pages/assets/page.css): the head, the filters and the next event's card on
   the first screen. As drawn the card ends at 840.8 (912 before item 838 sized it to Figma 13612:370: padding 36,
   gaps 16, title 32); what gives: the head (70.4), the filters' and the body's room (8, 24), the card's padding (24),
   its gaps (42) and title (9.6). Its picture's least height steps down with it, so
   the words, not the picture, set the card's height. The same card side by side on a short window 1024-1079 wide
   gives way by these formulas too, from its own --ctl-from and --ctl-span (details.css). */
@media (width > 1079px) {
    .cil-ev { --ctl-from: 840.8px; --ctl-span: 178; }
    .cil-ev-next__image { min-height: var(--ev-next-image-least); }
}
@media (width > 1079px), (min-width: 1024px) and (max-height: 1183.98px) {
    .cil-ev { --ev-next-image-least: calc(352px - var(--ctl-give) * 112 / var(--ctl-span, 1)); }
    .cil-ev-filters { padding-top: calc(8px - var(--ctl-give) * 8 / var(--ctl-span, 1)); }
    .cil-ev__body { padding-top: calc(40px - var(--ctl-give) * 24 / var(--ctl-span, 1)); }
    .cil-ev-next__content {
        gap: calc(16px - var(--ctl-give) * 6 / var(--ctl-span, 1));
        padding-block: calc(36px - var(--ctl-give) * 12 / var(--ctl-span, 1));
    }
    .cil-ev-next__title { font-size: calc(32px - var(--ctl-give) * 4 / var(--ctl-span, 1)); }
}
/* Narrower, the words' column wraps to more lines as drawn: the card ends at 862.8 under 1260 wide and at 928.2 under
   1230 (the title a line more; 934 and 1009 before item 838), so the giving starts there; the card reaches the
   window's foot down to about 685 and 750. */
@media (width > 1079px) and (max-width: 1259.98px) {
    .cil-ev { --ctl-from: 862.8px; }
}
@media (width > 1079px) and (max-width: 1229.98px) {
    .cil-ev { --ctl-from: 928.2px; }
}
/* Where the card would still end under the window -- longer words than the Hebrew these formulas were measured on --
   the line under the title, then the title, show the lines next-fit.js counts into the room (item 680). */
.cil-ev-next[data-ev-fit] :is(.cil-ev-next__title, .cil-ev-next__line) { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.cil-ev-next[data-ev-fit] .cil-ev-next__title { -webkit-line-clamp: var(--ev-next-title-lines, none); }
.cil-ev-next[data-ev-fit] .cil-ev-next__line { -webkit-line-clamp: var(--ev-next-line-lines, 4); }
.cil-ev-next[data-ev-fit="no-line"] .cil-ev-next__line { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
