/* Torah Nearby — genre: INSTITUTIONS (clarity is the whole job).
   Palette sampled from the design brief's Institutions row: #F1EADA ground,
   #181818 ink, #2779A7 accent, #BCBFB0 rule, #ECD06F mark. Muted tones are
   darkened off that row to clear 4.5:1, which the sampled greys do not.
   Type: one oversized display voice against small monospaced metadata.
   No photographs: 17% of records have one, so type carries every page. */

:root {
  --ground: #F1EADA;
  --raise:  #F7F3E9;
  --ink:    #181818;
  --muted:  #5F584C;
  --line:   #CFC6B4;
  --accent: #1F6088;
  --mark:   #ECD06F;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --gap: clamp(1.25rem, 4vw, 3rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #111111; --raise: #191919; --ink: #F1EADA; --muted: #A79E8E;
    --line: #2E2E2C; --accent: #8FC3E0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 clamp(1rem, 0.96rem + 0.2vw, 1.0625rem)/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
main { max-width: 64rem; margin: 0 auto; padding: var(--gap); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--ground); padding: .6rem 1rem; z-index: 9; }

/* --- bars ---------------------------------------------------------------- */
.bar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding: 1.1rem var(--gap); border-bottom: 1px solid var(--line);
}
.wordmark { font: 600 1rem/1 var(--mono); letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
.bar nav { display: flex; gap: 1.25rem; }
.bar nav a, .foot a { font: 400 .8125rem/1 var(--mono); color: var(--muted); text-decoration: none; }
.bar nav a:hover, .foot a:hover { color: var(--accent); }
.foot { border-bottom: 0; border-top: 1px solid var(--line); margin-top: 4rem; }
.foot .meta { max-width: 40rem; margin: 0; }

/* --- type ---------------------------------------------------------------- */
.display {
  font: 400 clamp(2.4rem, 1.2rem + 5.2vw, 5rem)/1.02 var(--display);
  letter-spacing: -0.022em; margin: .35em 0 .5em; max-width: 18ch;
}
.entity .display, .home .display { max-width: 20ch; }
.sub { font: 500 1.0625rem/1.3 var(--sans); letter-spacing: -.01em; margin: 2.5rem 0 .75rem; }
.lede { font: 400 clamp(1.125rem, 1rem + .5vw, 1.375rem)/1.45 var(--display); max-width: 34ch; margin: 0 0 1rem; }
.teaser { max-width: 56ch; color: var(--ink); }
.meta { font: 400 .8125rem/1.5 var(--mono); color: var(--muted); letter-spacing: 0; }
.count { margin: 0; }
a { color: var(--accent); }

/* --- the ask ------------------------------------------------------------- */
.ask { padding: clamp(1rem, 5vh, 4rem) 0 0; }
.where { margin: 0 0 1rem; }
.where label { display: block; margin-bottom: .5rem; }
.where .row { display: flex; gap: .5rem; max-width: 30rem; }
input, textarea {
  font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--raise);
  border: 1px solid var(--line); border-radius: 2px; padding: .7rem .8rem; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button {
  font: 500 .9375rem/1 var(--sans); background: var(--ink); color: var(--ground);
  border: 1px solid var(--ink); border-radius: 2px; padding: .75rem 1.2rem; cursor: pointer;
}
button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.link {
  background: none; border: 0; padding: .6rem 0 0; color: var(--muted);
  font: 400 .8125rem/1 var(--mono); text-decoration: underline; text-underline-offset: 3px;
}
.link:hover { color: var(--accent); background: none; }

/* --- results ------------------------------------------------------------- */
.out { margin-top: 2rem; }
.out ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.out li { border-bottom: 1px solid var(--line); }
.out a {
  display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem;
  align-items: baseline; padding: 1.1rem 0; text-decoration: none; color: var(--ink);
}
.out a:hover .who { color: var(--accent); }
.who { font: 400 clamp(1.25rem, 1.1rem + .6vw, 1.75rem)/1.15 var(--display); letter-spacing: -.015em; }
.dist { font: 400 .8125rem/1 var(--mono); color: var(--muted); white-space: nowrap; }
.sub-line { grid-column: 1 / -1; font: 400 .8125rem/1.4 var(--mono); color: var(--muted); }
.out .note { font: 400 .8125rem/1.5 var(--mono); color: var(--muted); }

.reveal { opacity: 0; transform: translateY(6px); animation: rise .45s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  * { transition: none !important; }
}

/* --- lists --------------------------------------------------------------- */
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.plain.big li { padding: .9rem 0; }
.plain.big a { font: 400 1.25rem/1.25 var(--display); text-decoration: none; }
.plain.big a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cities { list-style: none; margin: 0; padding: 0; columns: 3 12rem; column-gap: 2rem; }
.cities li { padding: .3rem 0; break-inside: avoid; }
.cities a { text-decoration: none; }
.cities a:hover { text-decoration: underline; text-underline-offset: 3px; }
.country { margin-bottom: 2.5rem; }
.cards li { padding: 1.5rem 0; }
.cards p { max-width: 52ch; }

/* --- the strip -----------------------------------------------------------
   Every photograph on this site comes off the organisation's own domain.
   There is no locality fallback and no stock: a place with no photograph
   shows none, and the type carries it. */
.wall {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(9rem, 15vw, 13rem);
  gap: 1px; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: thin; background: var(--line);
  border-bottom: 1px solid var(--line);
}
.wall .tile {
  position: relative; display: block; aspect-ratio: 4 / 3;
  background: var(--raise); overflow: hidden; text-decoration: none;
}
.wall img { width: 100%; height: 100%; object-fit: cover; display: block;
            transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.wall .tile:hover img { transform: scale(1.05); }
.wall .cap {
  position: absolute; left: .5rem; bottom: .45rem; z-index: 1;
  font: 400 .625rem/1 var(--mono); letter-spacing: .04em; color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.85);
}
.wall .tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent 42%);
}

