/* Minification failed. Returning unminified contents.
(2153,1): run-time error CSS1019: Unexpected token, found '}'
 */
/* Hebrew calendar redesign – applies to both he and en on /Main */
.hebrew-calendar-page{
    padding-bottom:65px!important;
}

.hebrew-calendar-page .TodayDay {
    background-color: #bde0fe !important;
}


.hc-layout-pass-through {
    display: contents;
}

body.hebrew-calendar-redesign {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: transparent !important;
}

body.hc-rtl,
body.hc-rtl .hebrew-calendar-page {
    direction: rtl;
}

body.hc-ltr,
body.hc-ltr .hebrew-calendar-page {
    direction: ltr;
}

body.hebrew-calendar-redesign.hc-main-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1a5f7a;
    background-image: url('../Images/background_v1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

body.hebrew-calendar-redesign.hc-general-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1a5f7a;
    background-image: url('../Images/background_general.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

body.hebrew-calendar-redesign.hc-home-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1a5f7a;
    background-image: url('../Images/HomeBackground.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

body.hebrew-calendar-redesign.hc-home-page .hc-inner-page {
    display: none !important;
}

body.hebrew-calendar-redesign.hc-home-page .container-fluid.footer-fluid {
    display: none !important;
}

body.hebrew-calendar-redesign.hc-home-page .masterTitle,
body.hebrew-calendar-redesign.hc-home-page .masterTitle2,
body.hebrew-calendar-redesign.hc-home-page .btndivan {
    display: block !important;
    position: relative;
}

body.hebrew-calendar-redesign.hc-home-page .btndivan {
    position: fixed !important;
    bottom: 5%;
    left: 0;
    right: 0;
}

body.hebrew-calendar-redesign.hc-home-page .hc-mobile-nav {
    z-index: 99999 !important;
}

body.hebrew-calendar-redesign.hc-home-page .hc-mobile-nav-backdrop {
    z-index: 99998 !important;
}

.hebrew-calendar-page .masterTitle,
.hebrew-calendar-page .masterTitle2 {
    display: none !important;
}

body.hebrew-calendar-redesign.hc-home-page .masterTitle {
    padding-top: 50px;
}

@media (max-width: 1024px) {
    body.hebrew-calendar-redesign.hc-home-page .masterTitle {
        padding-top: 0;
        margin-top: calc(25vh - 120px);
    }
}

body.hebrew-calendar-redesign.hc-home-page .masterTitle2 {
    padding-top: 15px;
    padding-left: 40px;
    padding-right: 40px;
}

body.hebrew-calendar-redesign .header-fluid,
body.hebrew-calendar-redesign .container.top-nav {
    display: none !important;
}

.hebrew-calendar-page > .container-fluid {
    margin-top: 40px !important;
}

.hebrew-calendar-page .container.calpage {
    margin-top: 40px !important;
}

.hebrew-calendar-page .content .nav h2,
.hebrew-calendar-page .content .nav .redinstead,
.hebrew-calendar-page .content .nav .BlueRed {
    color: black;
}

.hebrew-calendar-page .content .nav li {
    background: white;
    border: none;
}

.hebrew-calendar-page .content .nav li h2:first-of-type {
    border: 2px #248FC4 solid;
}

.hebrew-calendar-page .content .nav li .licontent h2 {
    border: none;
}

body.hebrew-calendar-redesign .container-fluid.footer-fluid {
    position: relative;
    z-index: 1;
}

/* Page shell – narrower content column with generous side margins */
.hebrew-calendar-page {
    position: relative;
    z-index: 1;
    max-width: min(1520px, 94vw);
    margin: 0 auto;
    padding: 1.5rem clamp(1.5rem, 3vw, 3rem) 0;
    width: 100%;
    box-sizing: border-box;
}

.hebrew-calendar-page .top-banner,
.hebrew-calendar-page .header-section,
.hebrew-calendar-page > .container-fluid {
    width: 100%;
    max-width: 100%;
}

.hebrew-calendar-page > .container-fluid > .container.calpage {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Inner-page glass card – applies to pages rendered via @RenderBody() */
.hc-inner-page {
    background: white;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 18px;
    padding: 1.75rem 2rem 2.5rem;
    margin: 1.5rem auto;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    max-width: 960px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.hc-inner-page h1,
.hc-inner-page h2,
.hc-inner-page h3,
.hc-inner-page h4,
.hc-inner-page .pagetitle {
    color: #fff;
}

.pagetitle {
    color: #5a5a5a;
}

.content .pagetitle {
    color: #58c4d8;
}

/* Reset any legacy white backgrounds on headings inside the redesign */
.hebrew-calendar-page h1,
.hebrew-calendar-page h2,
.hebrew-calendar-page h3,
.hebrew-calendar-page h4,
.hebrew-calendar-page h5,
.hebrew-calendar-page h6 {
    background-color: transparent !important;
    color: #58c4d8;
}

.hebrew-calendar-page h4 {
    color: #333;
}

.hebrew-calendar-page .content .nav h2,
.hebrew-calendar-page .content .nav .redinstead,
.hebrew-calendar-page .content .nav .BlueRed {
    background-color: transparent !important;
}

.hebrew-calendar-page .content .nav li {
    background-image: none !important;
    /*border: 2px #248FC4 solid;*/
    border-radius: 8px;
    margin-bottom: 0.4rem;
}

.hebrew-calendar-page .content .nav h2 > span,
.hebrew-calendar-page .content .nav h2 span,
.hebrew-calendar-page h1 span,
.hebrew-calendar-page h2 span,
.hebrew-calendar-page h3 span,
.hebrew-calendar-page h4 span {
    background-color: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}

.hc-inner-page input[type="text"],
.hc-inner-page input[type="email"],
.hc-inner-page input[type="password"],
.hc-inner-page input[type="tel"],
.hc-inner-page textarea,
.hc-inner-page select {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #5a5a5a;
    border-radius: 8px;
}

.hc-inner-page input::placeholder,
.hc-inner-page textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}


@media (max-width: 768px) {
    .hc-inner-page {
        padding: 1.25rem 1rem 1.75rem;
        margin: 1rem auto;
        border-radius: 12px;
    }
}

.hebrew-calendar-page .top-banner {
    background: linear-gradient(to left, #EC2F4B, #ED094A, #2B04C7);
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hebrew-calendar-page .banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.hebrew-calendar-page .hc-logo {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 0.5rem;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hebrew-calendar-page .hc-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hebrew-calendar-page .banner-text {
    flex: 1;
    text-align: center;
    font-size: 2.125rem;
    font-weight: bold;
    padding: 0 1rem;
}

.hebrew-calendar-page .glass,
.hebrew-calendar-page .header-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hebrew-calendar-page .header-section {
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 200;
}

.hebrew-calendar-page .hc-header-bar {
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
}

.hebrew-calendar-page .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.hebrew-calendar-page .header-right,
.hebrew-calendar-page .header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hebrew-calendar-page .user-name {
    text-align: right;
    color: white;
}

.hebrew-calendar-page .user-name p {
    margin: 0;
}

.hebrew-calendar-page .user-name p:last-child {
    font-weight: 600;
}

.hebrew-calendar-page .menu-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.hebrew-calendar-page .hc-menu-btn {
    display: none;
}

.hebrew-calendar-page .exit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FF5F5E !important;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(255, 95, 94, 0.3);
}

.hebrew-calendar-page .hc-exit-btn--mobile {
    display: none;
}

.hebrew-calendar-page .hc-mobile-nav-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: auto;
}

.hebrew-calendar-page .hc-mobile-nav-footer .nav-btn {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 14px;
    padding: 0.75rem 1rem;
    box-sizing: border-box;
}

.hebrew-calendar-page .header-left {
    flex-wrap: nowrap;
}

.hebrew-calendar-page .hc-lang-chevron {
    display: none;
}

.hebrew-calendar-page .lang-btn {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
    min-height: 2rem;
    background: rgba(255, 255, 255, 0.2) !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 0.5rem;
    color: white !important;
    text-decoration: none !important;
    border: none;
    line-height: 1.2;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s ease;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.hebrew-calendar-page .lang-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

.hebrew-calendar-page .lang-btn__label {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
}

.hebrew-calendar-page .lang-btn .hc-lang-flag {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
    background: none !important;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.hebrew-calendar-page .lang-btn .hc-lang-flag-svg {
    display: block;
    width: 28px;
    height: 20px;
    border-radius: 2px;
}

.hebrew-calendar-page .lang-btn img {
    display: inline-block !important;
    vertical-align: middle;
}

.hebrew-calendar-page .nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    justify-content: center;
    width: 100%;
}

/* Mobile slide-out menu (replaces legacy hidden header nav) */
.hebrew-calendar-page .hc-mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.hebrew-calendar-page .hc-mobile-nav-backdrop.open {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.hebrew-calendar-page .hc-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10060;
    width: min(20rem, 88vw);
    height: 100%;
    max-height: 100dvh;
    padding: 1rem 1rem 1.5rem;
    box-sizing: border-box;
    background: rgba(26, 95, 122, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    visibility: hidden;
}

.hebrew-calendar-page .hc-mobile-nav.open {
    visibility: visible;
    transform: translateX(0);
}

.hebrew-calendar-page .hc-mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hebrew-calendar-page .hc-mobile-nav-title {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
}

.hebrew-calendar-page .hc-mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    border: none;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
}

.hebrew-calendar-page .hc-nav-menu--mobile {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem;
}

.hebrew-calendar-page .hc-nav-menu--mobile .nav-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    padding: 0.75rem 1rem;
}

.hebrew-calendar-page .hc-nav-menu--mobile .hc-nav-hide-mobile {
    display: none !important;
}

body.hebrew-calendar-redesign.hc-mobile-nav-open {
    overflow: hidden;
}

.hebrew-calendar-page .nav-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    border-radius: 0.5rem;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.hebrew-calendar-page .nav-btn.active {
    background: #FF5F5E;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(255, 95, 94, 0.3);
}

/* Nav dropdowns */
.hebrew-calendar-page .hc-nav-dropdown {
    position: relative;
    display: inline-flex;
}

.hebrew-calendar-page .hc-nav-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.hebrew-calendar-page .hc-nav-dropdown__arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.hebrew-calendar-page .hc-nav-dropdown.open .hc-nav-dropdown__arrow {
    transform: rotate(180deg);
}

.hebrew-calendar-page .hc-nav-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    min-width: 11rem;
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
    background: rgba(26, 95, 122, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.625rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    z-index: 500;
}

.hebrew-calendar-page .hc-nav-dropdown.open .hc-nav-dropdown__menu {
    display: block;
}

.hebrew-calendar-page .hc-nav-dropdown__menu li {
    margin: 0;
    padding: 0;
}

.hebrew-calendar-page .hc-nav-dropdown__item {
    display: block;
    padding: 0.6rem 1rem;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.hebrew-calendar-page .hc-nav-dropdown__item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

.hebrew-calendar-page .hc-nav-dropdown__item.active {
    color: #FF5F5E !important;
    font-weight: 600;
}

/* Mobile: expand dropdowns inline as flat list */
.hebrew-calendar-page .hc-nav-menu--mobile .hc-nav-dropdown {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hebrew-calendar-page .hc-nav-menu--mobile .hc-nav-dropdown__menu {
    position: static;
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 0.5rem;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0.25rem 0;
    margin-top: 0.25rem;
}

.hebrew-calendar-page .hc-nav-menu--mobile .hc-nav-dropdown.open .hc-nav-dropdown__menu {
    display: block;
}

.hebrew-calendar-page .hc-nav-menu--mobile .hc-nav-dropdown__item {
    padding: 0.55rem 1.5rem;
    text-align: center;
}

.hebrew-calendar-page .hc-lang-dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hebrew-calendar-page .user-name p:first-child {
    font-size: 1rem;
}

.hebrew-calendar-page .user-name p:last-child {
    font-size: 1.125rem;
}


/* Calendar area layout – flex instead of floats */
.hebrew-calendar-page > .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.hebrew-calendar-page .calpage {
    display: block !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Desktop: grid with calendar on one side, legend on the other */
.hebrew-calendar-page .hc-calpage-grid {
    display: grid;
    grid-template-columns: 1fr clamp(15rem, 20vw, 20rem);
    grid-template-rows: auto;
    column-gap: 1.5rem;
    width: 100%;
    align-items: start;
}

/* LTR: calendar col-1 (left), legend col-2 (right) */
.hebrew-calendar-page .hc-calpage-main,
.hebrew-calendar-page .hc-calpage-layout {
    display: block;
    width: 100%;
    grid-column: 1;
    grid-row: 1;
}

.hebrew-calendar-page .leftside.calpc.hc-calpage-legend {
    grid-column: 2;
    grid-row: 1;
}

/* RTL: reverse – legend col-1 (right), calendar col-2 (left) */
body.hc-rtl .hebrew-calendar-page .hc-calpage-grid {
    grid-template-columns: clamp(15rem, 20vw, 20rem) 1fr;
}

body.hc-rtl .hebrew-calendar-page .hc-calpage-main,
body.hc-rtl .hebrew-calendar-page .hc-calpage-layout {
    grid-column: 2;
}

body.hc-rtl .hebrew-calendar-page .leftside.calpc.hc-calpage-legend {
    grid-column: 1;
}

/* Kill legacy fixed height on direct children of .leftside */
.hebrew-calendar-page .leftside.calpc > div {
    height: auto !important;
    line-height: normal !important;
    white-space: normal !important;
    float: none !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

/* Legend panel */
.hebrew-calendar-page .leftside.calpc {
    float: none !important;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 1.5rem 1.25rem !important;
    box-sizing: border-box;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
}

.hebrew-calendar-page .rightside.hc-calpage-calendar {
    float: none !important;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Reset legacy .leftside>div sprite layout (style.css) */
.hebrew-calendar-page .leftside.calpc .legend-title,
.hebrew-calendar-page .leftside.calpc .legend-items,
.hebrew-calendar-page .leftside.calpc .legend-item {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-right: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    background: none !important;
    background-image: none !important;
    width: 100% !important;
    max-width: 100% !important;
    vertical-align: middle !important;
    cursor: default;
}

.hebrew-calendar-page .legend-title,
.hebrew-calendar-page .hc-legend-toggle {
    flex: 0 0 auto;
    background: #FF5F5E !important;
    color: white;
    padding: 0.625rem 1rem !important;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem !important;
    font-size: 1.1875rem;
    line-height: 1.4;
    border: none;
    width: 100%;
    cursor: default;
}

.hebrew-calendar-page .hc-legend-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hebrew-calendar-page .hc-legend-chevron {
    display: none;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.hebrew-calendar-page .hc-legend-body {
    /* mobile collapsed state handled inside @media (max-width: 1024px) */
}

.hebrew-calendar-page .hc-legend-toggle[aria-expanded="true"] .hc-legend-chevron,
.hebrew-calendar-page .hc-legend-toggle.hc-legend-expanded .hc-legend-chevron {
    transform: rotate(180deg);
}

.hebrew-calendar-page .legend-items {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 0.875rem;
    width: 100% !important;
    min-height: 0;
}

.hebrew-calendar-page .hc-calpage-main .legend-items {
    justify-content: space-between;
}

.hebrew-calendar-page .legend-item {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100% !important;
    min-height: 2rem;
}

.hebrew-calendar-page .legend-item span {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    font-weight: 500;
    text-align: right;
    flex: 1 1 auto;
    line-height: 1.45;
    order: 1;
}

.hebrew-calendar-page .legend-item .legend-icon,
.hebrew-calendar-page .legend-item .hc-flower-icon,
.hebrew-calendar-page .legend-item svg,
.hebrew-calendar-page .legend-item img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 28px;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    min-height: 28px;
    object-fit: contain;
    order: 2;
    margin: 0 !important;
}

.hebrew-calendar-page .leftside.calpc > div:not(.legend-title):not(.legend-items):not(.legend-item):not(.hc-legend-body) {
    display: none;
}

.hebrew-calendar-page .leftside.calpc .clearfix {
    display: none;
}

.hebrew-calendar-page .rightside {
    float: none !important;
    min-width: 0;
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none;
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
}

.hebrew-calendar-page #mini-clndr {
    width: 100%;
    min-width: 0;
}

.hebrew-calendar-page .calpage > .printevent.bottom-actions,
.hebrew-calendar-page .calpage > .printevent.hc-bottom-actions {
    width: 100%;
    clear: both;
}

/* Split month header + calendar grid panels */
.hebrew-calendar-page .hc-calendar-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.hebrew-calendar-page .hc-month-header {
    position: relative;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0;
}

.hebrew-calendar-page .hc-month-header > .hc-month-today.hc-month-moon {
    position: absolute;
    top: 50%;
    left: 0.5rem;
    right: auto;
    transform: translateY(-50%);
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.9;
}

.hebrew-calendar-page .hc-month-moon-img {
    display: block;
    width: 2.25rem;
    height: 2.25rem;
    background: url('../Images/moon_2026.png') center / contain no-repeat;
}

.hebrew-calendar-page .hc-month-today-fallback {
    display: none;
}

.hebrew-calendar-page .hc-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    min-height: 3rem;
    padding-inline-start: 3rem;
    box-sizing: border-box;
}

.hebrew-calendar-page .hc-month-arrow {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.hebrew-calendar-page .hc-month-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hebrew-calendar-page .hc-month-arrow img {
    display: none !important;
}

.hebrew-calendar-page .hc-month-arrow .hc-nav-chevron {
    color: white;
    display: block;
}

.hebrew-calendar-page .hc-month-arrow,
.hebrew-calendar-page .hc-month-today {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
    color: white;
}

.hebrew-calendar-page .hc-month-title-wrap {
    flex: 1;
    text-align: center;
}

.hebrew-calendar-page .hc-month-title,
.hebrew-calendar-page #M_name.hc-month-title,
.hebrew-calendar-page #M_name_mob.hc-month-title {
    color: white !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    padding: 0 !important;
    line-height: 1.35 !important;
    text-align: center;
}

.hebrew-calendar-page .hc-month-today img {
    display: none !important;
}

.hebrew-calendar-page .hc-calendar-main {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    /*padding: clamp(0.85rem, 1.5vw, 1.25rem) clamp(0.85rem, 1.5vw, 1.25rem) clamp(1rem, 1.75vw, 1.5rem);*/
    padding: clamp(0.85rem, 1.5vw, 1.25rem) clamp(0rem, 0vw, 1.25rem) clamp(1rem, 1.75vw, 1.5rem);
}

body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main table.caltable {
    direction: ltr;
}

/* Kill legacy absolute positioning on month controls */
.hebrew-calendar-page .hc-month-nav .currentmonth,
.hebrew-calendar-page .hc-month-nav .nextmonth,
.hebrew-calendar-page .hc-month-nav .prevmonth {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
}

.hebrew-calendar-page .rightside > .clearfix {
    display: none;
}

/* Legacy table header (English layout only) */
.hebrew-calendar-page .tableheader {
    background: transparent !important;
}

.hebrew-calendar-page .tableheader td {
    height: auto !important;
    border: none !important;
    padding: 0.75rem !important;
}

.hebrew-calendar-page .tableheader div,
.hebrew-calendar-page #M_name:not(.hc-month-title),
.hebrew-calendar-page #M_name_mob:not(.hc-month-title) {
    color: white !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

/* Single day-header row (daysmob is legacy duplicate – keep hidden) */
body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .daysmob {
    display: none !important;
    visibility: collapse !important;
}

body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .days {
    display: table-row !important;
}

.hebrew-calendar-page .hc-calendar-main .days th,
.hebrew-calendar-page .hc-calendar-main .daysmob th,
body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .days th,
body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .daysmob th {
    width: 14.285714% !important;
    background: rgba(255, 255, 255, 0.22) !important;
    background-color: rgba(255, 255, 255, 0.22) !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0.5rem !important;
    color: white !important;
    height: auto !important;
    min-height: 3.5rem !important;
    padding: 0.75rem 0.35rem !important;
    font-size: 16px !important;
    font-weight: normal !important;
    text-align: center !important;
    vertical-align: middle !important;
    box-shadow: none !important;
}

.hebrew-calendar-page .hc-day-header,
.hebrew-calendar-page .days th div,
.hebrew-calendar-page .daysmob th div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    line-height: 1.2 !important;
    white-space: normal !important;
    background: none !important;
    float: none !important;
}

.hebrew-calendar-page .hc-day-en {
    display: block;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.02em;
}

.hebrew-calendar-page .hc-day-divider {
    display: block;
    width: 2rem;
    height: 1px;
    margin: 0.35rem auto;
    background: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}

.hebrew-calendar-page .hc-day-he {
    display: block;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

.hebrew-calendar-page .days th hr,
.hebrew-calendar-page .daysmob th hr {
    display: none !important;
}

.hebrew-calendar-page .hc-calendar-main table.caltable tr.days th {
    border-bottom: 0.25rem solid transparent;
}

/* Grid cells – 20px narrower per column (140px total), centered in panel */
.hebrew-calendar-page table.caltable {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: clamp(0.35rem, 0.65vw, 0.5rem) !important;
    table-layout: fixed !important;
}

.hebrew-calendar-page .hc-calendar-main table.caltable {
    width: max(280px, calc(100% - 140px)) !important;
    max-width: calc(100% - 140px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hebrew-calendar-page .caltable td {
    border: none !important;
    padding: 0 !important;
    height: 1px;
    min-height: 0 !important;
    background: transparent !important;
    vertical-align: top !important;
}

body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .caltable td {
    height: 1px !important;
}

.hebrew-calendar-page .caltable td:hover {
    border: none !important;
}

.hebrew-calendar-page .cellbox {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 0.5rem !important;
    min-height: clamp(72px, 8.5vw, 92px) !important;
    height: 100% !important;
    padding: clamp(0.4rem, 0.75vw, 0.65rem) !important;
    font-size: 14px !important;
    color: #374151 !important;
    box-sizing: border-box;
    line-height: 1.25 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hebrew-calendar-page .cellbox:hover:not(.cellboxNotActive) {
    background: rgba(255, 255, 255, 0.98) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.hebrew-calendar-page .cellbox.cellboxNotActive,
.hebrew-calendar-page .cellboxNotActive {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    min-height: clamp(72px, 8.5vw, 92px) !important;
    padding: 0 !important;
    cursor: default !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.hebrew-calendar-page .caltable td > .cellbox {
    min-height: clamp(72px, 8.5vw, 92px) !important;
}

.hebrew-calendar-page .cellbox .tl,
.hebrew-calendar-page .cellbox .hc-date-hebrew {
    color: #374151 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    padding: 0 !important;
    top: clamp(0.4rem, 0.75vw, 0.65rem) !important;
    right: clamp(0.4rem, 0.75vw, 0.65rem) !important;
    left: auto !important;
}

.hebrew-calendar-page .cellbox .tr,
.hebrew-calendar-page .cellbox .hc-date-gregorian {
    color: #1f2937 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    padding: 0 !important;
    top: clamp(0.4rem, 0.75vw, 0.65rem) !important;
    left: clamp(0.4rem, 0.75vw, 0.65rem) !important;
    right: auto !important;
}

.hebrew-calendar-page .cellbox .br {
    color: #4b5563 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    left: 50% ;
    right: auto !important;
    bottom: clamp(0.35rem, 0.6vw, 0.5rem) !important;
    padding: 0 !important;
    transform: translateX(-50%);
    width: auto !important;
    text-align: center;
}

.hebrew-calendar-page .cellbox a.tc {
    position: absolute !important;
    top: 50% !important;
    left: 50% ;
    right: auto !important;
    transform: translate(-50%, -58%) !important;
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;
    background: none !important;
    text-indent: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

/* Primary event icons (.bl) and reminders (a.tc) – center flower, no sprites */
.hebrew-calendar-page .cellbox .bl,
.hebrew-calendar-page .cellbox .bl.rd,
.hebrew-calendar-page .cellbox .bl.at,
.hebrew-calendar-page .cellbox .bl.sn,
.hebrew-calendar-page .cellbox .bl.ot,
.hebrew-calendar-page .cellbox .bl.ym,
.hebrew-calendar-page .cellbox .bl.yh,
.hebrew-calendar-page .cellbox .bl.mb,
.hebrew-calendar-page .cellbox .bl.mg,
.hebrew-calendar-page .cellbox .bl.th,
.hebrew-calendar-page .cellbox .bl.gl,
.hebrew-calendar-page .cellbox .bl.hc-pill,
.hebrew-calendar-page .cellbox .bl.preg,
.hebrew-calendar-page .cellbox .bl.bcp,
.hebrew-calendar-page .cellbox .bl.gca,
.hebrew-calendar-page .cellbox .bl.mahhef,
.hebrew-calendar-page .cellbox .bl.mmik,
.hebrew-calendar-page .cellbox .bl.mmik2,
.hebrew-calendar-page .cellbox .bl.vy,
.hebrew-calendar-page .cellbox .bl.vl,
.hebrew-calendar-page .cellbox a.tc,
.hebrew-calendar-page .cellbox a.tc.rd,
.hebrew-calendar-page .cellbox a.tc.at,
.hebrew-calendar-page .cellbox a.tc.sn,
.hebrew-calendar-page .cellbox a.tc.ot,
.hebrew-calendar-page .cellbox a.tc.ym,
.hebrew-calendar-page .cellbox a.tc.yh,
.hebrew-calendar-page .cellbox a.tc.mb,
.hebrew-calendar-page .cellbox a.tc.mg,
.hebrew-calendar-page .cellbox a.tc.th,
.hebrew-calendar-page .cellbox a.tc.gl,
.hebrew-calendar-page .cellbox a.tc.hc-pill,
.hebrew-calendar-page .cellbox a.tc.preg,
.hebrew-calendar-page .cellbox a.tc.bcp,
.hebrew-calendar-page .cellbox a.tc.gca,
.hebrew-calendar-page .cellbox a.tc.mahhef,
.hebrew-calendar-page .cellbox a.tc.mmik,
.hebrew-calendar-page .cellbox a.tc.mmik2,
.hebrew-calendar-page .cellbox a.tc.vy,
.hebrew-calendar-page .cellbox a.tc.vl {
    background: none !important;
    background-image: none !important;
    text-indent: 0 !important;
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;
}

.hebrew-calendar-page .cellbox .bl.hc-has-icon,
.hebrew-calendar-page .cellbox .bl.hc-has-icon.rd,
.hebrew-calendar-page .cellbox .bl.hc-has-icon.at,
.hebrew-calendar-page .cellbox .bl.hc-has-icon.sn,
.hebrew-calendar-page .cellbox .bl.hc-has-icon.ot,
.hebrew-calendar-page .cellbox .bl.hc-has-icon.ym,
.hebrew-calendar-page .cellbox .bl.hc-has-icon.yh,
.hebrew-calendar-page .cellbox .bl.hc-has-icon.vy,
.hebrew-calendar-page .cellbox .bl.hc-has-icon.vl {
    position: absolute !important;
    top: 50% !important;
    left: 50% ;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -58%) !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.hebrew-calendar-page .cellbox a.tc.hc-icon-secondary {
    top: 56% !important;
    transform: translate(-50%, -20%) !important;
}

/* Two icons side by side – split left/right, no resize */
.hebrew-calendar-page .cellbox.hc-dual-icon .bl.hc-has-icon {
    left: 30% !important;
    top: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    box-sizing: border-box !important;
}
.hebrew-calendar-page .cellbox.hc-dual-icon a.tc.hc-icon-secondary {
    left: 72% !important;
    top: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    box-sizing: border-box !important;
}

/* Dual-icon: shrink each icon by 5px so both fit */
.hebrew-calendar-page .cellbox.hc-dual-icon .bl,
.hebrew-calendar-page .cellbox.hc-dual-icon a.tc {
    width: 30px !important;
    height: 30px !important;
    min-width: 35px !important;
    min-height: 35px !important;
}

.hebrew-calendar-page .cellbox.hc-dual-icon .hc-flower-icon,
.hebrew-calendar-page .cellbox.hc-dual-icon .hc-special-icon {
    width: 30px !important;
    height: 30px !important;
}

.hebrew-calendar-page .cellbox a.tc.hc-multi-badge {
    background: none !important;
    background-image: none !important;
}

.hebrew-calendar-page .cellbox a.tc.nd {
    display: none !important;
}

.hebrew-calendar-page .cellbox .hc-special-icon {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.hebrew-calendar-page .cellbox .hc-flower-icon {
    display: block;
    width: 35px;
    height: 35px;
}

.hebrew-calendar-page .cellbox a.tc div {
    position: absolute !important;
    top: -5px !important;
    right: -6px !important;
    left: auto !important;
    background: #ff8b29 !important;
    border-radius: 10px !important;
    color: white !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
    text-align: center !important;
}

.hebrew-calendar-page .cellbox .daynight {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    margin: 0 auto !important;
    background: none !important;
    background-image: none !important;
    opacity: 1 !important;
    pointer-events: none;
    z-index: 1 !important;
}

.hebrew-calendar-page .cellbox .daynight.sun {
    background: url('../Images/sun.png') 50% 42% no-repeat !important;
    background-size: 58% auto !important;
    opacity: 0.45 !important;
}

.hebrew-calendar-page .cellbox .daynight.sun::after {
    display: none !important;
}

.hebrew-calendar-page .cellbox .daynight.moon {
    background: url('../Images/moon_2026.png') 50% 42% no-repeat !important;
    background-size: 50% auto !important;
    opacity: 0.35 !important;
}

.hebrew-calendar-page .cellbox > div,
.hebrew-calendar-page .cellbox > a {
    z-index: 3 !important;
}

/* Bottom action buttons – staggered pill grid (design mockup) */
.hebrew-calendar-page .bottom-actions,
.hebrew-calendar-page .hc-bottom-actions {
    width: 100% !important;
    float: none !important;
    margin-top: 1.5rem !important;
    padding: 0 0 2rem !important;
    text-align: center !important;
    background: transparent !important;
    clear: both;
}

.hebrew-calendar-page .hc-bottom-actions-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.125rem;
    width: 100%;
    max-width: min(720px, 100%);
    margin: 0 auto;
}

.hebrew-calendar-page .hc-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.hebrew-calendar-page .hc-action-row--single {
    gap: 0;
}

.hebrew-calendar-page .hc-action-row--triple {
    gap: 1.125rem;
}

.hebrew-calendar-page .hc-action-row--pair {
    gap: 1.25rem;
}

.hebrew-calendar-page .hc-action-btn {
    display: inline-flex !important;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
    width: auto;
    max-width: none;
    min-height: 2.75rem;
    padding: 0.625rem 1.5rem !important;
    margin: 0 !important;
    border: none;
    border-radius: 9999px !important;
    background: #fdf9f0 !important;
    color: #004d57 !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    float: none !important;
    height: auto !important;
}

.hebrew-calendar-page .hc-action-btn__label {
    display: inline-block;
}

.hebrew-calendar-page .hc-action-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: #004d57;
}

.hebrew-calendar-page .hc-action-btn:hover {
    background: #f3efe6 !important;
    color: #004d57 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.14);
}

.hebrew-calendar-page .hc-action-btn--wide {
    padding: 0.75rem 2rem !important;
    font-size: 1.0625rem !important;
}

/* Hide legacy button chrome if any old markup remains */
.hebrew-calendar-page .bottom-actions .liststart,
.hebrew-calendar-page .bottom-actions .listend,
.hebrew-calendar-page .bottom-actions .bellstart,
.hebrew-calendar-page .bottom-actions .bellend,
.hebrew-calendar-page .bottom-actions .printstart,
.hebrew-calendar-page .bottom-actions .printend {
    display: none !important;
}

body.hebrew-calendar-redesign .hebrew-calendar-page .printevent.bottom-actions {
    padding: 1.5rem 0 2rem !important;
}

.hebrew-calendar-page .printevent.pull-left,
.hebrew-calendar-page .printevent.hc-bottom-actions {
    float: none !important;
    width: 100% !important;
}

.hebrew-calendar-page .promo_1 {
    display: none;
}

@media (max-width: 1024px) {
    .hebrew-calendar-page {
        max-width: 100%;
        /*padding: 0.65rem clamp(0.65rem, 2vw, 2rem) 0;*/
        padding: 0.65rem clamp(0.4rem, 0vw, 2rem) 0;
    }

    .hebrew-calendar-page .top-banner {
        margin-bottom: 0.75rem;
    }

    .hebrew-calendar-page .banner-content {
        padding: 0.5rem 0.75rem;
    }

    .hebrew-calendar-page .banner-text {
        font-size: 1.5rem;
    }

    .hebrew-calendar-page .hc-lang-dropdown .hc-nav-dropdown__menu {
        left: 0;
        right: auto;
        min-width: 8rem;
        max-width: calc(100vw - 2rem);
    }

    /* Compact user bar (matches mobile mock) */
    .hebrew-calendar-page .hc-header-bar {
        padding: 0.75rem 1rem !important;
        margin-bottom: 0.75rem;
        /*position: sticky !important;*/
        top: 0;
        z-index: 1000 !important;
    }

    .hebrew-calendar-page .hc-header-top {
        margin-bottom: 0 !important;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    body.hc-rtl .hebrew-calendar-page .hc-header-top {
        direction: rtl;
    }

    body.hc-ltr .hebrew-calendar-page .hc-header-top {
        direction: ltr;
    }

    body.hc-ltr .hebrew-calendar-page .hc-lang-dropdown {
        order: 1;
    }

    body.hc-ltr .hebrew-calendar-page .hc-logo {
        order: 2;
    }

    body.hc-ltr .hebrew-calendar-page .hc-mobile-nav {
        right: auto;
        left: 0;
        border-left: none;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
        transform: translateX(-100%);
    }

    body.hc-ltr .hebrew-calendar-page .hc-mobile-nav.open {
        transform: translateX(0);
    }

    /* RTL desktop: lang button appears to the right of exit button */
    body.hc-rtl .hebrew-calendar-page .hc-header-actions .hc-lang-btn {
        order: 1;
    }
    body.hc-rtl .hebrew-calendar-page .hc-header-actions .hc-exit-btn {
        order: 2;
    }

    .hebrew-calendar-page .hc-header-user {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-start;
        flex-direction: row;
    }

    .hebrew-calendar-page .hc-header-user .hc-menu-btn {
        order: -1;
        flex-shrink: 0;
        margin-inline-start: 0;
        margin-inline-end: 0.35rem;
    }

    .hebrew-calendar-page .hc-header-actions {
        flex: 0 0 auto;
        flex-shrink: 0;
        gap: 0.5rem;
        direction: ltr;
    }

    .hebrew-calendar-page .hc-user-greeting {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 600;
        line-height: 1.35;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hebrew-calendar-page .user-name p:not(.hc-user-greeting) {
        display: none;
    }

    .hebrew-calendar-page .user-name p:last-child {
        font-size: 1.5rem;
    }

    .hebrew-calendar-page .lang-btn__label {
        display: none;
    }

    .hebrew-calendar-page .hc-lang-btn {
        flex-direction: row;
        gap: 0.25rem;
        padding: 0.35rem 0.5rem !important;
        min-height: 2.25rem;
    }

    .hebrew-calendar-page .hc-lang-chevron {
        display: block;
        flex-shrink: 0;
        color: rgba(255, 255, 255, 0.85);
    }

    .hebrew-calendar-page .hc-exit-btn--desktop {
        display: none !important;
    }

    .hebrew-calendar-page .hc-exit-btn--mobile {
        display: block;
    }

    .hebrew-calendar-page .hc-exit-btn__text {
        display: none;
    }

    .hebrew-calendar-page .hc-exit-btn {
        padding: 0.4rem !important;
        min-width: 2.25rem;
        min-height: 2.25rem;
        justify-content: center;
        background: rgba(255, 255, 255, 0.12) !important;
        box-shadow: none;
    }

    .hebrew-calendar-page .header-section .hc-nav-menu--desktop {
        display: none !important;
    }

    .hebrew-calendar-page .hc-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Single-column stack: calendar then collapsible legend then buttons */
    .hebrew-calendar-page .hc-calpage-grid {
        display: block;
        direction: inherit;
    }

    .hebrew-calendar-page .hc-calpage-main,
    .hebrew-calendar-page .hc-calpage-layout {
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .hebrew-calendar-page .leftside.calpc.hc-calpage-legend {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem !important;
        box-sizing: border-box;
        margin-bottom: 0.75rem !important;
    }

    .hebrew-calendar-page .hc-calpage-layout .hc-calpage-calendar {
        width: 100% !important;
    }

    .hebrew-calendar-page .hc-calpage-main .legend-items,
    .hebrew-calendar-page .hc-calpage-layout .legend-items {
        justify-content: flex-start;
    }

    .hebrew-calendar-page .legend-title,
    .hebrew-calendar-page .hc-legend-toggle {
        font-size: 1.5rem;
        margin-bottom: 0 !important;
        cursor: pointer;
    }

    .hebrew-calendar-page .hc-legend-chevron {
        display: block;
    }

    .hebrew-calendar-page .hc-legend-body {
        display: none;
        margin-top: 0.75rem;
    }

    .hebrew-calendar-page .hc-legend-body.hc-legend-open {
        display: block;
    }

    .hebrew-calendar-page .rightside.hc-calpage-calendar {
        width: 100% !important;
    }

    .hebrew-calendar-page .legend-item span {
        font-size: 1.25rem;
    }

    .hebrew-calendar-page .legend-item {
        min-height: 0;
    }

    /* Month card: moon icon centered above title */
    .hebrew-calendar-page .hc-month-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1rem 1rem 1.25rem;
    }

    .hebrew-calendar-page .hc-month-header > .hc-month-today.hc-month-moon {
        position: static;
        transform: none;
        margin: 0 auto 0.5rem;
        order: 0;
    }

    .hebrew-calendar-page .hc-month-moon-img {
        width: 2.75rem;
        height: 2.75rem;
    }

    .hebrew-calendar-page .hc-month-nav {
        width: 100%;
        order: 1;
        padding-inline-start: 0;
    }

    .hebrew-calendar-page .hc-calendar-stack {
        gap: 0.75rem;
    }

    /* One header row only – short EN labels (avoid duplicate days + daysmob) */
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .daysmob {
        display: none !important;
        visibility: collapse !important;
        height: 0 !important;
        line-height: 0 !important;
        overflow: hidden !important;
    }

    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .days {
        display: table-row !important;
    }

    .hebrew-calendar-page .hc-calendar-main .hc-day-divider {
        display: block;
    }

    .hebrew-calendar-page .hc-calendar-main .hc-day-en,
    .hebrew-calendar-page .hc-calendar-main .hc-day-he {
        display: block !important;
        font-size: 0.5625rem !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
        letter-spacing: 0;
    }

    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .days th {
        min-height: 2.25rem !important;
        height: auto !important;
        padding: 0.35rem 0.1rem !important;
    }

    .hebrew-calendar-page .hc-calendar-main .hc-day-header {
        gap: 0.1rem;
    }

    .hebrew-calendar-page .hc-calendar-main table.caltable {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-spacing: 0.5rem !important;
    }

    .hebrew-calendar-page .hc-calendar-main .caltable td {
        width: 14.285714% !important;
    }

    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox {
        min-height: 4.5rem !important;
        padding: 0.2rem 0.15rem 0.15rem !important;
    }

    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .tl,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .tr,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .hc-date-hebrew,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .hc-date-gregorian {
        font-size: 0.625rem !important;
        top: 0.2rem !important;
        line-height: 1.1 !important;
    }

    .hebrew-calendar-page .hc-calendar-main .cellbox .tl,
    .hebrew-calendar-page .hc-calendar-main .cellbox .hc-date-hebrew {
        right: 0.15rem !important;
        left: auto !important;
    }

    .hebrew-calendar-page .hc-calendar-main .cellbox .tr,
    .hebrew-calendar-page .hc-calendar-main .cellbox .hc-date-gregorian {
        left: 0.15rem !important;
        right: auto !important;
    }

    /* style.css hides .br on small screens – restore sunset time */
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .br {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        left: 50% ;
        right: auto !important;
        bottom: 0.15rem !important;
        transform: translateX(-50%) !important;
        font-size: 0.5625rem !important;
        line-height: 1 !important;
        color: #6b7280 !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        padding: 0 !important;
    }

    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .bl.hc-has-icon,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .bl.hc-has-icon.rd,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .bl.hc-has-icon.at,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .bl.hc-has-icon.sn,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .bl.hc-has-icon.ot,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .bl.hc-has-icon.ym,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .bl.hc-has-icon.yh,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .bl.hc-has-icon.vy,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .bl.hc-has-icon.vl {
        top: 50% !important;
        left: 50% ;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -42%) !important;
        width: 35px !important;
        height: 35px !important;
        min-width: 35px !important;
        min-height: 35px !important;
        padding: 0 !important;
        background: none !important;
        background-image: none !important;
    }

    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox a.tc,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox a.tc.rd,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox a.tc.at,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox a.tc.sn,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox a.tc.ot,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox a.tc.ym,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox a.tc.yh,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox a.tc.vy,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox a.tc.vl {
        top: 58% !important;
        transform: translate(-50%, -38%) !important;
        width: 35px !important;
        height: 35px !important;
        min-width: 35px !important;
        min-height: 35px !important;
        background: none !important;
        background-image: none !important;
    }

    .hebrew-calendar-page .hc-calendar-main .cellbox .hc-flower-icon,
    .hebrew-calendar-page .hc-calendar-main .cellbox .hc-special-icon {
        width: 35px !important;
        height: 35px !important;
    }

    /* Mobile dual-icon: wider spread so icons don't touch */
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox.hc-dual-icon .bl.hc-has-icon {
        left: 28% !important;
        top: 50% !important;
        bottom: auto !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        box-sizing: border-box !important;
    }
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox.hc-dual-icon a.tc.hc-icon-secondary {
        left: 75% !important;
        top: 50% !important;
        bottom: auto !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        box-sizing: border-box !important;
    }

    /* Mobile dual-icon: shrink each icon by 5px */
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox.hc-dual-icon .bl,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox.hc-dual-icon a.tc {
        width: 25px !important;
        height: 25px !important;
        min-width: 25px !important;
        min-height: 25px !important;
    }

    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox.hc-dual-icon .hc-flower-icon,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox.hc-dual-icon .hc-special-icon {
        width: 25px !important;
        height: 25px !important;
    }

    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .rd,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .at,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .sn,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .ym,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .yh,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .vy,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .vl,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .ot,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .mmik,
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .mmik2 {
        width: 20px !important;
        height: 20px !important;
        padding-left: 0 !important;
        background-image: none !important;
    }

    .hebrew-calendar-page #M_name_mob.mobc {
        display: none !important;
    }

    .hebrew-calendar-page #M_name.pc {
        display: block !important;
    }

    .hebrew-calendar-page .hc-calpage-main .legend-items,
    .hebrew-calendar-page .hc-calpage-layout .legend-items {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 0.5rem !important;
    }

    .hebrew-calendar-page .hc-action-btn--wide {
        width: 100%;
        max-width: none;
    }

    body.hebrew-calendar-redesign .hebrew-calendar-page .printevent.bottom-actions {
        padding: 0.75rem 0 1.25rem !important;
    }

    .hebrew-calendar-page .nav-btn {
        font-size: 14px;
        padding: 0.625rem 1.125rem;
    }

    .hc-inner-page {
        margin-top: 50px;
    }

    .content {
        padding-bottom: 20px;
    }

}

@media (min-width: 1025px) c
    .hebrew-calendar-page .hc-mobile-nav,
    .hebrew-calendar-page .hc-mobile-nav-backdrop {
        display: none !important;
    }
}

@media (max-width: 768px) {

    body.hebrew-calendar-redesign.hc-home-page .btndivan {
        bottom: 5%;
    }

    .hebrew-calendar-page {
        padding: 0.65rem clamp(0.65rem, 4vw, 2rem) 0;
    }

    .hebrew-calendar-page .hc-month-title,
    .hebrew-calendar-page #M_name.hc-month-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    .hebrew-calendar-page .hc-action-btn {
        font-size: 1.25rem !important;
        padding: 0.5rem 0.875rem !important;
    }
}

/* Calpage background reset for redesign */
body.hebrew-calendar-redesign .hebrew-calendar-page .calpage {
    background: transparent !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* Beat legacy style.css inside the Hebrew calendar grid */
body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox {
    font-size: 14px !important;
    min-height: clamp(72px, 8.5vw, 92px) !important;
}

body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .tl,
body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .tr,
body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .hc-date-hebrew,
body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .hc-date-gregorian {
    font-size: 12px !important;
}

body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .br {
    font-size: 13px !important;
}

body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .days th,
body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .daysmob th {
    background: rgba(255, 255, 255, 0.22) !important;
    background-color: rgba(255, 255, 255, 0.22) !important;
    border: none !important;
    color: white !important;
    font-size: 16px !important;
}

body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .hc-day-en,
body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .hc-day-he,
body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .days th div,
body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .daysmob th div {
    font-size: 15px !important;
}

.hebrew-calendar-page .caltable .tableheader {
    display: none !important;
}

.span12H {
    font-size: 8px !important;
    margin-left: 2px;
}

/* Final mobile overrides – beat legacy style.css (narrow grid, duplicate headers) */
@media (max-width: 1024px) {
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .br
    {
        font-size:11px!important;
    }

    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main table.caltable,
    body.hebrew-calendar-redesign .hebrew-calendar-page table.caltable {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .daysmob {
        display: none !important;
        visibility: collapse !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .days {
        display: table-row !important;
    }

    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox a.tc {
        background: none !important;
        background-image: none !important;
    }

    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .br {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .hebrew-calendar-page .lang-btn .hc-lang-flag-svg {
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 550px) {
    body.hebrew-calendar-redesign .hebrew-calendar-page .hc-calendar-main .cellbox .br {
        display: block !important;
        visibility: visible !important;
    }
}

