/* המדורים הקצרים: MOMENTS (סטורי) ו-QUICKS (כרטיס צבעוני). נטען רק בעמודי המדורים. */

.cs-nav__short { letter-spacing: .1em; font-weight: 700; }

/* ── משותף ── */
.cs-sb { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font: inherit; transition: transform .15s; }
.cs-sb:hover { transform: scale(1.08); }
.cs-sb--like { width: auto; min-width: 52px; gap: 6px; border-radius: 26px; }
.cs-sb--like .cs-i { stroke: var(--heart, var(--red)); }
.cs-sb--like[aria-pressed="true"] .cs-i { fill: var(--heart, var(--red)); }
.cs-sb__n { font-size: 15px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.cs-sb--like:has(.cs-sb__n:not([hidden])) { padding-inline: 14px; }
.cs-go { flex: 1; min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; text-align: center; border-radius: 999px; font-weight: 800; font-size: 16px; line-height: 1.2; }
.cs-arw { position: absolute; top: 50%; z-index: 5; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; padding: 0; cursor: pointer; display: none; align-items: center; justify-content: center; }
.cs-arw[disabled] { opacity: .3; cursor: default; }
.cs-arw--next { left: 16px; border: 0; background: #fff; color: var(--paper-ink); }
.cs-arw--prev { right: 16px; border: 1.5px solid rgba(255,255,255,.5); background: rgba(11,10,9,.55); color: #fff; }

/* ── MOMENTS ── */
.cs-mo { position: relative; height: 100svh; min-height: 560px; background: #0b0a09; color: #fff; overflow: hidden; }
.cs-mo__track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.cs-mo__track::-webkit-scrollbar { display: none; }
.cs-mo__slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
.cs-mo__bg { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); max-width: none; object-fit: cover; filter: blur(30px) brightness(.42) saturate(1.3); }
.cs-mo__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,10,9,.55) 0%, rgba(11,10,9,0) 22%, rgba(11,10,9,0) 48%, rgba(11,10,9,.92) 82%, #0b0a09 100%); }
.cs-mo__in { position: relative; height: 100%; display: flex; flex-direction: column; padding-top: 30px; overflow-y: auto; scrollbar-width: none; }
.cs-mo__in::-webkit-scrollbar { display: none; }

.cs-mo__bars { position: absolute; z-index: 4; top: 14px; inset-inline: 14px; display: flex; gap: 4px; }
.cs-mo__bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); }
.cs-mo__bars .is-done { background: #fff; }
.cs-mo__bars .is-on { background: var(--yel); }

.cs-mo__top { display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.cs-mo__top .cs-bdg { width: 38px; height: 38px; background: var(--yel); color: var(--paper-ink); box-shadow: 0 0 0 2px #0b0a09, 0 0 0 4px var(--yel); }
.cs-mo__brand { flex: 1; display: flex; flex-direction: column; line-height: 1.2; font-weight: 800; font-size: 15px; }
.cs-mo__name { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--yel); }
.cs-mo__close, .cs-mo__close:hover { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #fff; }

.cs-mo__stage { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cs-mo__pic { position: relative; flex: none; margin-top: clamp(8px, 3svh, 36px); text-align: center; }
.cs-mo__year { display: block; font-size: min(38vw, 21svh); font-weight: 900; line-height: 1; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 2px rgba(245,185,21,.9); }
.cs-mo__img { position: relative; display: block; width: 100%; height: auto; max-height: 32svh; margin-top: -.42em; font-size: min(38vw, 21svh); object-fit: cover; box-shadow: 0 24px 50px rgba(0,0,0,.6); }
.cs-mo__txt { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 18px; }
.cs-mo__txt h2 { font-size: clamp(25px, 7.6vw, 31px); font-weight: 900; line-height: 1.12; padding-inline-end: 62px; text-wrap: balance; }
.cs-mo__p { font-size: 17px; line-height: 1.5; color: #e9e2d3; padding-inline-end: 62px; }
.cs-mo__chips { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 600; padding-inline-end: 62px; }
.cs-mo__chips li { padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.16); }
.cs-mo__credit { font-size: 12px; color: #c9c1b0; padding-inline-end: 62px; }
.cs-mo__acts { margin-top: auto; padding-top: 8px; display: flex; align-items: flex-end; gap: 10px; }
.cs-mo .cs-go, .cs-mo .cs-go:hover { background: var(--yel); color: var(--paper-ink); }
.cs-mo__rail { position: absolute; inset-inline-end: 14px; bottom: 96px; display: flex; flex-direction: column; gap: 12px; }
.cs-mo .cs-sb { width: 50px; height: 50px; background: rgba(255,255,255,.16); color: #fff; }
.cs-mo .cs-sb--like { --heart: var(--red-t); min-width: 0; flex-direction: column; gap: 4px; }
.cs-mo .cs-sb--like:has(.cs-sb__n:not([hidden])) { height: auto; padding: 10px 0 9px; }
.cs-mo .cs-sb__n { font-size: 13px; }
.cs-mo__foot { position: absolute; z-index: 4; inset-inline: 0; bottom: 0; pointer-events: none; }
.cs-mo__thumbs { display: none; }
.cs-mo__hint { display: none; }

/* ── QUICKS ── */
.cs-qk { position: relative; background: var(--bg); padding-bottom: 14px; }
.cs-qk__track { display: flex; flex-direction: column; gap: 14px; }
.cs-qk__card { --c: var(--yel); --k: var(--paper-ink); position: relative; min-height: calc(100svh - 102px); padding: 16px 22px 22px; display: flex; flex-direction: column; background: var(--c); color: var(--k); border-radius: 30px; scroll-margin-top: 0; overflow: hidden; }
.cs-qk__card:first-child { border-start-start-radius: 0; border-start-end-radius: 0; }
.cs-qk__card:nth-child(3n+2) { --c: var(--red); --k: #fff; }
.cs-qk__card:nth-child(3n) { --c: var(--paper); }
.cs-qk__top { display: flex; align-items: center; gap: 12px; }
.cs-qk__name { font-size: 24px; font-weight: 900; letter-spacing: .08em; margin-inline-end: auto; }
.cs-qk__dots { display: flex; gap: 5px; }
.cs-qk__dots i { width: 8px; height: 8px; border-radius: 4px; background: currentColor; opacity: .3; }
.cs-qk__dots .is-on { width: 22px; opacity: 1; }
.cs-qk__close, .cs-qk__close:hover { width: 44px; height: 44px; margin-inline-end: -10px; display: flex; align-items: center; justify-content: center; color: var(--k); }
.cs-qk__pic { position: relative; flex: none; width: 78%; margin: 10px auto 0; transform: rotate(-1.5deg); }
.cs-qk__pic img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border: 5px solid var(--paper-ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--paper-ink); }
.cs-qk__pic figcaption { position: absolute; bottom: 12px; left: 12px; background: var(--paper-ink); color: #f6f1e6; font-size: 11px; font-weight: 700; line-height: 1.5; padding: 3px 9px; border-radius: 999px; }
.cs-qk__body { margin-top: 24px; }
.cs-qk__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; line-height: 1.5; }
.cs-qk__yr { background: var(--paper-ink); color: #f6f1e6; padding: 4px 10px; border-radius: 999px; }
.cs-qk__sub { border: 2px solid currentColor; padding: 2px 10px; border-radius: 999px; }
.cs-qk__body h2 { margin-top: 12px; font-size: clamp(34px, 11.2vw, 44px); font-weight: 900; line-height: 1; letter-spacing: -.01em; text-wrap: balance; }
.cs-qk__card.is-xlong .cs-qk__body h2 { font-size: clamp(26px, 8vw, 32px); line-height: 1.08; }
.cs-qk__body p { margin-top: 14px; font-size: 18px; font-weight: 500; line-height: 1.45; }
.cs-qk__body .cs-qk__credit, .cs-qk__card.is-long .cs-qk__body .cs-qk__credit { margin-top: 10px; font-size: 13px; font-weight: 600; line-height: 1.4; opacity: .8; }
.cs-qk__acts { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 10px; }
.cs-qk .cs-go { flex: none; min-height: 50px; }
.cs-qk .cs-go, .cs-qk .cs-go:hover { background: var(--paper-ink); color: #f6f1e6; }
.cs-qk .cs-sb { width: 50px; height: 50px; border: 2.5px solid currentColor; background: transparent; color: var(--k); }
.cs-qk .cs-sb--like { width: auto; min-width: 50px; background: #f6f1e6; color: var(--paper-ink); border-color: var(--paper-ink); }
.cs-qk :focus-visible, .cs-qk__card:focus-visible { outline-color: var(--paper-ink); }

/* בטלפון הכותרת העליונה של האתר מוסתרת: האייטם ממלא את המסך, והיציאה היא ב-X */
@media (max-width: 899px) {
  .post-type-archive-rega .cs-head, .post-type-archive-katzar .cs-head { display: none; }
  html:has(.cs-qk) { scroll-snap-type: y proximity; }
  .cs-qk__card { scroll-snap-align: start; }
}

/* ── מחשב ── */
@media (min-width: 900px) {
  .cs-arw { display: inline-flex; }

  .cs-mo { height: calc(100svh - var(--head-h, 82px)); min-height: 640px; }
  .cs-mo__bars { top: 10px; inset-inline: max(96px, calc(50% - 544px)); gap: 6px; }
  .cs-mo__bars span { height: 4px; }
  .cs-mo__top { display: none; }
  .cs-mo__in { padding: 30px 96px 110px; justify-content: center; }
  .cs-mo__stage { flex: none; flex-direction: row-reverse; align-items: flex-end; justify-content: center; gap: 48px; width: 100%; max-width: 1088px; margin-inline: auto; }
  .cs-mo__pic { flex: 1 1 0; min-width: 0; max-width: 720px; margin-top: 0; }
  .cs-mo__year { font-size: clamp(120px, min(20vw, 30svh), 264px); -webkit-text-stroke-width: 3px; }
  .cs-mo__img { font-size: clamp(120px, min(20vw, 30svh), 264px); margin-top: -.5em; aspect-ratio: 720 / 456; max-height: 52svh; box-shadow: 0 30px 70px rgba(0,0,0,.65); }
  .cs-mo__txt { flex: 0 0 320px; align-self: stretch; justify-content: flex-end; gap: 14px; padding: 0; }
  .cs-mo__txt h2 { font-size: 38px; line-height: 1.1; padding: 0; }
  .cs-mo__p { font-size: 18px; padding: 0; }
  .cs-mo__chips { font-size: 14px; padding: 0; }
  .cs-mo__credit { font-size: 13px; padding: 0; }
  .cs-mo__acts { margin-top: 10px; align-items: center; }
  .cs-mo__rail { position: static; flex-direction: row; gap: 10px; }
  .cs-mo .cs-sb { width: 52px; height: 52px; }
  .cs-mo .cs-sb--like, .cs-mo .cs-sb--like:has(.cs-sb__n:not([hidden])) { width: auto; min-width: 52px; height: 52px; flex-direction: row; gap: 6px; padding-block: 0; }
  .cs-mo .cs-sb--like:has(.cs-sb__n:not([hidden])) { padding-inline: 14px; }
  .cs-mo .cs-sb__n { font-size: 15px; }
  .cs-mo__foot { bottom: 24px; inset-inline: max(96px, calc(50% - 544px)); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .cs-mo__thumbs { display: flex; gap: 10px; pointer-events: auto; }
  .cs-mo__thumbs button { width: 96px; height: 64px; padding: 0; border: 3px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; opacity: .6; }
  .cs-mo__thumbs button[aria-current="true"] { border-color: var(--yel); opacity: 1; }
  .cs-mo__thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .cs-mo__hint { display: block; font-size: 13px; color: #c9c1b0; }
  .cs-mo__hint-m { display: none; }

  .cs-qk { height: calc(100svh - var(--head-h, 82px)); min-height: 700px; padding: 0; overflow: hidden; }
  .cs-qk__track { flex-direction: row; align-items: center; gap: 110px; height: 100%; padding-inline: max(160px, calc(50% - 500px)); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .cs-qk__track::-webkit-scrollbar { display: none; }
  .cs-qk__card, .cs-qk__card:first-child { flex: 0 0 min(1000px, 100%); height: auto; min-height: 600px; max-height: calc(100% - 24px); padding: 40px 48px; border-radius: 36px; scroll-snap-align: center; scroll-snap-stop: always; overflow: visible; display: grid; grid-template-columns: minmax(0, 1fr) min(440px, 44%); grid-template-rows: auto 1fr auto; column-gap: 44px; box-shadow: 0 30px 70px rgba(0,0,0,.55); transition: transform .35s, opacity .35s; }
  .cs-qk.is-js .cs-qk__card:not(.is-on) { transform: scale(.84); cursor: pointer; }
  .cs-qk__top { grid-column: 1; grid-row: 1; }
  .cs-qk__name { font-size: 26px; }
  .cs-qk__close { display: none; }
  .cs-qk__pic { grid-column: 2; grid-row: 1 / span 3; width: auto; margin: 0; align-self: center; transform: rotate(-2deg); }
  .cs-qk__pic img { border-width: 6px; border-radius: 24px; box-shadow: 10px 10px 0 var(--paper-ink); }
  .cs-qk__pic figcaption { bottom: 16px; left: 16px; font-size: 12px; padding: 4px 10px; }
  .cs-qk__body { grid-column: 1; grid-row: 2; margin-top: 26px; }
  .cs-qk__chips { font-size: 15px; }
  .cs-qk__body h2 { margin-top: 16px; font-size: 58px; }
  .cs-qk__body p { margin-top: 20px; font-size: 20px; }
  /* כותרת ארוכה: קטנה יותר, כדי שהטקסט והכפתורים יישארו בתוך הכרטיס */
  .cs-qk__card.is-long .cs-qk__body h2 { font-size: 44px; }
  .cs-qk__card.is-xlong .cs-qk__body h2 { font-size: 34px; line-height: 1.12; }
  .cs-qk__card.is-long .cs-qk__body p { margin-top: 16px; font-size: 18px; }
  .cs-qk__acts { grid-column: 1; grid-row: 3; }
  .cs-qk .cs-go { min-height: 52px; padding: 0 24px; }
  .cs-qk .cs-sb { width: 52px; height: 52px; }
  .cs-qk .cs-sb--like { width: auto; min-width: 52px; }
  .cs-qk .cs-arw--next { background: var(--ink); }
  .cs-qk .cs-arw--prev { border-color: var(--line2); background: var(--bg); color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  .cs-sb, .cs-qk__card { transition: none; }
}

/* אישור קצר אחרי העתקת קישור */
.cs-sb { position: relative; }
.cs-sb.is-copied::after { content: "הקישור הועתק"; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--paper-ink); color: #f6f1e6; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

/* סימון של טיוטה, באתר המקומי בלבד */
.cs-draft, .cs-qk__body .cs-draft { align-self: flex-start; display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 4px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.5; }

/* הצילום ב-MOMENTS מוצג תמיד במלואו, בלי חיתוך: גם צילום לגובה */
.cs-mo__img { object-fit: contain; box-shadow: none; filter: drop-shadow(0 20px 36px rgba(0,0,0,.6)); }
.cs-mo__pic.is-tall .cs-mo__img { max-height: 42svh; }
@media (min-width: 900px) {
  .cs-mo__img { aspect-ratio: auto; max-height: 52svh; box-shadow: none; }
  .cs-mo__pic.is-tall .cs-mo__img { max-height: 58svh; }
}