/* --- the feed: a hairline-joined plate ------------------------------------
   Border on the item, never a gap over the background, so the cards touch. */
.plate {
  margin-top: 5rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.card {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.6rem 1.5rem 1.8rem; text-decoration: none; color: var(--ink);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: transparent; transition: background .25s ease;
}
.card:hover { background: var(--raise); }
.card .shot {
  width: calc(100% + 3rem); margin: -1.6rem -1.5rem 1rem; display: block;
  aspect-ratio: 3 / 2; object-fit: cover; background: var(--raise);
}
.card .where { font: 400 .75rem/1.4 var(--mono); color: var(--muted); }
.card .title {
  font: 400 1.5rem/1.15 var(--display); letter-spacing: -.015em; max-width: 16ch;
}
.card:hover .title { color: var(--accent); }
.card .said { font-size: .9375rem; line-height: 1.55; color: var(--ink); }
/* Reveal rides the scroll itself. A browser without view() timelines, or a
   reader who asked for less motion, gets the cards already visible — nothing
   about seeing them depends on a script running. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .plate .card {
      animation: rise .6s linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 20%;
    }
  }
}

/* --- entity + relay ------------------------------------------------------ */
.entity { max-width: 46rem; }
/* --- photographs on an entity page --------------------------------------- */
.hero { margin: 0 0 2rem; }
.hero img {
  width: 100%; height: auto; display: block; background: var(--raise);
  border: 1px solid var(--line);
}
.gallery { margin-top: 2.75rem; border-top: 1px solid var(--line); padding-top: .25rem; }
.gallery .strip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block;
               background: var(--raise); }

/* What an organisation publishes about itself, in its own order. */
.says { margin-top: 2.75rem; border-top: 1px solid var(--line); padding-top: .25rem; }
.says p { max-width: 60ch; }
.says .meta a { word-break: break-all; }
.entity .teaser + .teaser { margin-top: -.4rem; }

