/* The Encyclopedia of Russian Jewry: a reading edition. Builds on /kit/1/jl.css. */
.rj {
  --rj-paper: #fbf8f2; --rj-ink: #22201c; --rj-muted: #6d665b; --rj-line: #e4dccd; --rj-accent: #8a2c1f;
  --rj-accent-2: #1f4e8c; --rj-card: #ffffff; --rj-soft: #f3ede1; --rj-sea: #e8eef2; --rj-land: #f4efe4;
  --rj-border: #c9bda6; --rj-river: #b7c9d6; --rj-pt: #8a2c1f; --rj-place: #2f6b5a; --rj-person: #8a2c1f;
  --rj-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "PT Serif", "Noto Serif", Georgia, "Times New Roman", serif;
  background: var(--rj-paper); color: var(--rj-ink);
}
@media (prefers-color-scheme: dark) {
  .rj { --rj-paper: #17150f; --rj-ink: #ece6da; --rj-muted: #aaa190; --rj-line: #3a352b; --rj-accent: #e8907c;
        --rj-accent-2: #8db4ec; --rj-card: #1f1c16; --rj-soft: #262219; --rj-sea: #121a20; --rj-land: #2a2720;
        --rj-border: #4d463a; --rj-river: #2b4050; --rj-pt: #f0a08c; --rj-place: #7cc4ad; --rj-person: #f0a08c; }
}
.rj a { color: var(--rj-accent); }
.rj-vh, .rj-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rj-skip:focus { position: absolute; z-index: 10; background: var(--rj-card); padding: 6px 10px; }

/* the showcase's own bar */
.rj-nav { border-bottom: 1px solid var(--rj-line); background: var(--rj-card); }
.rj-nav-in { max-width: 72rem; margin: 0 auto; padding: 8px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.rj-brand { font-family: var(--rj-serif); font-size: 1.15rem; color: var(--rj-ink) !important; text-decoration: none; display: flex; gap: 10px; align-items: baseline; }
.rj-brand span:first-child { color: var(--rj-accent); font-weight: 700; letter-spacing: .06em; }
.rj-nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.rj-nav ul a { text-decoration: none; color: var(--rj-muted); font-size: .95rem; }
.rj-nav ul a[aria-current], .rj-nav ul a:hover { color: var(--rj-accent); }
.rj-navsearch { margin-left: auto; }
.rj-navsearch input { font: inherit; font-size: .9rem; padding: 5px 10px; border: 1px solid var(--rj-line); border-radius: 18px; background: var(--rj-paper); color: var(--rj-ink); width: 15rem; max-width: 100%; }
.rj-home .rj-navsearch, .rj-searchpage .rj-navsearch { visibility: hidden; }

.rj-main { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
.rj-footer { max-width: 72rem; margin: 4rem auto 0; padding: 18px 16px 32px; border-top: 1px solid var(--rj-line); color: var(--rj-muted); font-size: .86rem; }

/* headings */
.rj-head { margin: 2.2rem 0 1.2rem; }
.rj-head h1 { font-family: var(--rj-serif); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; margin: .2rem 0 .35rem; letter-spacing: -.01em; }
.rj-kicker { margin: 0; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--rj-muted); }
.rj-kicker a { text-decoration: none; }
.rj-sub { margin: 0; font-size: 1.15rem; color: var(--rj-muted); font-family: var(--rj-serif); font-style: italic; }
.rj-en-title { font-style: normal; font-size: .9em; margin-left: .4em; }
.rj-life { font-variant-numeric: tabular-nums; }

/* home */
.rj-hero { margin: 0 -16px; padding: 3.2rem 16px 2rem; text-align: center;
  background: radial-gradient(ellipse at top, var(--rj-soft), transparent 70%); border-bottom: 1px solid var(--rj-line); }
.rj-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--rj-muted); margin: 0 0 .8rem; }
.rj-hero h1 { font-family: var(--rj-serif); font-weight: 600; margin: 0; line-height: 1.05; }
.rj-hero h1 span[lang="ru"] { display: block; font-size: clamp(2.1rem, 6vw, 4.2rem); color: var(--rj-ink); }
.rj-hero-en { display: block; font-size: clamp(1.1rem, 2.4vw, 1.6rem); font-style: italic; font-weight: 400; color: var(--rj-accent); margin-top: .6rem; }
.rj-lead { max-width: 44rem; margin: 1.4rem auto; font-size: 1.1rem; color: var(--rj-muted); }
.rj-bigsearch { display: flex; max-width: 36rem; margin: 1.2rem auto .6rem; box-shadow: 0 2px 12px #0001; border-radius: 30px; }
.rj-bigsearch input { flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; padding: 12px 20px; border: 1px solid var(--rj-border); border-right: 0; border-radius: 30px 0 0 30px; background: var(--rj-card); color: var(--rj-ink); }
.rj-bigsearch button { font: inherit; font-weight: 600; padding: 0 22px; border: 0; border-radius: 0 30px 30px 0; background: var(--rj-accent); color: var(--rj-paper); cursor: pointer; }
.rj-searchpage .rj-bigsearch { margin-left: 0; }
.rj-live { max-width: 36rem; margin: 0 auto; text-align: left; background: var(--rj-card); border: 1px solid var(--rj-line); border-radius: 12px; padding: 6px 14px; }
.rj-stats { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; color: var(--rj-muted); }
.rj-stats strong { display: block; font-family: var(--rj-serif); font-size: 1.7rem; color: var(--rj-ink); font-variant-numeric: tabular-nums; }

.rj-abc { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin: 1.6rem 0; font-family: var(--rj-serif); }
.rj-abc a, .rj-abc span { display: inline-grid; place-items: center; width: 2.05rem; height: 2.05rem; border-radius: 50%; text-decoration: none; font-size: 1.1rem; }
.rj-abc a { color: var(--rj-ink); border: 1px solid var(--rj-line); background: var(--rj-card); }
.rj-abc a:hover, .rj-abc a[aria-current] { background: var(--rj-accent); color: var(--rj-paper); border-color: var(--rj-accent); }
.rj-abc span { color: var(--rj-line); }

.rj-sec { margin: 2.6rem 0; }
.rj-sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--rj-line); margin-bottom: 1rem; }
.rj-sec-h h2 { font-family: var(--rj-serif); font-weight: 600; font-size: 1.5rem; margin: 0 0 .4rem; }
.rj-random { font: inherit; background: none; border: 0; color: var(--rj-accent); cursor: pointer; padding: 0; }
.rj-feat { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.rj-feat a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; background: var(--rj-card); border: 1px solid var(--rj-line); border-radius: 10px; text-decoration: none; color: var(--rj-ink); transition: transform .15s, box-shadow .15s; border-top: 3px solid var(--rj-k, var(--rj-accent)); }
.rj-feat a:hover { transform: translateY(-2px); box-shadow: 0 6px 18px #0002; }
.rj-feat strong { font-family: var(--rj-serif); font-size: 1.3rem; font-weight: 600; }
.rj-fk { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: var(--rj-k, var(--rj-muted)); }
.rj-ex { font-size: .92rem; color: var(--rj-muted); }
.rj-k-person { --rj-k: var(--rj-person); }
.rj-k-place { --rj-k: var(--rj-place); }

/* maps (assets/map.js) */
.rj-mapbox { position: relative; overflow: hidden; border: 1px solid var(--rj-line); border-radius: 10px; background: var(--rj-sea); }
.rj-mapbox > a:only-child { display: grid; place-items: center; height: 100%; }
.rj-mini { aspect-ratio: 4 / 3; }
.rj-teaser { aspect-ratio: 16 / 7; }
.rj-big { height: min(75vh, 46rem); }
.rj-map { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.rj-mini .rj-map, .rj-teaser .rj-map { touch-action: pan-y; }
.rj-map.rj-drag { cursor: grabbing; }
.rj-sea { fill: var(--rj-sea); }
.rj-land { fill: var(--rj-land); stroke: var(--rj-border); stroke-width: calc(var(--sw, .1px) * .8); }
.rj-lakes { fill: var(--rj-sea); }
.rj-rivers { stroke: var(--rj-river); stroke-width: calc(var(--sw, .1px) * 1.3); }
.rj-pt { r: var(--r, 1px); fill: var(--rj-place); fill-opacity: .72; stroke: var(--rj-card); stroke-width: var(--sw, .1); cursor: pointer; }
.rj-pt:hover { fill: var(--rj-accent); fill-opacity: 1; }
.rj-sel { r: calc(var(--r, 1px) * 1.7); fill: var(--rj-accent); fill-opacity: 1; pointer-events: none; }
.rj-here { r: calc(var(--r, 1px) * 2); fill: var(--rj-accent); fill-opacity: 1; stroke-width: calc(var(--sw, .1) * 2); }
.rj-lbl { fill: var(--rj-ink); font-family: var(--rj-serif); font-weight: 600; paint-order: stroke; stroke: var(--rj-land); stroke-linejoin: round; pointer-events: none; }
.rj-lbl-s { font-weight: 400; }
.rj-mapbar { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 2; pointer-events: none; }
.rj-mapbar > * { pointer-events: auto; }
.rj-mapbar button { font: inherit; font-size: .9rem; min-width: 2rem; height: 2rem; padding: 0 9px; border: 1px solid var(--rj-line); background: var(--rj-card); color: var(--rj-ink); border-radius: 6px; cursor: pointer; }
.rj-mapbar .rj-expand { margin-left: auto; }
.rj-maplink { display: none; align-self: center; margin-left: 8px; padding: 4px 10px; background: var(--rj-card); border: 1px solid var(--rj-line); border-radius: 6px; font-size: .9rem; text-decoration: none; }
.rj-pop { position: absolute; z-index: 3; max-width: 18rem; background: var(--rj-card); border: 1px solid var(--rj-line); border-radius: 8px; padding: 8px 12px; box-shadow: 0 4px 14px #0003; font-size: .95rem; }
.rj-pop a { font-family: var(--rj-serif); font-size: 1.1rem; font-weight: 600; }
.rj-expanded { position: fixed; z-index: 100; inset: calc(env(safe-area-inset-top, 0px) + 12px) 12px calc(env(safe-area-inset-bottom, 0px) + 12px); aspect-ratio: auto; box-shadow: 0 0 0 100vmax #0007; border-radius: 12px; }
.rj-expanded .rj-maplink { display: inline-block; }
.rj-noscroll { overflow: hidden; }
.rj-wide .rj-main { max-width: 90rem; }

/* article */
.rj-cols { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 2.5rem; align-items: start; }
@media (max-width: 58rem) { .rj-cols { grid-template-columns: 1fr; } }
.rj-tabs { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--rj-line); border-radius: 22px; padding: 3px; background: var(--rj-card); margin-bottom: 1.2rem; }
.rj-tabs button { font: inherit; font-size: .9rem; border: 0; background: none; color: var(--rj-muted); padding: 5px 14px; border-radius: 18px; cursor: pointer; }
.rj-tabs button:disabled { opacity: .4; cursor: default; }
.rj-tabs button[aria-pressed="true"] { background: var(--rj-accent); color: var(--rj-paper); }
.rj-texts { display: grid; gap: 2rem; }
.rj-texts[data-view="both"] { grid-template-columns: 1fr 1fr; }
@media (max-width: 44rem) { .rj-texts[data-view="both"] { grid-template-columns: 1fr; } }
.rj-texts[data-view="ru"] .rj-t:not(.rj-ru), .rj-texts[data-view="en"] .rj-t:not(.rj-en),
.rj-texts[data-view="de"] .rj-t:not(.rj-de), .rj-texts[data-view="both"] .rj-de { display: none; }
.rj-t { font-family: var(--rj-serif); font-size: 1.14rem; line-height: 1.7; hyphens: auto; }
.rj-t p { margin: 0 0 .9em; }
.rj-t .rj-tlabel { font-family: var(--jl-font); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--rj-muted); border-bottom: 1px solid var(--rj-line); padding-bottom: .4rem; margin-bottom: .9rem; }
.rj-texts[data-view="both"] .rj-en { color: color-mix(in srgb, var(--rj-ink) 82%, var(--rj-paper)); }
.rj-hw { font-weight: 700; letter-spacing: .01em; }
.rj-none { color: var(--rj-muted); font-style: italic; }
.rj-see { margin: 1.4rem 0; padding: 14px 18px; background: var(--rj-soft); border-left: 3px solid var(--rj-accent); border-radius: 0 8px 8px 0; font-size: 1.05rem; }
.rj-see a { font-family: var(--rj-serif); font-weight: 600; font-size: 1.15rem; }
.rj-see small { font-family: var(--jl-font); font-weight: 400; color: var(--rj-muted); font-size: .8rem; }

.rj-aside { display: grid; gap: 14px; }
.rj-card { background: var(--rj-card); border: 1px solid var(--rj-line); border-radius: 10px; padding: 14px 16px; font-size: .94rem; }
.rj-card h2 { margin: 0 0 .7rem; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--rj-muted); font-weight: 600; }
.rj-card p { margin: .5rem 0 0; }
.rj-archive-btn { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; background: var(--rj-accent); color: var(--rj-paper) !important; text-decoration: none; }
.rj-archive-btn strong { display: block; }
.rj-archive-btn small { opacity: .85; font-size: .8rem; }
.rj-ia { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--rj-paper); position: relative; }
.rj-ia::before { content: ""; position: absolute; inset: 8px 7px 7px; border: 2px solid var(--rj-accent); border-top-width: 4px; border-bottom-width: 3px; }
.rj-old { color: var(--rj-muted); font-size: .85rem; overflow-wrap: anywhere; }
.rj-old code { background: none; padding: 0; }
.rj-nocap { color: var(--rj-muted); }
.rj-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }

