/* Recommendations modal (Sept 21, 2026): the pencil globe. Paper #FBFAF8,
   border #D9D5CC, scrim rgba(23,24,26,.55). Hebrew never in mono: the mono
   strings here are Latin metadata only (22 RECS · 14 COUNTRIES, DRAG TO SPIN,
   INDEX, the counts). Pencil #9AA0A0 on those only. */
.recs-scrim { position: fixed; inset: 0; z-index: 1000; background: rgba(23, 24, 26, .55); display: grid; place-items: center; padding: 16px; }
.recs-scrim[hidden] { display: none; }
.recs-modal { width: min(1180px, 100%); max-width: 100%; min-width: 0; height: min(880px, 92vh); background: #FBFAF8; border: 1px solid #D9D5CC; color: #17181A; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; overflow: hidden; font-family: var(--body); }
.recs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; padding: 16px 22px; border-bottom: 1px solid #E3E0D9; min-width: 0; }
.recs-title { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(20px, 2vw, 26px); line-height: 1.2; flex: 1 1 auto; }
.recs-meta { font-family: var(--font-mono); font-size: 11px; color: #9AA0A0; letter-spacing: .06em; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.recs-close { background: none; border: 1px solid #E3E0D9; border-radius: 6px; width: 36px; height: 36px; font: inherit; font-size: 16px; color: #17181A; cursor: pointer; align-self: center; }
.recs-close:hover { border-color: #0E5A54; color: #0E5A54; }
.recs-stage { position: relative; min-height: 0; overflow: hidden; }
.recs-stage canvas { display: block; cursor: grab; touch-action: none; }
.recs-stage canvas:active { cursor: grabbing; }
.recs-hint { position: absolute; inset-inline-end: 16px; bottom: 12px; font-family: var(--font-mono); font-size: 11px; color: #9AA0A0; letter-spacing: .06em; direction: ltr; pointer-events: none; }
.recs-fan { position: absolute; inset: 0; pointer-events: none; }
.recs-cname { position: absolute; left: var(--nx, 50%); top: var(--ny, 50%); transform: translate(-50%, calc(-100% - 20px)); font-family: var(--font-hand); font-weight: 700; font-size: 30px; line-height: 1; color: #0E5A54; white-space: nowrap; letter-spacing: 0; }
.recs-card { position: absolute; width: 210px; height: auto; box-sizing: border-box; padding: 10px 12px; background: #FBFAF8; border: 1px solid #D9D5CC; box-shadow: 0 10px 28px -18px rgba(0,0,0,.35); display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); gap: 2px 10px; overflow: visible; pointer-events: auto; text-align: start; direction: ltr; opacity: 1; transform: none; transition: transform .42s cubic-bezier(.2,.9,.25,1), opacity .42s cubic-bezier(.2,.9,.25,1); }
.recs-card img, .recs-card .recs-mono { grid-row: 1 / 3; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.recs-card .recs-mono { display: grid; place-items: center; background: #F0ECE3; color: #565A5F; font-size: 14px; font-weight: 600; }
.recs-card b { font-weight: 600; font-size: 13px; line-height: 1.25; align-self: end; }
.recs-card span { font-size: 11px; color: #565A5F; line-height: 1.3; }
.recs-card p { grid-column: 1 / -1; margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: #17181A; }
.recs-list { padding: 12px 16px; display: grid; gap: 10px; min-height: 0; overflow-y: auto; border-top: 1px solid #E3E0D9; }
.recs-modal.is-flat { grid-template-rows: auto auto minmax(0, 1fr) auto; }
.recs-modal.is-flat .recs-stage { flex: none; }
.recs-modal.is-flat .recs-head { padding: 12px 16px; }
.recs-modal.is-flat .recs-meta { white-space: normal; font-size: 10px; }
.recs-modal.is-flat .recs-index { padding: 10px 16px 12px; gap: 4px 14px; }

.recs-list .recs-card { position: static; width: auto; height: auto; box-shadow: none; overflow: visible; }
.recs-index { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 6px var(--cg, 18px); padding: 12px 22px 16px; border-top: 1px solid #E3E0D9; overflow: hidden; --cn: 24px; }
.recs-index.is-wrapping { flex-wrap: wrap; }
.recs-index-k { font-family: var(--font-mono); font-size: 11px; color: #9AA0A0; letter-spacing: .06em; direction: ltr; margin-inline-end: 6px; }
.recs-cn { background: none; border: 0; padding: 2px 0; font-family: var(--font-hand); font-weight: 700; font-size: var(--cn, 24px); white-space: nowrap; line-height: 1; color: #17181A; cursor: pointer; letter-spacing: 0; border-bottom: 2px solid transparent; }
.recs-cn:hover, .recs-cn.is-on { border-bottom-color: #0E5A54; color: #0E5A54; }
.recs-cnn { font-family: var(--font-mono); font-size: 11px; color: #9AA0A0; direction: ltr; unicode-bidi: isolate; margin-inline-start: 4px; vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { .recs-card { transition: none; } }
html.a11y-motion .recs-card { transition: none; }
/* the two entry lines on the page */
.nb-recs-line { margin: 18px 0 0; font-size: 16px; }
.nb-recs-line a { font-weight: 600; color: #0E5A54; text-decoration: none; }
.nb-recs-line a:hover { color: #0A423E; }

/* the case dialog (Shani's full process), opened from her card */
.recs-modal-case { width: min(640px, 100%); height: auto; max-height: 92vh; overflow-y: auto; display: block; padding: 28px 32px 32px; position: relative; }
.recs-modal-case .recs-close { position: absolute; top: 14px; inset-inline-end: 14px; }
.case-dialog .recs-title { margin: 0 40px 4px 0; }
[dir="ltr"] .case-dialog .recs-title { margin: 0 0 4px 40px; }
.case-what { margin: 0 0 22px; font-size: 15px; color: #565A5F; }
.case-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; font-size: 16px; }
.case-list dt { font-family: var(--font-mono); font-size: 12px; color: #9AA0A0; padding-top: 4px; direction: ltr; unicode-bidi: isolate; letter-spacing: 0; }
.case-list dd { margin: 0; text-wrap: pretty; line-height: 1.6; }
