/* Shared header sizing, based on the existing home page. */
body > nav {
  height: 72px;
  padding: 0 6vw;
  background: rgba(255, 255, 255, .94);
}

body > nav > .brand {
  margin: 0;
  padding: 0;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
}

body > nav > .brand:hover {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

body > nav .links {
  display: flex;
  align-items: center;
}

body > nav .links > a,
body > nav .links > button,
body > nav .links > [aria-current="page"] {
  margin: 0 0 0 20px;
  padding: 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #4c4f53;
  font-family: inherit;
  font-size: 14px;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease;
}

body > nav .links > a,
body > nav .links > button {
  cursor: pointer;
}

body > nav .links > .navHome,
body > nav .links > .aboutLink,
body > nav .links > .navAbout,
body > nav .links > [aria-current="page"] {
  color: #222;
  font-weight: 700;
}

body > nav .links > a.navHome:hover,
body > nav .links > a.aboutLink:hover,
body > nav .links > a.navAbout:hover {
  color: #fff;
  background: rgba(34, 34, 34, .88);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .10);
}

body > nav .links > [aria-current="page"] {
  background: rgba(34, 34, 34, .035);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .012);
  cursor: default;
}

body > nav .links > .contact,
body > nav .links > .navContact {
  color: var(--red);
  font-weight: 700;
}

body > nav .links > .contact:hover,
body > nav .links > .navContact:hover {
  color: #fff;
  background: var(--red);
  box-shadow: none;
}

body > nav .links > .contact.active {
  color: #fff;
  background: rgba(199, 70, 52, .88);
  box-shadow: 0 3px 14px rgba(199, 70, 52, .20);
}

body > nav .links > .language,
body > nav .links > .languageToggle {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid #ddd;
  color: #555;
  font-size: 13px;
  font-weight: 600;
}

body > nav .links > .language:hover,
body > nav .links > .languageToggle:hover {
  color: var(--red);
}

html[dir="rtl"] body > nav .links > .language,
html[dir="rtl"] body > nav .links > .languageToggle {
  border-left: 0;
  border-right: 1px solid #ddd;
  padding: 9px 14px 9px 9px;
}

@media (max-width: 850px) {
  body > nav {
    height: 58px;
    padding: 0 4vw;
    gap: 6px;
  }

  body > nav > .brand {
    font-size: clamp(11px, 3vw, 15px);
    white-space: nowrap;
    flex: 0 1 auto;
  }

  body > nav .links {
    min-width: 0;
    flex: 1;
    justify-content: flex-end;
  }

  body > nav .links > a,
  body > nav .links > button,
  body > nav .links > [aria-current="page"] {
    display: block;
    margin: 0;
    padding: 5px 3px;
    font-size: clamp(10px, 2.7vw, 13px);
  }

  body > nav .links > .language,
  body > nav .links > .languageToggle {
    margin: 0;
    padding: 5px 0 5px 6px;
    font-size: clamp(9px, 2.5vw, 12px);
  }

  html[dir="rtl"] body > nav .links > .language,
  html[dir="rtl"] body > nav .links > .languageToggle {
    border-left: 0;
    border-right: 1px solid #ddd;
    padding: 5px 6px 5px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body > nav .links > a,
  body > nav .links > button {
    transition: none;
  }
}

/* Hebrew heading accents differ only in color. */
html[dir="rtl"] :is(h1, h2, h3, h4, h5, h6) :is(.serif, .redSerif) {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}

html[dir="ltr"] :is(h1, h2, h3, h4, h5, h6) :is(.serif, .redSerif) {
  font-style: normal;
  font-weight: 400;
}

/* Retain the bold accent in the English homepage hero only. */
html[dir="ltr"] .hero h1 .serif {
  font-weight: 700;
}

html[dir="ltr"] #contact .sectionTitle .serif,
html[dir="rtl"] .hero h1 .serif,
html[dir="rtl"] #contact .sectionTitle .serif {
  font-weight: 700;
}

html[dir="rtl"] .hero h1,
html[dir="rtl"] #contact .sectionTitle {
  font-weight: 700;
}

