/*
Theme Name: Chaika Grossman Archive – GeneratePress Child V5.9.2
Template: generatepress
Version: 5.9.2
Text Domain: chaika-grossman-archive
*/

/* ==========================================================================
   1. משתנים ואיפוסים כלליים
   ========================================================================== */
:root {
  --chaika-navy: #123a68;
  --chaika-navy-deep: #0d2d52;
  --chaika-blue: #1d4f83;
  --chaika-text: #203a5b;
  --chaika-muted: #5d6f84;
  --chaika-line: #d8e2ec;
  --chaika-soft: #f3f7fb;
  --chaika-soft-2: #eaf2f9;
  --chaika-white: #fff;
  --chaika-max: 1260px;
  --chaika-radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ==========================================================================
   2. טיפוגרפיה ופונטים
   --------------------------------------------------------------------------
   font-display: optional + size-adjust + metric overrides.
   עם preload ב-functions.php, הפונט יגיע בזמן ברוב המקרים.
   אם לא – אין החלפה, ולכן אין layout shift.
   אם כן – המטריקות תואמות ל-Arial ולכן אין reflow מורגש.
   ========================================================================== */
@font-face {
  font-family: 'Heebo';
  src: url('./fonts/Heebo-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: 'Heebo';
  src: url('./fonts/Heebo-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: 'Heebo';
  src: url('./fonts/Heebo-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: 'Heebo';
  src: url('./fonts/Heebo-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: optional;
}

/* ==========================================================================
   3. מבנה האתר + ביטול גורף של transitions/animations
   --------------------------------------------------------------------------
   סלקטור * גורף כדי לגבור על GeneratePress Parent, LiteSpeed UCSS,
   Enable.co.il וכל תוסף אחר. האתר סטטי מבחינת אנימציה.
   ========================================================================== */
body.chaika-site {
  margin: 0 !important;
  background: #fff;
  color: var(--chaika-text);
  direction: rtl;
  font-family: "Heebo", Arial, sans-serif;
  line-height: 1.7;
}

body.chaika-site,
body.chaika-site *,
body.chaika-site *::before,
body.chaika-site *::after {
  transition: none !important;
  transition-property: none !important;
  transition-duration: 0s !important;
  animation: none !important;
  animation-duration: 0s !important;
  -webkit-transition: none !important;
  -webkit-animation: none !important;
}

body.chaika-site,
body.chaika-site button,
body.chaika-site input,
body.chaika-site textarea,
body.chaika-site select {
  font-family: "Heebo", Arial, sans-serif;
}

body.chaika-site #page,
body.chaika-site .site,
body.chaika-site .site-content,
body.chaika-site .content-area,
body.chaika-site .site-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

body.chaika-site .widget-area,
body.chaika-site .site-footer,
body.chaika-site .site-header {
  display: none !important;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #123a68; }

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.chaika-skip-link {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 10000;
  transform: translateY(-200%);
  padding: 10px 16px;
  background: #0d2d52;
  color: #fff !important;
  border: 2px solid #fff;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.chaika-skip-link:focus {
  transform: translateY(0);
}

.chaika-standard-page {
  max-width: 980px;
  padding: 72px 24px 90px;
}

.chaika-standard-page > h1 {
  margin: 0 0 28px;
  color: var(--chaika-navy);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.2;
  font-weight: 900;
}

.chaika-standard-page__content {
  font-size: 18px;
  line-height: 1.85;
}

.chaika-standard-page__content p {
  margin: 0 0 20px;
}

.chaika-standard-page__content a,
.chaika-copy a {
  color: var(--chaika-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   4. תפריט וראש האתר
   ========================================================================== */
.chaika-header {
  background: #fff;
  border-bottom: 1px solid #e3e9f0;
  position: relative;
  z-index: 20;
}

.chaika-header__inner {
  max-width: var(--chaika-max);
  margin: auto;
  min-height: 78px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.chaika-brand {
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
  color: var(--chaika-navy);
  white-space: nowrap;
}

.chaika-nav-wrap { display: flex; align-items: center; }
.chaika-nav { display: flex; align-items: center; gap: 3px; }

.chaika-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 0 17px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--chaika-navy);
}

.chaika-nav a:hover { background: rgba(18, 58, 104, .035); }

.chaika-nav a.is-active:after {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 16px;
  height: 2px;
  background: var(--chaika-blue);
}

.chaika-nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--chaika-navy);
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  cursor: pointer;
}

.chaika-main { width: 100%; overflow: hidden; }
.chaika-inner { width: min(100% - 48px, var(--chaika-max)); margin: 0 auto; }

/* ==========================================================================
   5. Hero
   ========================================================================== */
.chaika-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(420px, 25vw, 560px);
  height: clamp(420px, 25vw, 560px);
  background: #eef4f8 center center / cover no-repeat;
  background-image: var(--chaika-hero-image);
  border-bottom: 1px solid #e3e9f0;
  overflow: hidden;
}

.chaika-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(248,250,252,.10) 0%, rgba(248,250,252,.035) 32%, rgba(255,255,255,.01) 62%, rgba(255,255,255,0) 82%);
  pointer-events: none;
}

.chaika-hero__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  display: block;
}

.chaika-hero__copy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(780px, 52vw);
  max-width: calc(100% - 48px);
  padding: 20px;
  text-align: center;
  direction: rtl;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.chaika-eyebrow {
  margin: 0 0 7px;
  font-size: 20px;
  font-weight: 800;
  color: var(--chaika-blue);
}

.chaika-hero h1 {
  position: relative;
  margin: 0;
  padding-bottom: 28px;
  color: var(--chaika-navy);
  font-size: clamp(42px, 3.5vw, 64px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.chaika-hero h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: #9bb1c5;
  border-radius: 2px;
}

.chaika-hero__subtitle {
  margin: 21px 0 7px;
  font-size: 25px;
  font-weight: 800;
  color: var(--chaika-navy);
}

.chaika-hero__intro {
  max-width: 720px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.75;
}

/*
 * contain: layout style מבודד את אזור הכפתור מחישובי layout של הטקסט
 * שמעליו. זה מונע את ה-CLS הזעיר (0.003) שנוצר כשה-H1/eyebrow/intro
 * מחליפים פונט.
 */
.chaika-hero__button {
  margin-top: 18px;
  text-align: center;
  contain: layout style;
}

.chaika-hero__note {
  margin: 7px 0 0;
  color: var(--chaika-muted);
  font-size: 13px;
}

.chaika-hero__mobile-image {
  display: none;
}

/* ==========================================================================
   6. כפתורים
   ========================================================================== */
.chaika-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-width: 250px;
  min-height: 60px;
  padding: 12px 30px;
  border-radius: 9px;
  background: var(--chaika-navy);
  color: #fff !important;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 5px 18px rgba(13, 45, 82, .18);
}

.chaika-btn:hover {
  background: var(--chaika-navy-deep);
  color: #fff !important;
}

.chaika-btn svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.chaika-btn--hero {
  min-width: 320px;
  min-height: 72px;
  font-size: 24px;
}

/* ==========================================================================
   7. תוכן וכרטיסיות
   ========================================================================== */
.chaika-section { padding: 62px 24px; }
.chaika-about { background: #fff; padding-bottom: 30px; }
.chaika-copy { max-width: 980px; margin: 0 auto; text-align: center; }

.chaika-copy h2 {
  margin: 0 0 24px;
  color: var(--chaika-navy);
  font-size: 38px;
  line-height: 1.2;
}

.chaika-copy p {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.9;
}

.chaika-quote-light-box {
  max-width: 900px;
  margin: 56px auto 0;
  padding: 26px 30px;
  background: #f7f9fc;
  border-right: 3px solid var(--chaika-blue);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  border-left: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(15, 37, 69, .04);
}

.chaika-quote-light-box__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.chaika-quote-light-box blockquote { margin: 0; }

.chaika-quote-light-box__text-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.chaika-quote-light-box__mark {
  font-size: 4.8rem;
  line-height: 1;
  font-family: "Heebo", Arial, sans-serif;
  font-weight: 900;
  color: var(--chaika-blue);
  opacity: .85;
  user-select: none;
}

.chaika-quote-light-box__mark--start { margin-top: -4px; margin-left: 2px; }
.chaika-quote-light-box__mark--end { margin-top: 4px; margin-right: 2px; }

.chaika-quote-light-box__text {
  margin: 0;
  color: #0f2545;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.65;
  text-align: center;
  letter-spacing: 1.2px;
}

.chaika-quote-light-box__author-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
  border-right: 2px solid #cbd5e1;
  padding-right: 12px;
}

.chaika-quote-light-box__name {
  color: #1e293b;
  font-size: .9rem;
  font-weight: 700;
}

.chaika-quote-light-box__source {
  color: #475569;
  font-size: .78rem;
}

.chaika-sources {
  background: #fff;
  padding-top: 42px;
  padding-bottom: 42px;
}

.chaika-sources__copy { max-width: 980px; }

.chaika-sources__links {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  direction: rtl;
}

.chaika-sources__links li { margin: 0; padding: 0; }

.chaika-source-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--chaika-blue);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.chaika-source-link:hover,
.chaika-source-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chaika-source-link__icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  border: 1px solid #b9c9d9;
  border-radius: 7px;
  background: #f7fafc;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.chaika-source-link__icon img {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}

