/* Knesset corpus branding bar — injected into the Crystal frontend via Apache mod_substitute.
   Host-served from /brand/ so it survives container recreation (the Crystal image is ephemeral). */
#knesset-brandbar {
  position: fixed; top: 0; left: 0; right: 0; height: 48px; z-index: 2147483000;
  display: flex; align-items: center; gap: 12px; padding: 0 14px;
  background: #fff; border-bottom: 1px solid #e5e7eb; box-shadow: 0 1px 4px rgba(0,0,0,.06);
  font-family: -apple-system, Segoe UI, Roboto, Arial, "Noto Sans Hebrew", sans-serif;
  direction: rtl; box-sizing: border-box;
}
/* push the Crystal app down so the bar doesn't cover its toolbar */
body.crystal-open, body.SkE { padding-top: 48px !important; }
html { scroll-padding-top: 48px; }

/* remove the NoSketch loading-splash logo (frontend image is ephemeral, so do it host-side) */
img[src*="logo_noske_300_uk"] { display: none !important; }

/* sidenav cleanup: hide the NoSketch logo, Dashboard, and the Sketch-Engine-only tools.
   Kept: Select corpus, Concordance, Parallel Concordance, Wordlist, Keywords, Trends. */
#side-nav #navMain,
#side-nav li[data-page="dashboard"],
#side-nav li[data-page="wordsketch"],
#side-nav li[data-page="sketchdiff"],
#side-nav li[data-page="thesaurus"],
#side-nav li[data-page="ngrams"] { display: none !important; }

/* cookie-consent banner: suppress entirely — hide both the <gdpr> riot element (the bar)
   and the .gdpr-agreement-dialog settings modal. (The optional analytics/marketing cookies
   are injected by Cloudflare downstream, addressed separately at the Cloudflare layer.) */
gdpr, .gdpr-agreement-dialog { display: none !important; }

/* hide embedded YouTube tutorial videos (also disabled at source via DISABLE_EMBEDDED_YOUTUBE) —
   they're hosted on the Sketch Engine channel, so the player chrome leaks that branding. */
iframe[src*="youtube.com"], iframe[src*="youtube-nocookie.com"], iframe[src*="youtu.be"] { display: none !important; }

/* ---- one-time landing overlay ---- */
#knesset-landing {
  position: fixed; inset: 0; z-index: 2147483600; background: #0b3d2e;
  display: flex; align-items: center; justify-content: center; direction: rtl; padding: 16px;
  font-family: -apple-system, Segoe UI, Roboto, Arial, "Noto Sans Hebrew", sans-serif;
}
#knesset-landing .kl-card {
  background: #fff; border-radius: 16px; padding: 30px 28px; max-width: 480px; width: 92%;
  text-align: center; box-shadow: 0 12px 44px rgba(0,0,0,.35);
}
#knesset-landing .kl-logo { max-width: 280px; width: 82%; height: auto; margin: 0 auto 6px; }
#knesset-landing h1 { font-size: 24px; color: #0b3d2e; margin: 6px 0 2px; }
#knesset-landing .kl-sub { color: #6b7280; font-size: 14px; }
#knesset-landing .kl-intro { font-size: 15px; color: #374151; line-height: 1.7; margin: 16px 0 22px; }
#knesset-landing .kl-enter {
  background: #13b074; color: #fff; border: 0; border-radius: 24px; padding: 12px 44px;
  font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
#knesset-landing .kl-enter:hover { background: #0e9460; }
#knesset-landing .kl-help { display: block; margin-top: 14px; color: #0b6; font-size: 14px; text-decoration: none; }
#knesset-landing .kl-opneu { height: 30px; margin-top: 22px; opacity: .85; }

#knesset-brandbar a { text-decoration: none; }
#knesset-brandbar .kb-logo { display: flex; align-items: center; height: 48px; flex: 0 0 auto; }
#knesset-brandbar .kb-logo img { width: auto; display: block; }
#knesset-brandbar .kb-knesset img { height: 36px; }
#knesset-brandbar .kb-opneu img { height: 28px; }
#knesset-brandbar .kb-titles { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; }
#knesset-brandbar .kb-title { font-size: 15px; font-weight: 700; color: #0b3d2e; }
#knesset-brandbar .kb-sub { font-size: 11px; color: #6b7280; }
#knesset-brandbar .kb-spacer { flex: 1 1 auto; }
#knesset-brandbar .kb-help {
  font-size: 13px; font-weight: 600; color: #fff; background: #13b074;
  border-radius: 16px; padding: 6px 14px; white-space: nowrap;
}
#knesset-brandbar .kb-help:hover { background: #0e9460; }

@media (max-width: 560px) {
  #knesset-brandbar .kb-sub { display: none; }
  #knesset-brandbar .kb-opneu { display: none; }
  #knesset-brandbar .kb-knesset img { height: 30px; }
}

/* Hide Crystal's hardcoded Sketch Engine "OneClick Terms" promo on the Keywords page
   (bundle.js keywords template: <a class="octAd" href="https://terms.sketchengine.eu/">).
   No config.js flag exists for it. */
.octAd { display: none !important; }
