#pi-admin-modal,
#pi-admin-shell {
  box-sizing: border-box;
  direction: ltr;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* Keep the biography text away from the screen edge on compact laptops. */
@media (min-width: 981px) and (max-width: 1366px) {
  body.home .et_pb_row_3 {
    box-sizing: border-box;
    padding-inline: clamp(24px, 2.5vw, 36px) !important;
  }
}


#pi-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 7, 25, 0.72);
  backdrop-filter: blur(8px);
}

#pi-admin-modal[hidden],
#pi-admin-shell[hidden] {
  display: none !important;
}

.pi-admin-dialog {
  width: min(100%, 390px);
  color: #17203a;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  padding: 26px;
  text-align: left;
}

.pi-admin-dialog h2 {
  margin: 0 0 8px;
  padding: 0;
  color: #10182e;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.25;
}

.pi-admin-dialog p {
  margin: 0 0 18px;
  padding: 0;
  color: #5c6478;
  font-size: 14px;
  line-height: 1.45;
}

.pi-admin-code-label {
  display: block;
  margin-bottom: 7px;
  color: #39425a;
  font-size: 13px;
  font-weight: 700;
}

#pi-admin-code {
  width: 100%;
  height: 54px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 14px;
  color: #0c1530;
  background: #f6f8fc;
  border: 1px solid #cbd2df;
  border-radius: 11px;
  outline: none;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

#pi-admin-code:focus {
  border-color: #315efb;
  box-shadow: 0 0 0 3px rgba(49, 94, 251, 0.16);
}

#pi-admin-code:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.pi-admin-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.pi-admin-button {
  appearance: none;
  min-height: 42px;
  box-sizing: border-box;
  border: 0;
  border-radius: 10px;
  padding: 9px 15px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.pi-admin-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.pi-admin-button-primary {
  flex: 1;
  color: #fff;
  background: #315efb;
}

.pi-admin-button-primary:hover:not(:disabled) {
  background: #244bd8;
}

.pi-admin-button-secondary {
  color: #28324d;
  background: #edf0f6;
}

#pi-admin-message {
  min-height: 20px;
  margin: 11px 0 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 650;
}

#pi-admin-message.pi-admin-message-ok {
  color: #067647;
}

#pi-admin-shell {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2147483645;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px;
  color: #f8faff;
  background: rgba(9, 16, 39, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

#pi-admin-shell .pi-admin-button {
  min-height: 40px;
  color: #f8faff;
  background: #253150;
  white-space: nowrap;
}

#pi-admin-shell .pi-admin-button:hover:not(:disabled) {
  background: #34446e;
}

#pi-admin-shell .pi-admin-save {
  background: #246bfd;
}

#pi-admin-shell .pi-admin-save:hover:not(:disabled) {
  background: #1453d9;
}

.pi-admin-language-links {
  display: flex;
  gap: 5px;
  margin-left: auto;
}

.pi-admin-language-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 38px;
  box-sizing: border-box;
  padding: 6px 9px;
  color: #dce4ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.pi-admin-language-links a:hover,
.pi-admin-language-links a[aria-current="page"] {
  color: #fff;
  background: #315efb;
  border-color: #315efb;
}

#pi-admin-bar-status {
  max-width: 260px;
  overflow: hidden;
  color: #b8c3df;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pi-admin-editable {
  min-width: 0.35em;
  border-radius: 3px;
  outline: 1px dashed rgba(49, 94, 251, 0.72);
  outline-offset: 2px;
  cursor: text;
  background: rgba(255, 244, 143, 0.1);
}

.pi-admin-editable:hover {
  outline-color: #ffb000;
  background: rgba(255, 224, 92, 0.22);
}

.pi-admin-editable:focus {
  outline: 2px solid #315efb;
  background: rgba(255, 255, 255, 0.94);
  color: #111a31;
  box-shadow: 0 2px 14px rgba(16, 24, 48, 0.18);
}

body.pi-admin-active {
  padding-bottom: 84px !important;
}

@media (max-width: 760px) {
  #pi-admin-shell {
    flex-wrap: wrap;
  }

  #pi-admin-shell .pi-admin-button {
    flex: 1 1 auto;
    padding-inline: 11px;
  }

  .pi-admin-language-links {
    order: 2;
    margin-left: 0;
  }

  #pi-admin-bar-status {
    order: 3;
    flex: 1 0 100%;
    max-width: none;
    text-align: center;
  }

  body.pi-admin-active {
    padding-bottom: 132px !important;
  }
}


/* Hidden entry: after eight clicks the only visible object is the code field. */
.pi-admin-code-only {
  width: min(82vw, 310px);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.pi-admin-code-only #pi-admin-code {
  height: 58px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}

#pi-admin-code.pi-admin-code-error {
  border-color: #df2c2c;
  animation: pi-code-shake .28s linear 2;
}