.chaika-cards {
  padding-top: 35px;
  background: var(--chaika-soft);
}

.chaika-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.chaika-card {
  background: #fff;
  border: 1px solid var(--chaika-line);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  min-height: 235px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 4px 16px rgba(18, 58, 104, .04);
}

.chaika-card h3 {
  margin: 13px 0 9px;
  color: var(--chaika-navy);
  font-size: 22px;
}

.chaika-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
}

/* ==========================================================================
   8. CTA תחתון
   ========================================================================== */
.chaika-archive-cta {
  margin: 34px auto 56px;
  width: min(100% - 48px, var(--chaika-max));
  border-radius: 12px;
  padding: 35px 42px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 260px;
  align-items: center;
  gap: 25px;
  position: relative;
  overflow: hidden;
  background-color: var(--chaika-soft-2);
  background-image:
    linear-gradient(rgba(247, 248, 249, 0.82), rgba(247, 248, 249, 0.82)),
    url('assets/images/cta5.webp');
  background-size: auto 100%;
  background-position: top right;
  background-repeat: no-repeat;
}

.chaika-archive-cta > * {
  position: relative;
  z-index: 1;
}

.chaika-archive-cta__icon {
  width: 72px;
  height: 72px;
  color: var(--chaika-navy);
}

.chaika-archive-cta h2 {
  margin: 0 0 5px;
  color: var(--chaika-navy);
  font-size: 28px;
}