/* Use Heebo throughout Hebrew pages, including decorative text. */
html[dir="rtl"] body,
html[dir="rtl"] .serif,
html[dir="rtl"] .redSerif,
html[dir="rtl"] .quoteMark,
html[dir="rtl"] .articleClosing .redLine {
  font-family: "Heebo Hebrew", Arial, sans-serif;
}

/* Restrict Heebo to Hebrew glyphs; Latin letters retain Arial/Helvetica. */
@font-face {
  font-family: "Heebo Hebrew";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/heebo-regular.ttf") format("truetype");
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo Hebrew";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/heebo-medium.ttf") format("truetype");
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo Hebrew";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/heebo-semibold.ttf") format("truetype");
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo Hebrew";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/heebo-bold.ttf") format("truetype");
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}

/* Hebrew headings and labels need less tracking and more room between lines. */
html[dir="rtl"] .hero h1,
html[dir="rtl"] .infoTitle,
html[dir="rtl"] .sectionTitle {
  line-height: 1.12;
}
html[dir="rtl"] #contact .sectionTitle {
  line-height: 1.05;
}
html[dir="rtl"] .infoPageContent h1.infoTitle {
  font-weight: 700;
  font-size: clamp(42px, 5.7vw, 72px);
}
@media (max-width: 600px) {
  html[dir="rtl"] .infoPageContent h1.infoTitle {
    font-size: clamp(36px, 10.5vw, 53px);
  }
}
html[dir="rtl"] h2 {
  letter-spacing: -.02em;
}
html[dir="rtl"] .sectionHead h2,
html[dir="rtl"] .proofSection h2,
html[dir="rtl"] .contactBand h2 {
  line-height: 1.12;
}
html[dir="rtl"] .brand,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .heroNoteLabel,
html[dir="rtl"] .sectionKicker,
html[dir="rtl"] .modalKicker,
html[dir="rtl"] .infoPageContent .kicker,
html[dir="rtl"] .proofCaption,
html[dir="rtl"] .face strong,
html[dir="rtl"] .face small,
html[dir="rtl"] .insightCard h3 {
  letter-spacing: 0;
}

/* English-only labels retain the English typography inside Hebrew pages. */
html[dir="rtl"] [lang="en"] {
  font-family: Arial, Helvetica, sans-serif;
}
html[dir="rtl"] .kicker [lang="en"],
html[dir="rtl"] .infoPageContent .kicker[lang="en"] {
  letter-spacing: .14em;
}
html[dir="rtl"] .face strong[lang="en"] {
  letter-spacing: .08em;
}
html[dir="rtl"] .face small[lang="en"] {
  letter-spacing: .13em;
}

