/* [myshul_header] : the site header ( .mysh ) and its menu for small screens ( .mysh-drawer , moved to the end of the page ).
 * Left : the site logo. Right : call and email , small , then the menu , each item opening the one shared panel.
 * The sticky header is the same bar with .mysh-sticky : slimmer , fixed to the top , slid in by the script.
 * Every state of a link and a button is written out , so a theme's own rules stay out.
 * The compact layout is in myshul_header_mobile.css. */

:root:not(#mys) :is(.mysh, .mysh-drawer) {
    --mysh-ink: var(--e-global-color-text, #1f2126); --mysh-muted: #5b616e; --mysh-line: #e3e4e8; --mysh-soft: #f3f4f6;
    --mysh-primary: var(--mys-primary, var(--e-global-color-primary, #0058ff)); --mysh-on-primary: var(--mys-on-primary, #fff);
    /* behind the item that is open , and a row that is pointed at */
    --mysh-tint: color-mix(in srgb, var(--mysh-primary) 11%, #fff);
    color: var(--mysh-ink); font-family: inherit; font-size: 15px; line-height: 1.3; text-align: left;
}
:root:not(#mys) :is(.mysh, .mysh-drawer) *, :root:not(#mys) :is(.mysh, .mysh-drawer) *::before, :root:not(#mys) :is(.mysh, .mysh-drawer) *::after { box-sizing: border-box; }
:root:not(#mys) :is(.mysh, .mysh-drawer) [hidden] { display: none !important; }
/* the class twice : a theme's rule for links inside its content area ( .entry-content a ) must not win */
:root:not(#mys) :is(.mysh.mysh, .mysh-drawer.mysh-drawer) a, :root:not(#mys) :is(.mysh.mysh, .mysh-drawer.mysh-drawer) a:hover, :root:not(#mys) :is(.mysh.mysh, .mysh-drawer.mysh-drawer) a:focus, :root:not(#mys) :is(.mysh.mysh, .mysh-drawer.mysh-drawer) a:active { text-decoration: none; box-shadow: none; }
:root:not(#mys) :is(.mysh, .mysh-drawer) a, :root:not(#mys) :is(.mysh, .mysh-drawer) a:hover, :root:not(#mys) :is(.mysh, .mysh-drawer) a:focus, :root:not(#mys) :is(.mysh, .mysh-drawer) a:active { color: inherit; }
:root:not(#mys) :is(.mysh, .mysh-drawer) button, :root:not(#mys) :is(.mysh, .mysh-drawer) button:hover, :root:not(#mys) :is(.mysh, .mysh-drawer) button:focus, :root:not(#mys) :is(.mysh, .mysh-drawer) button:active {
    margin: 0; border: 0; background: none; color: inherit; box-shadow: none; font: inherit; letter-spacing: 0; text-transform: none; text-decoration: none; cursor: pointer;
}
:root:not(#mys) :is(.mysh, .mysh-drawer) :is(a, button):focus-visible { outline: 2px solid var(--mysh-ink); outline-offset: 2px; }
:root:not(#mys) :is(.mysh, .mysh-drawer) ul { margin: 0; padding: 0; list-style: none; }
:root:not(#mys) :is(.mysh, .mysh-drawer) li { margin: 0; padding: 0; }
:root:not(#mys) :is(.mysh, .mysh-drawer) p { margin: 0; }
:root:not(#mys) :is(.mysh, .mysh-drawer) svg { flex: none; }

:root:not(#mys) .mysh { position: relative; z-index: 9980; width: 100%; background: #fff; border-bottom: 1px solid #dcdfe4; }
/* as wide as the Design tab says , with the same room at the sides ( Design tab > Page width and spacing ) */
:root:not(#mys) .mysh .mysh-inner {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 96px;
    max-width: calc(var(--mys-width, 1450px) + 2 * var(--mys-pad, 30px)); margin: 0 auto; padding: 10px var(--mys-pad, 30px);
}
@media (max-width: 1024px) { :root:not(#mys) .mysh .mysh-inner { padding-left: var(--mys-pad-x, 10px); padding-right: var(--mys-pad-x, 10px); } }

/* ---------- the logo , on the left ---------- */
:root:not(#mys) .mysh .mysh-burger, :root:not(#mys) .mysh .mysh-quick { display: none; }
:root:not(#mys) :is(.mysh, .mysh-drawer) .mysh-logo { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; }
/* never stretched : the width follows the height */
:root:not(#mys) :is(.mysh, .mysh-drawer) .mysh-logo img { display: block; width: auto; height: auto; max-height: 68px; max-width: min(260px, 100%); object-fit: contain; }
:root:not(#mys) :is(.mysh, .mysh-drawer) .mysh-logo span { font-size: 20px; font-weight: 800; line-height: 1.2; white-space: nowrap; }

/* ---------- the right side : contacts over the menu ---------- */
:root:not(#mys) .mysh .mysh-side { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* call and email : a small grey line , its icons the size of its words */
:root:not(#mys) .mysh .mysh-contact { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
:root:not(#mys) .mysh .mysh-contact .mysh-contact-link, :root:not(#mys) .mysh .mysh-contact .mysh-contact-link:focus { color: #7b828d; }
:root:not(#mys) .mysh .mysh-contact .mysh-contact-link { display: inline-flex; align-items: center; gap: 6px; transition: color .15s ease; }
:root:not(#mys) .mysh .mysh-contact .mysh-contact-link > svg { flex: none; width: 1.15em; height: 1.15em; color: inherit; }
/* pointed at : the site's primary color , nothing underlined */
:root:not(#mys) .mysh .mysh-contact .mysh-contact-link:hover { color: var(--e-global-color-primary, var(--mysh-ink)); text-decoration: none; }
:root:not(#mys) .mysh .mysh-contact-line { width: 1px; height: 12px; background: #cfd3d9; }

/* ---------- the menu ---------- */
:root:not(#mys) .mysh .mysh-nav { max-width: 100%; }
:root:not(#mys) .mysh .mysh-menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 2px; margin-right: -12px; }
:root:not(#mys) .mysh .mysh-item { flex: none; }
:root:not(#mys) .mysh .mysh-top-link, :root:not(#mys) .mysh .mysh-top-link:hover, :root:not(#mys) .mysh .mysh-top-link:focus, :root:not(#mys) .mysh .mysh-top-link:active {
    display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 12px; border-radius: 9px;
    color: var(--mysh-ink); font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap; transition: background-color .16s ease;
}
:root:not(#mys) .mysh .mysh-top-link svg { color: #8a909b; transition: transform .2s ease; }
:root:not(#mys) .mysh .mysh-top-link:hover, :root:not(#mys) .mysh .mysh-item.is-open .mysh-top-link { background: var(--mysh-tint); }
:root:not(#mys) .mysh .mysh-item.is-open .mysh-top-link svg { transform: rotate(180deg); }

/* a menu item shown as a button : its look comes from the Design tab */
:root:not(#mys) .mysh .mysh-item-button { margin: 0 12px 0 8px; }
:root:not(#mys) .mysh .mysh-item-button:last-child { margin-right: 12px; }
:root:not(#mys) :is(.mysh, .mysh-drawer) .mysh-button, :root:not(#mys) :is(.mysh, .mysh-drawer) .mysh-button:hover, :root:not(#mys) :is(.mysh, .mysh-drawer) .mysh-button:focus, :root:not(#mys) :is(.mysh, .mysh-drawer) .mysh-button:active {
    display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 22px;
    border-radius: var(--mys-button-radius, 100px); background: var(--mysh-primary); color: var(--mysh-on-primary);
    font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap; transition: transform .18s ease, box-shadow .18s ease;
}
:root:not(#mys) :is(.mysh, .mysh-drawer) .mysh-button:hover { transform: scale(1.035); box-shadow: 0 8px 22px rgba(15, 17, 22, .22); }
:root:not(#mys) :is(.mysh, .mysh-drawer) .mysh-button:active { transform: scale(.99); }

:root:not(#mys) :is(.mysh, .mysh-drawer) .mysh-icon-link, :root:not(#mys) :is(.mysh, .mysh-drawer) .mysh-icon-link:hover, :root:not(#mys) :is(.mysh, .mysh-drawer) .mysh-icon-link:focus {
    display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 9px; border-radius: 9px;
    color: var(--mysh-ink); transition: background-color .16s ease;
}
:root:not(#mys) .mysh .mysh-icon-link:hover { background: var(--mysh-soft); }

/* ---------- the shared panel ----------
 * One box under the menu. The script gives it the place and the size of the open item's panel ; going
 * from one item to the next it slides and resizes , and the panels cross-fade inside it. */
:root:not(#mys) .mysh .mysh-drop {
    position: absolute; top: 100%; left: 0; z-index: 6; width: 240px; height: 100px;
    border: 1px solid var(--mysh-line); border-radius: 14px; background: #fff; box-shadow: 0 18px 44px rgba(15, 17, 22, .16);
    opacity: 0; pointer-events: none; transform: translate(var(--mysh-x, 0px), -6px);
    transition: opacity .16s ease, transform .16s ease;
}
/* keeps the pointer inside on the way from the item down to the panel */
:root:not(#mys) .mysh .mysh-drop::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; }
:root:not(#mys) .mysh .mysh-drop.is-open { opacity: 1; pointer-events: auto; transform: translate(var(--mysh-x, 0px), 0); }
/* already open : it travels */
:root:not(#mys) .mysh .mysh-drop.is-open.is-moving { transition: opacity .16s ease, transform .3s cubic-bezier(.3, .9, .3, 1), width .3s cubic-bezier(.3, .9, .3, 1), height .3s cubic-bezier(.3, .9, .3, 1); }
:root:not(#mys) .mysh .mysh-drop-clip { position: absolute; inset: 0; overflow: hidden; border-radius: 13px; }
:root:not(#mys) .mysh .mysh-panel {
    position: absolute; top: 0; left: 0; width: max-content; max-width: var(--mysh-max, 1200px); padding: 16px;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(var(--mysh-from, 0px));
    transition: opacity .16s ease, transform .3s cubic-bezier(.3, .9, .3, 1), visibility 0s linear .16s;
}
:root:not(#mys) .mysh .mysh-panel.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .2s ease .06s, transform .3s cubic-bezier(.3, .9, .3, 1), visibility 0s; }

/* ----- the links of a panel ----- */
:root:not(#mys) .mysh .mysh-links { display: flex; flex-direction: column; }
:root:not(#mys) .mysh .mysh-sub, :root:not(#mys) .mysh a.mysh-sub:hover, :root:not(#mys) .mysh a.mysh-sub:focus {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px;
    color: var(--mysh-ink); font-size: 14.5px; font-weight: 500; line-height: 1.3; transition: background-color .14s ease;
}
:root:not(#mys) .mysh a.mysh-sub:hover { background: var(--mysh-tint); }
:root:not(#mys) .mysh .mysh-panel-list { min-width: 236px; }

/* a group : a column for each of its items , stacked like a newspaper when there are more than four */
:root:not(#mys) .mysh .mysh-panel-mega { width: calc(var(--mysh-cols, 4) * 208px + (var(--mysh-cols, 4) - 1) * 24px + 32px); }
:root:not(#mys) .mysh .mysh-mega { column-count: var(--mysh-cols, 4); column-gap: 24px; }
:root:not(#mys) .mysh .mysh-col { display: block; break-inside: avoid; padding-bottom: 12px; }
:root:not(#mys) .mysh .mysh-col-title, :root:not(#mys) .mysh a.mysh-col-title:hover, :root:not(#mys) .mysh a.mysh-col-title:focus { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; padding: 7px 10px 9px; border-bottom: 1px solid var(--mysh-line); color: var(--mysh-ink); font-size: 15px; font-weight: 800; line-height: 1.3; }
:root:not(#mys) .mysh a.mysh-col-title:hover { color: var(--e-global-color-primary, var(--mysh-ink)); text-decoration: none; }

/* ---------- the sticky header ----------
 * The same bar , slim , waiting above the window : it slides down once the page's own header is out of view. */
:root:not(#mys) .mysh.mysh-sticky {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9990;
    background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transform: translateY(-110%); visibility: hidden;
    transition: transform .28s cubic-bezier(.2, .8, .3, 1), visibility 0s linear .28s;
}
:root:not(#mys) .mysh.mysh-sticky.is-shown { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .3, 1), visibility 0s; }
:root:not(#mys) .mysh.mysh-sticky .mysh-inner { min-height: 68px; padding-top: 0; padding-bottom: 0; }
:root:not(#mys) .mysh.mysh-sticky .mysh-logo img { max-height: 48px; max-width: min(200px, 100%); }
/* under WordPress's own bar for people who are signed in */
:root:not(#mys) .admin-bar .mysh.mysh-sticky { top: 32px; }
@media (max-width: 782px) { :root:not(#mys) .admin-bar .mysh.mysh-sticky { top: 46px; } }
/* WordPress's bar scrolls away with the page on small screens */
@media (max-width: 600px) { :root:not(#mys) .admin-bar .mysh.mysh-sticky { top: 0; } }

/* the menu for small screens only exists there */
:root:not(#mys) .mysh-drawer { display: none; }

@media (max-width: 1280px) {
    :root:not(#mys) .mysh .mysh-inner { gap: 20px; }
    :root:not(#mys) .mysh .mysh-top-link { padding: 0 9px; font-size: 14px; }
    :root:not(#mys) .mysh .mysh-menu { margin-right: -9px; }
    :root:not(#mys) .mysh .mysh-button { padding: 0 18px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    :root:not(#mys) .mysh .mysh-drop, :root:not(#mys) .mysh .mysh-drop.is-open.is-moving, :root:not(#mys) .mysh .mysh-panel, :root:not(#mys) .mysh .mysh-panel.is-active,
    :root:not(#mys) .mysh.mysh-sticky, :root:not(#mys) .mysh.mysh-sticky.is-shown { transition: none; }
}

/* ---------- the top bar : a band in the site's main color. Left : texts taking turns. Right : the MyShul login ---------- */
:root:not(#mys) .mysh .mysh-top { background: var(--mysh-primary); color: var(--mysh-on-primary); font-size: 14px; font-weight: 500; line-height: 1.3; }
:root:not(#mys) .mysh .mysh-top .mysh-top-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px;
    max-width: calc(var(--mys-width, 1450px) + 2 * var(--mys-pad, 30px)); margin: 0 auto; padding: 6px var(--mys-pad, 30px);
}
@media (max-width: 1024px) { :root:not(#mys) .mysh .mysh-top .mysh-top-inner { padding-left: var(--mys-pad-x, 10px); padding-right: var(--mys-pad-x, 10px); } }
:root:not(#mys) .mysh .mysh-top .mysh-ticker { flex: 1 1 auto; min-width: 0; overflow: hidden; }
:root:not(#mys) .mysh .mysh-top .mysh-ticker-text, :root:not(#mys) .mysh .mysh-top .mysh-ticker-text:hover, :root:not(#mys) .mysh .mysh-top .mysh-ticker-text:focus {
    display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: pre; vertical-align: middle; color: var(--mysh-on-primary);
    transition: opacity .35s ease, transform .35s ease;
}
:root:not(#mys) .mysh .mysh-top .mysh-ticker-text:not([href]) { cursor: default; }
/* one text leaves upwards , the next comes up from below */
:root:not(#mys) .mysh .mysh-top .mysh-ticker-text.is-out { opacity: 0; transform: translateY(-8px); }
:root:not(#mys) .mysh .mysh-top .mysh-ticker-text.is-below { opacity: 0; transform: translateY(8px); transition: none; }
:root:not(#mys) .mysh .mysh-top .mysh-login, :root:not(#mys) .mysh .mysh-top .mysh-login:hover, :root:not(#mys) .mysh .mysh-top .mysh-login:focus { flex: none; display: inline-flex; align-items: center; gap: 8px; color: var(--mysh-on-primary); white-space: nowrap; transition: opacity .15s ease; }
:root:not(#mys) .mysh .mysh-top .mysh-login:hover, :root:not(#mys) .mysh .mysh-top .mysh-ticker-text[href]:hover { opacity: .8; }
:root:not(#mys) .mysh .mysh-top :is(a):focus-visible { outline-color: var(--mysh-on-primary); }
@media (prefers-reduced-motion: reduce) { :root:not(#mys) .mysh .mysh-top .mysh-ticker-text { transition: opacity .2s ease; transform: none !important; } }

/* ---------- the full menu ( Header/Footer > Full menu ) : logo on one side , the contacts on the other in the size of the
 * menu's words with their icons in the primary color ; then a line as wide as the header , and under it the menu ,
 * its items spread over the whole width of the page ---------- */
:root:not(#mys) .mysh.mysh-full .mysh-inner { min-height: 88px; }
:root:not(#mys) .mysh.mysh-full .mysh-side { flex-direction: row; align-items: center; justify-content: flex-end; }
:root:not(#mys) .mysh.mysh-full .mysh-contact { gap: 26px; font-size: 15px; font-weight: 700; line-height: 1; }
:root:not(#mys) .mysh.mysh-full .mysh-contact .mysh-contact-link, :root:not(#mys) .mysh.mysh-full .mysh-contact .mysh-contact-link:focus { gap: 9px; color: var(--mysh-ink); }
:root:not(#mys) .mysh.mysh-full .mysh-contact .mysh-contact-link:hover { color: var(--mysh-primary); }
:root:not(#mys) .mysh.mysh-full .mysh-contact .mysh-contact-link > svg { width: 22px; height: 22px; color: var(--mysh-primary); }
:root:not(#mys) .mysh.mysh-full .mysh-contact-line { display: none; }
:root:not(#mys) .mysh.mysh-full .mysh-row { border-top: 1px solid #dcdfe4; }
:root:not(#mys) .mysh.mysh-full .mysh-row-inner { position: relative; max-width: calc(var(--mys-width, 1450px) + 2 * var(--mys-pad, 30px)); margin: 0 auto; padding: 6px var(--mys-pad, 30px); }
@media (max-width: 1024px) { :root:not(#mys) .mysh.mysh-full .mysh-row-inner { padding-left: var(--mys-pad-x, 10px); padding-right: var(--mys-pad-x, 10px); } }
:root:not(#mys) .mysh.mysh-full .mysh-nav { width: 100%; }
/* the first item starts where the logo does , the last one ends where the contacts do */
:root:not(#mys) .mysh.mysh-full .mysh-menu { flex-wrap: nowrap; justify-content: space-between; gap: 8px; margin: 0 -12px; }
:root:not(#mys) .mysh.mysh-full .mysh-item-button, :root:not(#mys) .mysh.mysh-full .mysh-item-button:last-child { margin: 0 12px; }
:root:not(#mys) .mysh.mysh-full .mysh-item-button:first-child { margin-left: 12px; }