.chaika-archive-cta p {
  margin: 0;
  font-size: 17px;
}

.chaika-archive-cta .chaika-btn {
  min-width: 250px;
  min-height: 60px;
}

.chaika-footer__collaboration {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .82);
}

/* ==========================================================================
   9. פוטר
   ========================================================================== */
.chaika-footer {
  background: var(--chaika-navy);
  color: #fff;
  margin: 0;
}

.chaika-footer__inner {
  width: min(100% - 48px, var(--chaika-max));
  margin: auto;
  padding: 42px 0 30px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 42px;
}

.chaika-footer h3 {
  font-size: 20px;
  margin: 0 0 14px;
}

.chaika-footer p,
.chaika-footer li,
.chaika-footer a {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .9);
}

.chaika-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chaika-footer li + li { margin-top: 4px; }

.chaika-contact-item {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 5px 0;
}

.chaika-contact-item span:first-child { width: 22px; }

.chaika-socials {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.chaika-socials a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.chaika-socials svg {
  width: 18px;
  height: 18px;
}

.chaika-footer__bottom {
  background: var(--chaika-navy-deep);
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 12px 24px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, .9);
  min-height: 52px;
  line-height: 1.6;
  font-weight: 400;
}

.chaika-footer,
.chaika-footer button,
.chaika-footer input,
.chaika-footer textarea,
.chaika-footer select {
  font-family: "Heebo", Arial, sans-serif;
}

.chaika-footer__legal-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

.chaika-footer__legal-links a {
  font: inherit;
  line-height: inherit;
}

.chaika-footer__legal-separator { opacity: .55; }

.chaika-footer__copyright {
  font: inherit;
  line-height: inherit;
  white-space: nowrap;
}

.chaika-waze-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 4px;
  flex: 0 0 30px;
}