.relay { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.relay form { max-width: 32rem; margin-top: 1rem; }
.relay label { display: block; margin-bottom: 1rem; font: 400 .8125rem/1.8 var(--mono); color: var(--muted); }
.relay input, .relay textarea { margin-top: .3rem; }
.back { margin-top: 3rem; font: 400 .8125rem/1.6 var(--mono); }
.go { font: 400 .9375rem/1 var(--mono); text-underline-offset: 4px; }
.floor { margin-top: 5rem; border-top: 1px solid var(--line); }

/* ===== GOJO additions ====================================================
   Same ground and type as the two sister sites, so the three read as one
   family. Five outreach families each carry one sampled value from the
   Institutions row as a dot; text never relies on the dot's colour alone. */
.wordmark .long { font-weight: 400; color: var(--muted); }
@media (max-width: 40rem) { .wordmark .long { display: none; } }
.dot {
  display: inline-block; width: .6em; height: .6em; border-radius: 50%;
  background: var(--f); margin-right: .45em; vertical-align: baseline;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
}
.sub .dot { width: .5em; height: .5em; }

/* the network strip: type carries it, one tile per network */
.wall { grid-auto-columns: clamp(9rem, 14vw, 12rem); background: var(--line); }
.wall .tile {
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: space-between;
  padding: .9rem 1rem; background: var(--raise); color: var(--ink);
  border-top: 3px solid var(--f); transition: background .25s ease;
}
.wall .tile:hover { background: var(--ground); }
.wall .tile .n { font: 400 1.25rem/1.1 var(--display); letter-spacing: -.015em; }
.wall .tile .cap { position: static; color: var(--muted); text-shadow: none; font-size: .75rem; }
.wall .tile::after { content: none; }

.topbar { padding: .7rem 0 0; }
.scale { margin: 0; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a {
  display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .6rem;
  align-items: baseline; padding: .9rem 0; text-decoration: none; color: var(--ink);
}
.rows a:hover .who { color: var(--accent); }
.rows .who { font: 400 clamp(1.125rem, 1rem + .5vw, 1.5rem)/1.15 var(--display); letter-spacing: -.015em; }
.rows .sub-line { grid-column: 2 / -1; }
.rows .dist { grid-column: 3; }
.fam { margin-top: 2rem; }
.plate { margin-top: 3rem; }
.card .where .dot { margin-right: .5em; }
.browse { margin-top: 4rem; }
.nets li a { text-decoration: none; }
.facts { display: grid; grid-template-columns: 6rem 1fr; gap: .4rem 1rem; margin: 1.5rem 0; max-width: 40rem; }
.facts dt { font: 400 .8125rem/1.6 var(--mono); color: var(--muted); }
.facts dd { margin: 0; }
.sr { position: absolute; left: -9999px; }

/* map */
.mappage main { max-width: none; padding: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; padding: .8rem var(--gap); border-bottom: 1px solid var(--line); align-items: center; }
.legend label { font: 400 .8125rem/1 var(--mono); color: var(--ink); display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.legend input { width: auto; margin: 0; accent-color: var(--accent); }
.map { height: calc(100vh - 9rem); min-height: 24rem; background: var(--raise); }
.leaflet-popup-content { font: 400 .9rem/1.4 var(--sans); }

/* featured rows: one per family, equal, no counts */
.strip { border-bottom: 1px solid var(--line); }
.famrow { display: grid; grid-template-columns: 9rem 1fr; border-top: 1px solid var(--line); }
.famrow .famname { display: flex; align-items: center; padding: 0 var(--gap); font: 400 1rem/1.2 var(--display); text-decoration: none; color: var(--ink); border-right: 1px solid var(--line); }
.famrow .famname:hover { color: var(--accent); }
.famrow .wall { border-bottom: 0; grid-auto-columns: clamp(10rem, 16vw, 14rem); }
.famrow .wall .tile { aspect-ratio: auto; min-height: 5.5rem; padding: .7rem .9rem; }
.famrow .wall .tile .n { font-size: 1.05rem; }
@media (max-width: 40rem) { .famrow { grid-template-columns: 1fr; } .famrow .famname { padding: .6rem var(--gap); border-right: 0; } }
.fold { border-top: 1px solid var(--line); margin-top: 2rem; }
.fold summary { cursor: pointer; list-style: none; padding: .6rem 0; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: " +"; color: var(--muted); }
.fold[open] summary::after { content: " \2013"; }
.cities .dot { width: .45em; height: .45em; margin-right: .2em; }

/* the stories: the landing is the stories; the lead spans two columns */
.stories { margin-top: 0; border-top: 0; }
.stories .card .shot { aspect-ratio: 3 / 2; height: auto; }
.stories .card.lead { grid-column: span 2; grid-row: span 2; }
.stories .card.lead .shot { aspect-ratio: 16 / 9; }
.stories .card.lead .title { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); max-width: 20ch; }
.stories .card .title { max-width: none; }
@media (max-width: 40rem) { .stories .card.lead { grid-column: span 1; grid-row: span 1; } }
.home .ask { padding-top: 3rem; }
.stories .card.lead .said { font-size: 1.0625rem; max-width: 58ch; }
.stories .card.lead .where { margin-top: .25rem; }
.home h1.lede { font-size: 1.125rem; font-family: var(--sans); color: var(--muted); max-width: 48ch; margin: 0 0 1.25rem; }
.home .ask { padding-top: 2rem; }
/* the lead fills its two rows: the photograph grows into whatever height the
   neighbouring column sets, so there is no void beneath the text */
.stories .card.lead { display: flex; flex-direction: column; }
.stories .card.lead .shot { flex: 1 1 auto; min-height: 14rem; height: auto; aspect-ratio: auto; object-fit: cover; }
.stories .card.lead .where, .stories .card.lead .title, .stories .card.lead .said { flex: 0 0 auto; }
/* the lead keeps the photograph whole: two columns wide, one row tall, the
   picture at its own proportions, the text beneath it. No crop, no void. */
.stories .card.lead { grid-row: auto; display: flex; flex-direction: column; }
.stories .card.lead .shot { flex: 0 0 auto; aspect-ratio: auto; height: auto; min-height: 0; object-fit: contain; object-position: center; background: var(--raise); }

/* ===== the torah.today house: tokens, type and the landing stream ==================== */
:root {
  --ground: #eae7dc; --raise: #f9f6ee; --panel: #f3f0e6; --deep: #e1ded2;
  --ink: #2b2a22; --bright: #181711; --dim: #545046; --faint: #7a7566; --muted: #545046;
  --line: rgba(31,30,24,.14); --line2: rgba(31,30,24,.30);
  --blue: #2140db; --gold: #a67c25; --accent: #2140db;
  --he: 'Heebo', 'IBM Plex Sans Hebrew', sans-serif;
  --ui: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --serif: 'Source Serif 4', Georgia, serif;
  --display: 'Source Serif 4', Georgia, serif; --sans: 'Space Grotesk', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root { --ground: #eae7dc; --raise: #f9f6ee; --ink: #2b2a22; --muted: #545046; --line: rgba(31,30,24,.14); --accent: #2140db; } }
body { font-family: var(--ui); color: var(--ink); }
.home main { max-width: 1180px; padding: 0 20px 40px; }
.mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.dept { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.dept::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.mast { padding: 20px 0 0; }
.mast-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mast-top .today { display: flex; gap: 14px; flex-wrap: wrap; }
.mast-top .today b { color: var(--ink); font-weight: 500; }
section.blk { padding: 30px 0 0; }
.season { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.season-t { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.season-t .he { font-family: var(--he); font-weight: 900; font-size: clamp(40px, 7vw, 72px); line-height: 1; letter-spacing: -.02em; color: var(--bright); direction: rtl; unicode-bidi: isolate; }
.season-t .en { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.4vw, 24px); color: var(--dim); }
.season-when { margin: 0; }
/* the top: lead rectangle and the rows */
.top { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .top { grid-template-columns: 1fr 1fr; } }
.rect { background: var(--raise); border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--blue); display: block; color: inherit; text-decoration: none; }
.piece { padding: 0 0 22px; }
.pimg { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.9); border-bottom: 1px solid var(--line); }
.pk { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 22px 0; align-items: baseline; }
.pk .k { font-family: var(--ui); font-weight: 700; letter-spacing: -.01em; font-size: 20px; color: var(--bright); }
.pk .ref { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.ptext { display: grid; gap: 10px; padding: 16px 22px 6px; }
.ptext h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; color: var(--bright); letter-spacing: -.01em; margin: 0; max-width: none; }
.ptext .say { font-family: var(--serif); font-size: 17px; line-height: 1.55; color: var(--ink); margin: 0; }
.rect .go, .card .go { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.rect .go { display: block; padding: 10px 22px 0; }
.rows { display: flex; flex-direction: column; gap: 1px; }
.row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; background: var(--raise); padding: 12px 14px 12px 12px; box-shadow: 0 0 0 1px var(--line); transition: .15s; color: inherit; text-decoration: none; }
.row:hover { background: #fdfbf4; box-shadow: 0 0 0 1px var(--line), inset 3px 0 0 var(--blue); }
.rimg { display: block; width: 150px; aspect-ratio: 3 / 2; object-fit: cover; background: var(--deep); filter: saturate(.9); }
.rt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rt .k { font-family: var(--ui); font-weight: 700; font-size: 15px; letter-spacing: -.01em; color: var(--bright); line-height: 1.2; }
.rt .en { font-family: var(--serif); font-size: 15px; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rt .f { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }
/* the grid of text cards */
.home .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; }
.home .grid > * { box-shadow: 0 0 0 1px var(--line); }
.home .grid .card { background: var(--raise); padding: 18px 20px 18px; display: flex; flex-direction: column; gap: 9px; min-height: 172px; transition: .15s; border: 0; color: inherit; }
.home .grid .card:hover { background: #fdfbf4; box-shadow: 0 0 0 1px var(--line), inset 0 3px 0 var(--blue); }
.home .grid .card .src { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.home .grid .card h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.28; color: var(--bright); letter-spacing: -.01em; margin: 0; }
.home .grid .card p { font-size: 14px; line-height: 1.5; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.home .grid .card .go { margin-top: auto; }
.note { margin: 12px 0 0; text-transform: none; letter-spacing: .04em; }
.home .ask { padding-top: 34px; }
.home h1.lede { font-family: var(--serif); font-size: 18px; color: var(--dim); }
.row-in { display: flex; gap: .5rem; max-width: 30rem; }
.rv { opacity: 0; transform: translateY(10px); animation: rise .45s ease .1s forwards; }
/* the season line as torah.today has it today: English on the left, Hebrew on the
   right, whichever way the page runs; the two at one size, each bidi-isolated */
.season-t { flex-direction: row-reverse; justify-content: flex-end; }
.season-t .en { font-family: var(--ui); font-weight: 800; font-style: normal; font-size: clamp(40px, 7vw, 72px); line-height: 1; letter-spacing: -.03em; color: var(--bright); unicode-bidi: isolate; }
.season-t .he { unicode-bidi: isolate; }

/* the networks page: a plate per network */
.netpage main { max-width: 1180px; }
.ngrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; margin-top: 1.5rem; }
.ngrid > * { box-shadow: 0 0 0 1px var(--line); }
.ncard { display: flex; flex-direction: column; background: var(--raise); color: inherit; text-decoration: none; transition: .15s; box-shadow: 0 0 0 1px var(--line), inset 0 3px 0 var(--f); }
.ncard:hover { background: #fdfbf4; }
.ncard:hover .nt { color: var(--blue); }
.nimg { display: flex; align-items: flex-end; aspect-ratio: 3 / 2; overflow: hidden; background: color-mix(in srgb, var(--f) 22%, var(--deep)); }
.nimg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.ncard:hover .nimg img { transform: scale(1.04); }
.nimg .nm { padding: 1rem 1.1rem; font: 400 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1.05 var(--serif); color: var(--bright); letter-spacing: -.015em; }
.nbody { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 18px; }
.nk { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.nt { font: 600 19px/1.25 var(--serif); color: var(--bright); letter-spacing: -.01em; }
.nl { font: 400 14px/1.45 var(--serif); color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.ncard .na { font: 400 15px/1.5 var(--serif); color: var(--ink); }
.nlatest { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.nlatest .nh { font: 600 15px/1.3 var(--serif); color: var(--bright); }
.nlatest .nx { font: 400 13.5px/1.45 var(--serif); color: var(--dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard:hover .nh { color: var(--blue); }
/* the rows beside the lead: text starts level with the top of its picture
   (the search-results rule .rows a used baseline alignment, which sank the text) */
.top .rows a.row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; padding: 12px 14px 12px 12px; }
.top .rows a.row .rt { grid-column: 2; }
.top .rows a.row .rimg { grid-column: 1; width: 150px; height: auto; aspect-ratio: 3 / 2; }
.top .rows a.row .f { grid-column: auto; }

/* ===== languages: one landing per language, a switch in the masthead ===== */
.langs { display: flex; gap: 12px; flex-wrap: wrap; }
.langs a { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--faint); text-decoration: none; }
.langs a[lang="he"], .langs a[lang="ru"] { letter-spacing: 0; font-size: 12px; }
.langs a[aria-current] { color: var(--bright); border-bottom: 1px solid var(--blue); }
.langs a:hover { color: var(--blue); }
/* Hebrew: the whole page runs right to left in Heebo; mono labels drop their tracking */
html[lang="he"] body, html[lang="he"] .ptext h2, html[lang="he"] .ptext .say, html[lang="he"] .rt .k, html[lang="he"] .rt .en,
html[lang="he"] .grid .card h3, html[lang="he"] .grid .card p, html[lang="he"] h1.lede { font-family: var(--he); }
html[lang="he"] .ptext h2 { font-weight: 700; }
html[lang="he"] .mono, html[lang="he"] .dept, html[lang="he"] .rt .f, html[lang="he"] .card .src, html[lang="he"] .go { font-family: var(--he); letter-spacing: 0; text-transform: none; font-size: 13px; }
html[lang="he"] .row:hover { box-shadow: 0 0 0 1px var(--line), inset -3px 0 0 var(--blue); }
html[lang="he"] .top .rows a.row .rt { text-align: right; }
html[dir="rtl"] .season-t { flex-direction: row; justify-content: flex-start; }
/* skip link hidden by clipping, not by a -9999px offset (which widens a right-to-left page) */
.skip { position: absolute; left: auto; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip: auto; inset-inline-start: 1rem; top: 1rem; }
