@font-face {
  font-family: "Miriam Libre";
  src: url("miriam-libre.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --cyan: #1387b1;
  --navy: #2e364d;
  --link: #315e70;
  --line: #d3d3d3;
  --panel: #f5f5f5;
  --heading: "Miriam Libre", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { color: #252525; background: #fff; }
body { margin: 0; font: 1rem/1.65 Arial, sans-serif; }
[hidden], html:lang(he) [data-lang="en"], html:lang(en) [data-lang="he"] { display: none !important; }
a { color: var(--link); text-underline-offset: .21em; }
a:hover { color: #183f4c; }
a:focus-visible { outline: 3px solid #08678a; outline-offset: 4px; }
.skip-link {
  position: absolute; inset-block-start: .5rem; inset-inline-start: .5rem;
  z-index: 5; transform: translateY(-180%); padding: .5rem 1rem; background: #fff;
}
.skip-link:focus { transform: none; }
.lab-page {
  max-width: 1080px; margin: 0 auto; border-inline: 1px solid #f0f0f0;
  background: white;
}
.lab-masthead {
  display: grid; direction: ltr; grid-template-columns: auto 1fr auto;
  align-items: center; column-gap: 1rem; padding: 15px 18px;
}
.lab-mark, .faculty-mark { display: block; line-height: 0; }
.lab-mark img, .faculty-mark img { width: 100%; height: auto; }
.lab-mark { width: 123px; }
.faculty-mark { width: 183px; }
.lab-navigation ul {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: .3rem clamp(.5rem, 1.6vw, 1.3rem); margin: 0; padding: 0; list-style: none;
}
.lab-navigation a {
  display: inline-block; border-block-end: 2px solid transparent; padding: .45rem .05rem .3rem;
  font: bold .93rem/1.35 var(--heading); text-decoration: none; color: var(--navy);
  white-space: nowrap;
}
.lab-navigation a:hover, .lab-navigation a[aria-current] { border-color: var(--cyan); }
.lab-navigation a[aria-current] { color: #166b88; }
.research-hero {
  display: grid; align-content: center; min-height: 246px; padding: 2.5rem 1rem;
  color: white; text-align: center;
  background: linear-gradient(90deg, rgba(23,39,63,.32), rgba(17,35,57,.73) 46%, rgba(20,46,67,.45)), url("research-banner.webp") center / cover no-repeat;
}
h1, h2, h3, h4 { font-family: var(--heading); line-height: 1.24; }
.research-hero h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 3.25rem); }
.research-hero h1::after {
  content: ""; display: block; width: min(41%, 28rem); height: 1px;
  margin: .75rem auto .7rem; background: rgba(255,255,255,.82);
}
.research-hero p { margin: 0; font: 1.14rem/1.45 var(--heading); }
.overview { max-width: 920px; margin-inline: auto; padding: 12px 32px 28px; }
.languages { display: flex; align-items: baseline; gap: .5rem; width: fit-content; margin-inline-start: auto; font: .84rem/1.5 var(--heading); }
.languages a { display: inline-block; padding: .38rem .05rem; }
.languages a[aria-current] { color: #333; font-weight: bold; text-decoration: none; }
.languages span { color: #777; }
.overview p { margin: .5rem auto 0; max-width: 48rem; font-size: 1.08rem; line-height: 1.7; text-align: center; }
.catalogue { border-block-start: 1px solid #ededed; background: var(--panel); padding: 25px clamp(16px, 4.5vw, 52px) 37px; }
.catalogue h2 { margin: 0 0 23px; font-size: 1.6rem; font-weight: 400; text-align: center; }
.catalogue h2::after {
  content: ""; display: block; width: min(33%, 17rem); height: 1px;
  margin: .6rem auto 0; background: #bfc6c9;
}
.project-list { display: grid; gap: 1.3rem; }
.project {
  display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); direction: ltr;
  align-items: center; gap: clamp(16px, 3.6vw, 42px); background: white;
  padding: clamp(20px, 2.75vw, 32px); border: 1px solid #cbd1d4;
}
.project-figure { margin: 0; text-align: center; }
.project-figure img { display: block; max-width: 100%; width: 100%; height: auto; }
.project-figure figcaption { margin-block-start: .7rem; color: #515a62; font: .82rem/1.45 var(--heading); }
html:lang(he) .project-figure, html:lang(he) .project-copy { direction: rtl; }
.project-copy { text-align: start; }
.project h3 { margin: 0; color: var(--navy); font-size: clamp(1.7rem, 3.6vw, 2.2rem); }
html:lang(he) .project h3 { text-align: right; }
.project p { margin: .65rem 0 .9rem; line-height: 1.6; }
.project h4 { margin: 0 0 .3rem; font-size: 1.01rem; }
.questions { margin: 0 0 .9rem; padding-inline-start: 1.25rem; line-height: 1.55; }
.questions li + li { margin-block-start: .22rem; }
.questions li::marker { color: #257b97; }
.project-link {
  display: inline-block; padding: .45rem .9rem; border: 1px solid #2b7088; border-radius: 2px;
  color: #235a6f; font-family: var(--heading); font-weight: bold; text-decoration: none;
}
.project-link small { font-size: .84em; font-weight: 400; }
.project-link:hover { background: #f1f7f9; }
.fallback { border-block-start: 1px solid var(--line); padding-block-start: 1rem; }
.lab-footer {
  display: flex; align-items: baseline; justify-content: space-between; gap: .65rem 2rem; flex-wrap: wrap;
  padding: 16px clamp(18px, 4.5vw, 52px); color: #47515a; font: .86rem/1.5 var(--heading);
}
@media (max-width: 800px) {
  .lab-masthead { grid-template-columns: 1fr 1fr; gap: .6rem 1rem; padding: 12px 18px 7px; }
  .faculty-mark { grid-column: 2; grid-row: 1; justify-self: end; width: min(165px, 100%); }
  .lab-mark { grid-column: 1; grid-row: 1; width: min(105px, 100%); }
  .lab-navigation { grid-column: 1 / -1; grid-row: 2; }
  .lab-navigation ul { gap: .06rem 1rem; }
  .research-hero { min-height: 210px; }
}
@media (max-width: 640px) {
  .project { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .project-copy { grid-row: 1; }
  .project-figure { max-width: 315px; margin-inline: auto; padding-block-start: .75rem; border-block-start: 1px solid #e0e5e7; }
  .research-hero { min-height: 178px; padding: 2rem .8rem; }
  .research-hero p { font-size: .96rem; }
  .overview { padding: 7px 20px 21px; }
  .overview p { font-size: 1rem; }
  .catalogue { padding-block: 21px; }
  .catalogue h2 { margin-block-end: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
@media print {
  .skip-link, .languages, .lab-navigation { display: none; }
  .lab-page { max-width: none; border: 0; }
  .faculty-mark { grid-column: 3; }
  .research-hero { min-height: auto; color: #252525; background: white; }
  .project { break-inside: avoid; }
}