.footerLegalLinks {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.footerLegalLinks a {
  color: inherit;
  text-decoration: none;
}
.footerLegalLinks a:hover { color: var(--red); }
.footerLegalLinks a:focus-visible,
.formPrivacyNotice a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
.formPrivacyNotice {
  grid-column: 1 / -1;
  margin: 9px 0 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.formPrivacyNotice a { color: inherit; text-underline-offset: 3px; }
.policyContent { max-width: 900px; }
.policySection { margin: 0 0 35px; }
.policySection h2 { font-size: 26px; line-height: 1.25; margin: 0 0 14px; }
.policySection p, .policySection li { font-size: 16px; line-height: 1.8; color: var(--muted); }
.policySection p { margin: 0 0 14px; }
.policySection ul { padding-inline-start: 24px; }
.policySection a { color: var(--red); text-underline-offset: 3px; }
.policyContactButton {
  border: 0;
  border-radius: 3px;
  padding: 12px 20px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.policyContactButton:hover { background: var(--red2); }
.policyContactButton:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (max-width: 850px) {
  footer .footerLeft { flex-wrap: wrap; }
  .footerLegalLinks { flex-basis: 100%; }
}
@media (max-width: 600px) {
  .formPrivacyNotice { font-size: 11px; line-height: 1.3; margin: 5px 0 3px; }
  .policySection h2 { font-size: 23px; }
}

/* Shared contact layout, including accessibility and privacy inquiries. */
footer .linkedin, .policySection a.policyLinkedIn { color: #0a66c2; }
footer .linkedin:hover, .policySection a.policyLinkedIn:hover { color: #004182; }
.policySection p.policyAlternative { margin-top: 18px; font-size: 14px; }
/* Dedicated policy forms retain the website's existing modal styling. */
#policyForm.policyForm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; }
#policyForm.policyForm .formGroup { margin: 0; min-width: 0; grid-column: auto; }
#policyForm.policyForm .policyWide, #policyForm.policyForm .formPrivacyNotice, #policyForm.policyForm .modalSubmit { grid-column: 1 / -1; }
#policyForm.policyForm .formGroup textarea { height: 80px; min-height: 80px; }
#policyForm.policyForm .formPrivacyNotice { margin: 0; }
#policyForm.policyForm .modalSubmit { margin-top: 0; }
@media (max-width: 600px) {
  #policyForm.policyForm { gap: 6px 10px; }
  #policyForm.policyForm .formGroup input, #policyForm.policyForm .formGroup textarea { font-size: 16px; }
  #policyForm.policyForm .formGroup textarea { height: 48px; min-height: 48px; }
}
@media (max-height: 480px) and (min-width: 520px) {
  #policyForm.policyForm { gap: 4px 10px; }
  #policyForm.policyForm .formGroup textarea { height: 34px; min-height: 34px; }
}

/* LinkedIn wordmark colors; the same feedback is available from the keyboard. */
a.linkedin, .policySection a.policyLinkedIn {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  direction: ltr;
  gap: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  padding: 3px;
  border-radius: 4px;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.linkedinWord, .linkedinIn {
  display: inline-block;
  padding: 3px 4px;
  border-radius: 2px;
  transition: color .2s ease, background-color .2s ease;
}
.linkedinWord { color: #0a66c2; background-color: transparent; padding-right: 1px; }
.linkedinIn { color: #fff; background-color: #0a66c2; }
a:is(.linkedin, .policyLinkedIn):is(:hover, :focus-visible) {
  background-color: #f5f5f4;
  box-shadow: 0 2px 7px rgba(34, 34, 34, .08);
}
a:is(.linkedin, .policyLinkedIn):focus-visible {
  outline: 2px solid #0a66c2;
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  a.linkedin, .policySection a.policyLinkedIn, .linkedinWord, .linkedinIn { transition: none; }
}

/* Compact the regular contact dialog while retaining its single-column layout. */
#contactModal .modalBox { padding: 24px 32px; }
#contactModal .modalKicker { margin-bottom: 8px; }
#contactModal .modalTitle { font-size: 32px; margin-bottom: 8px; }
#contactModal .modalIntro { font-size: 14px; line-height: 1.4; margin-bottom: 14px; }
#contactModal .formGroup { margin-bottom: 10px; }
#contactModal .formGroup label { margin-bottom: 4px; }
#contactModal .formGroup input { height: 38px; padding: 8px 11px; }
#contactModal .formGroup textarea { height: 64px; min-height: 64px; padding: 8px 11px; }
#contactModal .formPrivacyNotice { margin: 4px 0 6px; font-size: 11px; line-height: 1.3; }
#contactModal .modalSubmit { margin-top: 0; padding: 12px 18px; }
@media (max-height: 720px) and (min-width: 601px) {
  #contactModal { padding: 8px; }
  #contactModal .modalBox { max-height: calc(100dvh - 16px); padding: 16px 24px; }
  #contactModal .formGroup { margin-bottom: 7px; }
  #contactModal .modalIntro { margin-bottom: 10px; }
}
@media (max-width: 600px) {
  #contactModal .modalBox { padding: 12px 18px; }
  #contactModal .modalKicker { margin-bottom: 4px; }
  #contactModal .modalTitle { font-size: clamp(22px, 6vw, 29px); margin-bottom: 5px; }
  #contactModal .modalIntro { font-size: 12px; line-height: 1.3; margin-bottom: 8px; }
  #contactModal .formGroup { margin-bottom: 5px; }
  #contactModal .formGroup label { margin-bottom: 2px; }
  #contactModal .formGroup input { height: 32px; padding: 4px 8px; font-size: 16px; }
  #contactModal .formGroup textarea { height: 40px; min-height: 40px; padding: 4px 8px; font-size: 16px; }
  #contactModal .modalSubmit { padding: 9px 12px; }
}
@media (max-height: 540px) {
  #contactModal { padding: 4px; }
  #contactModal .modalBox { padding: 10px 16px; max-height: calc(100dvh - 8px); }
  #contactModal .modalKicker { display: none; }
  #contactModal .modalTitle { font-size: 22px; margin-bottom: 5px; }
  #contactModal .modalIntro { font-size: 12px; margin-bottom: 6px; }
  #contactModal #contactForm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5px 10px; }
  #contactModal #contactForm .formGroup { margin: 0; min-width: 0; }
  #contactModal #contactForm .formGroup:nth-child(5), #contactModal .formPrivacyNotice, #contactModal .modalSubmit { grid-column: 1 / -1; }
  #contactModal .formGroup input { height: 30px; }
  #contactModal .formGroup textarea { height: 36px; min-height: 36px; }
  #contactModal .modalSubmit { padding: 8px 12px; }
}

/* Add breathing room only when the viewport has enough height. */
@media (min-width: 601px) and (min-height: 760px) {
  #contactModal .modalBox { padding: 30px 36px; }
  #contactModal .modalTitle { font-size: 36px; margin-bottom: 10px; }
  #contactModal .modalIntro { font-size: 15px; margin-bottom: 18px; }
  #contactModal .formGroup { margin-bottom: 13px; }
  #contactModal .formGroup label { margin-bottom: 5px; }
  #contactModal .formGroup input { height: 42px; padding: 10px 12px; }
  #contactModal .formGroup textarea { height: 78px; min-height: 78px; padding: 10px 12px; }
  #contactModal .modalSubmit { padding: 14px 20px; }
}
@media (min-width: 601px) and (min-height: 900px) {
  #contactModal .modalBox { padding: 36px 40px; }
  #contactModal .modalTitle { font-size: 38px; }
  #contactModal .modalIntro { margin-bottom: 22px; }
  #contactModal .formGroup { margin-bottom: 16px; }
  #contactModal .formGroup input { height: 45px; }
  #contactModal .formGroup textarea { height: 92px; min-height: 92px; }
}
@media (max-width: 600px) and (min-height: 700px) {
  #contactModal .modalBox { padding: 16px 20px; }
  #contactModal .modalIntro { font-size: 13px; margin-bottom: 10px; }
  #contactModal .formGroup { margin-bottom: 7px; }
  #contactModal .formGroup label { font-size: 12px; margin-bottom: 3px; }
  #contactModal .formGroup input { height: 36px; }
  #contactModal .formGroup textarea { height: 48px; min-height: 48px; }
  #contactModal .modalSubmit { padding: 11px 14px; }
}

/* Keep the LinkedIn link aligned with the surrounding sentence. */
.policyAlternative a.policyLinkedIn {
  vertical-align: baseline;
  align-items: baseline;
  padding: 0;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}
.policyAlternative .policyLinkedIn .linkedinWord {
  padding: 0 1px 0 0;
  line-height: inherit;
}
.policyAlternative .policyLinkedIn .linkedinIn {
  padding: 1px 2px;
  line-height: 1.1;
}

/* The two parts of the brand name use identical type and line metrics. */
body > nav .brand > span:not(.brandHomeLabel),
body > nav .brand > b {
  font: inherit;
  line-height: 1;
  letter-spacing: inherit;
}

/* Quiet, recognizable links within article copy. */
.infoPageContent p.articleRelated { margin-top: 16px; }
.infoPageContent a.articleTextLink {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #9b9b9b;
  text-underline-offset: 3px;
}
.infoPageContent a.articleTextLink:hover { color: var(--red); text-decoration-color: currentColor; }
.infoPageContent a.articleTextLink:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
