/* Hebrew site – one stylesheet, Alef everywhere. */
:root {
  --ink: #222;
  --muted: #666;
  --line: #ddd;
  --bar: #111;
  --link: #1a4f8a;
  --measure: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-family: "Alef", "Arial Hebrew", Arial, sans-serif; font-size: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-size: 1.125rem; line-height: 1.8; }
button, input, select, textarea { font: inherit; }

a { color: var(--link); }
a:hover { color: #000; }
img { max-width: 100%; height: auto; }

.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: .5rem; top: .5rem; z-index: 100; background: #fff; padding: .4rem .8rem; }

/* ---- menu ---- */
.main-nav { background: var(--bar); position: relative; z-index: 20; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .65rem .85rem; color: #fff; text-decoration: none; font-size: .9rem; line-height: 1.4; }
.main-nav a:hover, .main-nav a:focus { color: #bbb; }
.main-nav a[aria-current] { color: #999; }
.main-nav > ul { display: flex; flex-wrap: wrap; justify-content: center; }
.main-nav li { position: relative; }
.main-nav li > ul { display: none; position: absolute; inset-inline-start: 0; top: 100%; min-width: 16rem; background: var(--bar); box-shadow: 0 6px 12px rgba(0, 0, 0, .35); }
.main-nav li:hover > ul, .main-nav li:focus-within > ul { display: block; }
.main-nav li li > ul { inset-inline-start: 100%; top: 0; }
.main-nav li li a { white-space: normal; }
.main-nav > ul > li > a { white-space: nowrap; }
.main-nav li:last-child > a[hreflang] { letter-spacing: .06em; border-inline-start: 1px solid #444; }
.menu-toggle { display: none; width: 100%; padding: .75rem; border: 0; background: var(--bar); color: #fff; cursor: pointer; }

/* ---- header ---- */
.hero {
  position: relative; display: grid; place-items: center; min-height: 18rem; padding: 2rem 1rem;
  background: #333 url("./images/d/uploads/2015/12/cropped-Composite.png") center / cover;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .38); }
.site-title { position: relative; color: #fff; text-align: center; text-decoration: none; font-size: clamp(1.6rem, 4.5vw, 2.6rem); font-weight: 700; line-height: 1.3; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.site-title:hover { color: #fff; }

/* ---- article ---- */
main { max-width: var(--measure); margin: 2.5rem auto 4rem; padding: 0 1.25rem; }
h1 { font-size: 2rem; line-height: 1.3; margin: 0 0 1.25rem; }
p { margin: 0 0 1.1rem; }
.center { text-align: center; }
.small { font-size: .95rem; color: var(--muted); text-align: center; }
.next { float: left; }
.in1 { padding-inline-start: 2rem; }
.in2 { padding-inline-start: 3.5rem; }
.in3 { padding-inline-start: 5rem; }
[dir="ltr"] { text-align: left; }
bdi.cite { white-space: nowrap; }
sup { line-height: 0; }

blockquote { margin: 1.4rem 0; padding-inline-start: 1.1rem; border-inline-start: 3px solid #bbb; color: #333; }
blockquote p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 1rem; }
th, td { padding: .3rem .6rem; border-bottom: 1px solid var(--line); text-align: start; unicode-bidi: plaintext; }

figure { margin: 1.5rem 0; }
figcaption { color: var(--muted); font-size: .95rem; }
iframe { max-width: 100%; border: 0; }

.btn { display: inline-block; margin: .2rem 0; padding: .35rem .9rem; border: 1px solid #888; border-radius: 3px; color: #111; text-decoration: none; line-height: 1.5; }
a.btn:hover { background: #111; color: #fff; }
.off { opacity: .55; cursor: default; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .6rem; margin: 1.6rem 0; }
.gallery a { display: block; }
.gallery img { display: block; width: 100%; height: 9.5rem; object-fit: cover; background: #eee; }

/* home page and "mentor friends": columns of picture cards */
.cols { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; }
.col { flex: 1 1 12rem; min-width: 0; }
.cards { display: grid; gap: 1.4rem; }
.card { display: block; text-align: center; text-decoration: none; color: var(--ink); line-height: 1.5; }
.card img { display: block; margin: 0 auto .4rem; background: #eee; }
.card span { display: block; text-decoration: underline; }
.card:hover span { color: #000; }

@media (max-width: 62rem) {
  .menu-toggle { display: block; }
  .main-nav > ul { display: none; flex-direction: column; }
  .main-nav.open > ul { display: flex; }
  .main-nav li > ul { display: block; position: static; box-shadow: none; padding-inline-start: 1rem; }
  .main-nav > ul > li > a { white-space: normal; }
  .hero { min-height: 12rem; }
}

@media print {
  .main-nav, .hero, .skip { display: none; }
  main { max-width: none; margin: 0; }
}

footer {
  text-align: center; font-size: .9rem; color: var(--muted); margin: 2rem 0 1rem;
  display: block;
}