@keyframes pi-code-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}

#pi-blog-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 7, 25, 0.78);
  backdrop-filter: blur(10px);
  direction: ltr;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

#pi-blog-modal[hidden] { display: none !important; }

.pi-blog-dialog {
  width: min(720px, 96vw);
  max-height: 92vh;
  overflow: auto;
  box-sizing: border-box;
  padding: 22px;
  color: #17203a;
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 28px 90px rgba(0,0,0,.42);
}

.pi-blog-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
  color: #121a30;
  font-size: 20px;
}

#pi-blog-close {
  border: 0;
  background: transparent;
  color: #596174;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.pi-blog-dialog label {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  color: #39425a;
  font-size: 13px;
  font-weight: 700;
}

.pi-blog-dialog input[type="text"],
.pi-blog-dialog input[type="url"],
.pi-blog-dialog input[type="date"],
.pi-blog-dialog input[type="file"],
.pi-blog-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  color: #151c31;
  background: #f7f8fb;
  border: 1px solid #cbd2df;
  border-radius: 9px;
  font: inherit;
  font-weight: 500;
}

.pi-blog-dialog textarea { resize: vertical; min-height: 170px; line-height: 1.5; }
.pi-blog-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.pi-blog-actions { display: flex; justify-content: flex-end; gap: 9px; }
#pi-blog-message { min-height: 20px; margin-top: 8px; color: #b42318; font-size: 13px; }

#pi-dynamic-blog-posts > .pi-dynamic-blog-post {
  position: relative;
  margin-bottom: 54px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.pi-blog-image-wrap { margin-top: 18px !important; }
.pi-blog-image { width: min(100%, 620px); height: auto; border-radius: 8px; }
.pi-blog-delete { margin-top: 12px; color: #fff; background: #a82323; }

@media (max-width: 620px) {
  .pi-blog-grid { grid-template-columns: 1fr; gap: 0; }
  .pi-blog-dialog { padding: 17px; }
}

/* v7: the Israeli-songs navigation item uses exactly the same white treatment as the other menu buttons. */
.pi-israeli-nav-col .et_pb_button,
.pi-israeli-nav-col .et_pb_button:hover,
.pi-israeli-nav-col .et_pb_button:focus,
.pi-israeli-mobile-nav .et_pb_button,
.pi-israeli-mobile-nav .et_pb_button:hover,
.pi-israeli-mobile-nav .et_pb_button:focus {
  color: #fff !important;
  border-color: rgba(255,255,255,.59) !important;
  border-radius: 34px !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Hidden entry: after eight logo clicks the only visible object is the code field. */

body.pi-admin-structure-active .et_pb_section.pi-structure-section,
body.pi-admin-structure-active .et_pb_module.pi-structure-module {
  position: relative !important;
}

body.pi-admin-structure-active .et_pb_section.pi-structure-section {
  outline: 2px dashed rgba(27, 109, 230, .72);
  outline-offset: -2px;
}

body.pi-admin-structure-active .et_pb_module.pi-structure-module {
  outline: 1px dashed rgba(25, 103, 210, .38);
  outline-offset: 2px;
}

.pi-structure-controls {
  position: absolute;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 4px;
  direction: ltr;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

.pi-structure-controls-section {
  top: 7px;
  right: 8px;
  opacity: 1;
  pointer-events: auto;
}

.pi-structure-controls-module {
  top: -29px;
  right: 0;
}

.pi-structure-module:hover > .pi-structure-controls-module,
.pi-structure-module:focus-within > .pi-structure-controls-module {
  opacity: 1;
  pointer-events: auto;
}

.pi-structure-btn {
  min-width: 28px;
  height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: rgba(20, 32, 55, .93);
  box-shadow: 0 3px 12px rgba(0,0,0,.24);
  font: 600 11px/26px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.pi-structure-btn:hover { background: #183e7f; }
.pi-structure-danger { background: #a52626; }
.pi-structure-danger:hover { background: #c52f2f; }

.pi-admin-image-editable {
  cursor: pointer !important;
  outline: 2px dashed rgba(31, 111, 228, .5);
  outline-offset: 3px;
}

.pi-user-section {
  min-height: 160px;
}

.pi-user-text-module {
  padding: 18px 0;
}

#pi-admin-structure[aria-pressed="true"] {
  background: #1f6fe5 !important;
  color: #fff !important;
}

@media (max-width: 767px) {
  .pi-structure-controls-section {
    position: sticky;
    top: 4px;
    justify-content: flex-end;
    padding: 4px;
  }
  .pi-structure-controls-module {
    top: -27px;
  }
  .pi-structure-btn {
    padding: 0 6px;
    font-size: 10px;
  }
}

.pi-user-plain-section {
  box-sizing: border-box;
  width: min(1080px, 90%);
  margin: 34px auto;
  padding: 28px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}