.chaika-waze-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.chaika-footer a:hover,
.chaika-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* ============================================================================
   10. Language-aware layout
   -----------------------------------------------------------------------------
   TranslatePress supplies the active locale. The theme mirrors directional
   layout with CSS rather than duplicating markup for Hebrew and English.
   ============================================================================ */
body.chaika-site.chaika-lang-en {
  direction: ltr;
}

/* Elements that intentionally declared RTL for the Hebrew layout. */
body.chaika-site.chaika-lang-en .chaika-hero__copy,
body.chaika-site.chaika-lang-en .chaika-hero__inner,
body.chaika-site.chaika-lang-en .chaika-sources__links {
  direction: ltr;
}

body.chaika-site.chaika-lang-en .chaika-quote-light-box__author-tag {
  align-items: flex-start;
  border-right: 0;
  border-left: 2px solid #cbd5e1;
  padding-right: 0;
  padding-left: 12px;
}

body.chaika-site.chaika-lang-en .chaika-quote-light-box__text-wrapper {
  direction: ltr;
}

body.chaika-site.chaika-lang-en .chaika-standard-page__content,
body.chaika-site.chaika-lang-en .chaika-copy,
body.chaika-site.chaika-lang-en .chaika-footer {
  text-align: left;
}

body.chaika-site.chaika-lang-en .chaika-archive-cta {
  background-position: top left;
}

/* The large TranslatePress floating switcher is replaced by the compact footer control. */
body.chaika-site .trp-floater-ls {
  display: none !important;
}

.chaika-language-switcher {
  margin-top: 12px;
  min-height: 32px;
}

.chaika-language-switcher__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 36px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 7px;
  text-decoration: none;
}

.chaika-language-switcher__link img {
  display: block;
  width: 32px;
  height: 21px;
  object-fit: cover;
}

.chaika-language-switcher__link:hover,
.chaika-language-switcher__link:focus-visible {
  background: rgba(255, 255, 255, .10);
  text-decoration: none;
}

@media (max-width: 980px) {
  /* On mobile the Hebrew header is intentionally mirrored: logo left, menu right. */
  .chaika-header__inner {
    direction: ltr;
  }

  .chaika-nav {
    direction: rtl;
  }

  body.chaika-site.chaika-lang-en .chaika-nav {
    direction: ltr;
  }

  body.chaika-site .chaika-nav a,
  body.chaika-site.chaika-lang-en .chaika-nav a {
    justify-content: flex-start;
  }

  body.chaika-site .chaika-nav a.is-active:after,
  body.chaika-site.chaika-lang-en .chaika-nav a.is-active:after {
    left: 10px;
    right: auto;
  }
}


/* ============================================================================
   11. Final language-direction refinements
   -----------------------------------------------------------------------------
   Keep the visual hierarchy identical while switching text alignment and
   directional controls cleanly between Hebrew and English.
   ============================================================================ */
html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-sources__copy {
  text-align: center;
}

html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-sources__copy h2,
html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-sources__copy > p {
  text-align: center;
}

html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-sources__links {
  direction: ltr;
  justify-content: center;
}

html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-standard-page__content {
  direction: ltr;
  text-align: left;
}

html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-footer,
html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-footer__inner,
html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-footer__inner > div,
html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-footer__col-center-content,
html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-footer p,
html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-footer h3,
html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-footer ul,
html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-footer li,
html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-footer a {
  direction: ltr;
  text-align: left;
}

html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-footer__bottom {
  direction: ltr;
}

html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-footer__legal-links {
  direction: ltr;
}

@media (min-width: 981px) {
  html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-sources__links {
    flex-wrap: nowrap;
  }
}