/* lists */
.rj-list { list-style: none; padding: 0; margin: 0; }
.rj-it { padding: 5px 0 5px 14px; border-bottom: 1px solid var(--rj-line); position: relative; break-inside: avoid; }
.rj-it::before { content: ""; position: absolute; left: 0; top: .85em; width: 6px; height: 6px; border-radius: 50%; background: var(--rj-k, var(--rj-muted)); }
.rj-it > a { font-family: var(--rj-serif); font-size: 1.06rem; text-decoration: none; }
.rj-it > a:hover { text-decoration: underline; }
.rj-it .rj-life { color: var(--rj-muted); font-size: .85rem; margin-left: .3em; }
.rj-tl { display: block; color: var(--rj-muted); font-size: .82rem; }
.rj-card .rj-it { border: 0; padding-top: 3px; padding-bottom: 3px; }
.rj-card details summary { cursor: pointer; color: var(--rj-muted); margin-top: .4rem; }
.rj-letter { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 50rem) { .rj-letter { grid-template-columns: 1fr; } }
.rj-lcol h2 { font-family: var(--rj-serif); font-weight: 600; border-bottom: 2px solid var(--rj-ink); padding-bottom: .3rem; }
.rj-lcol h2 small { font-family: var(--jl-font); font-size: .85rem; color: var(--rj-muted); font-weight: 400; }
.rj-tiles { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); }
.rj-tiles a { display: flex; flex-direction: column; align-items: center; padding: 14px 0; background: var(--rj-card); border: 1px solid var(--rj-line); border-radius: 10px; text-decoration: none; }
.rj-tiles span { font-family: var(--rj-serif); font-size: 2.2rem; line-height: 1.1; color: var(--rj-ink); }
.rj-tiles small { color: var(--rj-muted); }
.rj-tiles a:hover { border-color: var(--rj-accent); }

/* search */
.rj-filter { display: flex; gap: 16px; margin: .6rem 0; color: var(--rj-muted); }
.rj-results mark, .rj-live mark { background: color-mix(in srgb, var(--rj-accent) 22%, transparent); color: inherit; border-radius: 2px; }
.rj-live .rj-it:last-child { border: 0; }
.rj-live .rj-more { display: block; padding: 6px 0; font-size: .9rem; }
.rj-meta { color: var(--rj-muted); font-size: .9rem; }

.rj-prose { max-width: 44rem; font-size: 1.04rem; }
.rj-prose h2 { font-family: var(--rj-serif); font-weight: 600; }
.rj-prose li { margin: .4rem 0; }