@media (max-width: 980px) {
  /* Hebrew mobile: burger on the right, brand on the left. */
  body.chaika-site.chaika-lang-he .chaika-header__inner,
  html[lang^="he"] body.chaika-site .chaika-header__inner {
    direction: ltr !important;
  }

  body.chaika-site.chaika-lang-he .chaika-brand,
  html[lang^="he"] body.chaika-site .chaika-brand {
    order: 1;
  }

  body.chaika-site.chaika-lang-he .chaika-nav-wrap,
  html[lang^="he"] body.chaika-site .chaika-nav-wrap {
    order: 2;
    direction: ltr !important;
  }

  body.chaika-site.chaika-lang-he .chaika-nav-toggle,
  html[lang^="he"] body.chaika-site .chaika-nav-toggle {
    order: 1;
    margin-left: 0;
    margin-right: 0;
  }

  /* English mobile: burger on the left, brand on the right. */
  body.chaika-site.chaika-lang-en .chaika-header__inner,
  html[lang^="en"] body.chaika-site .chaika-header__inner {
    direction: ltr !important;
  }

  body.chaika-site.chaika-lang-en .chaika-nav-wrap,
  html[lang^="en"] body.chaika-site .chaika-nav-wrap {
    order: 1;
    direction: ltr !important;
  }

  body.chaika-site.chaika-lang-en .chaika-brand,
  html[lang^="en"] body.chaika-site .chaika-brand {
    order: 2;
    margin-left: auto;
  }

  body.chaika-site.chaika-lang-en .chaika-nav-toggle,
  html[lang^="en"] body.chaika-site .chaika-nav-toggle {
    order: 1;
    margin-left: 0;
    margin-right: 0;
  }

  /* English mobile footer: every footer block and contact row reads LTR. */
  html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-footer__inner,
  html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-footer__inner > div {
    direction: ltr;
    text-align: left;
  }

  html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-contact-item {
    direction: ltr;
    justify-content: flex-start;
    text-align: left;
  }

  html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-socials,
  html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-language-switcher {
    justify-content: flex-start;
    text-align: left;
  }

  html[lang^="en"] body.chaika-site.chaika-lang-en .chaika-sources__links {
    justify-content: center;
    direction: ltr;
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   10. רספונסיביות
   ========================================================================== */
@media (min-width: 1921px) {
  .chaika-hero__copy { width: 780px; max-width: 760px; padding: 24px; }
  .chaika-hero h1 { font-size: 64px; }
  .chaika-hero__subtitle { font-size: 25px; }
  .chaika-hero__intro { font-size: 19px; }
}

@media (max-width: 768px) {
  .chaika-quote-light-box { margin-top: 42px; padding: 24px 20px; }
  .chaika-quote-light-box__text { font-size: 1.08rem; line-height: 1.65; letter-spacing: .4px; }
  .chaika-quote-light-box__author-tag {
    border-right: 0;
    padding-right: 0;
    align-items: center;
    width: 100%;
    margin-top: 4px;
  }
  .chaika-quote-light-box__content {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  /* Keep English quote attribution centered on mobile. */
  html[lang^="en"] body.chaika-site .chaika-quote-light-box__author-tag {
    align-items: center;
    justify-content: center;
    text-align: center;
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 980px) {
  .chaika-header__inner { min-height: 70px; padding: 0 16px; }
  .chaika-brand { font-size: 21px; }
  .chaika-nav-toggle { display: block; }

  .chaika-nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 16px;
    right: 16px;
    background: #fff;
    border: 1px solid var(--chaika-line);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(18, 58, 104, .14);
    flex-direction: column;
    align-items: stretch;
    padding: 7px;
  }

  .chaika-nav.is-open { display: flex; }

  .chaika-nav a {
    min-height: 44px;
    justify-content: flex-end;
    padding: 10px 14px;
  }

  .chaika-nav a.is-active:after {
    left: auto;
    right: 10px;
    bottom: 6px;
    width: 28px;
  }

  .chaika-hero {
    background: none !important;
    min-height: 0;
    height: auto;
  }

  .chaika-hero:after { display: none; }

  .chaika-hero__inner {
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    direction: rtl;
  }

  .chaika-hero__copy {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    padding: 24px 18px 12px;
    display: flex;
    text-align: center;
  }

  .chaika-eyebrow { font-size: 17px; order: 1; }

  .chaika-hero h1 {
    order: 2;
    white-space: normal;
    font-size: clamp(36px, 10vw, 52px);
    margin-top: 2px;
    padding-bottom: 22px;
  }

  .chaika-hero h1::after { width: 80px; height: 1.5px; }
  .chaika-hero__subtitle { order: 3; font-size: 22px; margin: 18px 0 7px; }
  .chaika-hero__intro { order: 4; font-size: 17px; line-height: 1.8; }
  .chaika-hero__button { order: 5; margin-top: 16px; }

  .chaika-btn--hero {
    min-width: min(100%, 370px);
    min-height: 70px;
    font-size: 21px;
  }

  .chaika-hero__note { font-size: 13px; }

  .chaika-hero__mobile-image {
    display: block;
    order: 7;
    width: min(100%, 560px);
    height: auto;
    aspect-ratio: 0.91/1;
    margin: 16px auto 0;
  }

  .chaika-section { padding: 48px 18px; }
  .chaika-standard-page { padding: 48px 18px 64px; }
  .chaika-standard-page__content { font-size: 17px; line-height: 1.8; }
  .chaika-copy h2 { font-size: 30px; }
  .chaika-copy p { font-size: 17px; line-height: 1.85; }

  /* Keep the informational cards and archive CTA available on mobile. */
  .chaika-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .chaika-card {
    min-height: 0;
  }

  .chaika-archive-cta {
    display: grid;
    grid-template-columns: 1fr;
    width: calc(100% - 36px);
    margin: 24px auto 40px;
    padding: 28px 18px 32px;
    text-align: center;
  }

  .chaika-archive-cta .chaika-btn {
    width: min(100%, 370px);
    min-width: 0;
    justify-self: center;
  }

  .chaika-footer__inner {
    width: 100%;
    padding: 34px 18px 24px;
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .chaika-footer__bottom { min-height: 60px; padding: 12px 18px; font-size: 14px; }
  .chaika-footer__legal-links { gap: 8px; }
  .chaika-footer__copyright { white-space: normal; }
  .chaika-sources__links { gap: 13px 20px; }
}

@media (max-width: 430px) {
  .chaika-hero__mobile-image { width: min(100%, 430px); }
  .chaika-hero h1 { font-size: 36px; }
  .chaika-hero__subtitle { font-size: 20px; }
  .chaika-hero__intro { font-size: 16px; }
  .chaika-btn--hero { min-height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================================================
   12. Accessibility and layout-stability refinements
   ----------------------------------------------------------------------------
   English content is explicitly LTR. Fixed intrinsic dimensions are retained
   for small source icons so image decoding cannot introduce a late reflow.
   ============================================================================ */
html[lang^="en"] body.chaika-site .chaika-standard-page__content,
html[lang^="en"] body.chaika-site .chaika-standard-page__content * {
  direction: ltr;
}

html[lang^="en"] body.chaika-site .chaika-standard-page__content {
  text-align: left;
}

html[lang^="en"] body.chaika-site .chaika-standard-page__content p,
html[lang^="en"] body.chaika-site .chaika-standard-page__content li,
html[lang^="en"] body.chaika-site .chaika-standard-page__content h2,
html[lang^="en"] body.chaika-site .chaika-standard-page__content h3,
html[lang^="en"] body.chaika-site .chaika-standard-page__content h4,
html[lang^="en"] body.chaika-site .chaika-standard-page__content blockquote,
html[lang^="en"] body.chaika-site .chaika-standard-page__content div {
  text-align: left;
}

html[lang^="en"] body.chaika-site .chaika-sources__copy,
html[lang^="en"] body.chaika-site .chaika-sources__copy h2,
html[lang^="en"] body.chaika-site .chaika-sources__copy > p {
  text-align: center;
}

/* Keep the main About section centered in English, matching the Hebrew hierarchy. */
html[lang^="en"] body.chaika-site .chaika-about .chaika-copy,
html[lang^="en"] body.chaika-site .chaika-about .chaika-copy h2,
html[lang^="en"] body.chaika-site .chaika-about .chaika-copy > p {
  text-align: center;
}

html[lang^="en"] body.chaika-site .chaika-sources__links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.chaika-source-link__icon,
.chaika-source-link__icon img {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
}

.chaika-source-link__icon img {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
}

@media (max-width: 980px) {
  html[lang^="en"] body.chaika-site .chaika-footer,
  html[lang^="en"] body.chaika-site .chaika-footer * {
    direction: ltr;
  }

  html[lang^="en"] body.chaika-site .chaika-footer,
  html[lang^="en"] body.chaika-site .chaika-footer p,
  html[lang^="en"] body.chaika-site .chaika-footer h3,
  html[lang^="en"] body.chaika-site .chaika-footer ul,
  html[lang^="en"] body.chaika-site .chaika-footer li,
  html[lang^="en"] body.chaika-site .chaika-footer a {
    text-align: left;
  }
}
