/* The toolbar itself is the visible button: [G logo][label][?]. The toggle is a
   borderless <button> inside it and the "?" help trigger sits tight against the
   word "Google" (no border, no background). */
.ax-google-toolbar {
    position: relative;
    z-index: 1001;
    display: inline-flex;
    align-items: center;
    gap: 0;
    width: auto;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid #145ec5;
    border-radius: 5px;
    background: #fff;
    color: #1f3a5f;
    font: inherit;
    font-size: 0.8em;
    justify-content: center;
    min-width: 12.16em;
    transition: background .15s ease;
}

html[lang^=he] .ax-google-toolbar { min-width: 9.92em; }

.ax-google-toolbar:hover,
.ax-google-toolbar:focus-within { background: #eff6ff; }

/* Visually separated from the menu items by a generous gap (no divider line). */
.ax-google-nav-slot {
    display: inline-flex;
    align-items: center;
    margin-inline-start: 22px;
}

.ax-google-toolbar button {
    font: inherit;
    cursor: pointer;
}

.ax-google-toggle,
.ax-google-help-button {
    border: 0;
    background: transparent;
    color: inherit;
}

.ax-google-help-close {
    border: 1px solid #94a3b8;
    border-radius: 6px;
    background: #fff;
    color: #1e3a5f;
    padding: 3px 10px;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.ax-google-help-close:hover { background: #eff6ff; }

.ax-google-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 0;
    padding: 5px;
    padding-inline: 10px 5px;
    white-space: nowrap;
}

.ax-google-brand { width: 18px; height: 18px; flex: 0 0 auto; margin: -1px 0; }

.ax-google-spinner {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    border: 2px solid #cbd5e1;
    border-top-color: #145ec5;
    border-radius: 50%;
    animation: ax-google-spin .75s linear infinite;
}

@keyframes ax-google-spin {
    to { transform: rotate(360deg); }
}

.ax-google-toolbar[data-state="loading"] .ax-google-brand {
    opacity: .45;
}

.ax-google-toggle:focus-visible,
.ax-google-help-button:focus-visible,
.ax-google-help-close:focus-visible {
    outline: 3px solid #ce93d8;
    outline-offset: 2px;
}

.ax-google-toggle:disabled {
    color: #64748b;
    cursor: not-allowed;
}

/* "?" — one plain glyph after the label: no ring, no border, no background. */
.ax-google-help-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-inline: 0 8px;
    margin-top: -7px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    line-height: 0;
    color: #64748b;
}

/* The icon's own single circle is the only ring. */
.ax-google-help-icon { display: block; width: 11px; height: 11px; }

.ax-google-help-button:hover,
.ax-google-help-button:focus-visible,
.ax-google-help-button[aria-expanded="true"] { color: #145ec5; }

/* Tooltip bubble: small text, fully contained, kept inside the viewport by JS. */
.ax-google-help-popup {
    position: absolute;
    inset-block-start: calc(100% + 8px);
    inset-inline-start: 0;
    z-index: 20;
    width: 280px;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .2);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    text-align: start;
}

.ax-google-help-popup[hidden] {
    display: none;
}

.ax-google-help-popup p {
    margin: 0 0 8px;
    overflow-wrap: anywhere;
    white-space: normal;
}

.ax-google-help-popup a { font-size: 12px; }

.ax-google-help-disconnect {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.45;
}

.ax-google-help-disconnect strong { font-weight: 700; }

.ax-google-refresh-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 22px;
    height: 22px;
    margin: 0 2px;
    padding: 0;
    border: 1px solid #94a3b8;
    border-radius: 50%;
    background: #fff;
    color: #145ec5;
    cursor: pointer;
}

.ax-google-refresh-inline:hover { background: #eff6ff; }

.ax-google-disconnect-word {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    font-weight: 700;
    color: #145ec5;
    background: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ax-google-disconnect-word:hover,
.ax-google-disconnect-word:focus-visible {
    color: #0f4da5;
}

.ax-google-privacy-link { margin-inline-end: 16px; }

/* Pre-consent explainer: centered modal over a dim backdrop. */
.ax-google-explainer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
    background: rgba(15, 23, 42, .5);
}

.ax-google-explainer {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    margin: auto;
    padding: 0 20px 20px;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .2);
    font: inherit;
    font-size: 14px;
    line-height: 1.55;
    text-align: start;
}

.ax-google-explainer-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 -20px 14px;
    padding: 6px 20px;
    padding-inline-end: 8px;
    border-bottom: 1px solid #e2e8f0;
}

/* Heading: purple like the site's page headings. */
.ax-google-explainer-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 8px;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    color: #9c27b0;
}

.ax-google-explainer-heading-logo { flex: 0 0 auto; display: inline-flex; }
.ax-google-explainer-heading-logo svg { display: block; }

.ax-google-explainer-close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.ax-google-explainer-close:hover { background: #f3e5f5; color: #7b1fa2; }

.ax-google-explainer-title {
    margin: 0 0 22px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #1f3a5f;
}

.ax-google-explainer-list {
    margin: 0 0 12px;
    padding-inline-start: 20px;
}

.ax-google-explainer-list li { margin: 0 0 8px; }

.ax-google-explainer-closing { margin: 0 0 31px; font-weight: 600; }

.ax-google-explainer-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #9c27b0;
    border-radius: 6px;
    background: #9c27b0;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.ax-google-explainer-continue:hover { background: #7b1fa2; border-color: #7b1fa2; }

.ax-google-explainer-continue-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.ax-google-explainer-continue-logo svg { display: block; }

.ax-google-explainer-close:focus-visible,
.ax-google-explainer-continue:focus-visible {
    outline: 3px solid #ce93d8;
    outline-offset: 2px;
}

@media print {
    .ax-google-explainer-backdrop { display: none !important; }
}

.ax-google-status { display: none !important; }

.site-logo-stack {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

html[lang^=he] .site-nav .site-logo-stack { order: 3; }

@media (max-width: 760px) {
    html[lang^=he] .site-nav .site-logo-stack,
    html[lang^=en] .site-nav .site-logo-stack { order: 0; margin: 0; }
}

.site-context-bar {
    position: relative;
}

.ax-google-nav-toast {
    position: absolute;
    left: 40px;
    top: 50%;
    z-index: 1102;
    max-width: min(320px, 55vw);
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
    color: #dc2626;
    text-align: start;
    transform: translateY(-50%);
    opacity: 1;
    transition: opacity .4s ease;
    pointer-events: none;
}

.ax-google-nav-toast[hidden] { display: none; }

.ax-google-nav-toast-fade { opacity: 0; }

html.ax-google-visible .day-cell[data-date] {
    min-width: 0;
}

.ax-google-events-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0 4px;
    padding: 8px 0 0;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #334155;
    line-height: 1.35;
}

.ax-google-events-bar-head {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #1f3a5f;
}

.ax-google-events-bar-brand {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.ax-google-events-bar-sep {
    display: inline-block;
    width: 1px;
    height: 1.25em;
    background: #cbd5e1;
}

.ax-google-events-bar-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 0;
}

.ax-google-events-bar-link {
    margin: 0;
    padding: 2px 8px;
    border: 0;
    background: none;
    color: #145ec5;
    font: inherit;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
}

.ax-google-events-bar-link:hover,
.ax-google-events-bar-link:focus-visible {
    text-decoration: underline;
    outline: none;
}

.ax-google-events-bar-link:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
    border-radius: 4px;
}

.ax-google-events-bar-link.is-selected {
    background: #eef2f7;
    border-radius: 5px;
    font-weight: 600;
}

.ax-google-events-bar-link.is-selected:hover {
    background: #e2e8f0;
}

.ax-google-events-bar-link[data-action="disconnect"] {
    color: #1f2937;
}

.ax-google-events-bar-link[data-action="disconnect"]:hover,
.ax-google-events-bar-link[data-action="disconnect"]:focus-visible {
    color: #145ec5;
}

.ax-google-events-bar-pipe {
    color: #94a3b8;
    padding: 0 2px;
    font-size: 11px;
    user-select: none;
}

/* All-day focus: dim timed chips on screen (same look as the per-event eye). */
html.ax-google-daily-only .ax-google-preview.is-timed:not(.is-daily-exempt) {
    background: rgba(240, 240, 240, .2);
}

html.ax-google-daily-only .ax-google-preview.is-timed:not(.is-daily-exempt) .ax-google-chip-text {
    opacity: .2;
}

.ax-google-events {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: calc(100% - 10px);
    min-width: 0;
    margin-block-start: 10px;
    margin-inline: 5px;
    padding-block: 5px;
    font-size: .7em;
    line-height: 1.2;
}

.ax-google-events-scroll {
    display: grid;
    gap: 2px;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.ax-google-events-scroll::-webkit-scrollbar { display: none; }

.ax-google-scroll {
    position: absolute;
    left: 50%;
    right: auto;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 14px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, .94);
    color: #145ec5;
    box-shadow: 0 0 0 1px rgba(20, 94, 197, .35);
    cursor: pointer;
    line-height: 0;
    transform: translateX(-50%);
}

.ax-google-scroll[hidden] { display: none; }

.ax-google-scroll:hover,
.ax-google-scroll:focus-visible {
    color: #0f4da5;
    background: #eff6ff;
    box-shadow: 0 0 0 1px rgba(20, 94, 197, .55);
}

.ax-google-scroll-down { bottom: 0; }
.ax-google-scroll-up { top: 0; }

.ax-google-event-count,
.ax-google-count {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1px 5px;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    background: #eff6ff;
    color: #17365e;
    font-size: .9em;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ax-google-event {
    min-width: 0;
    padding: 2px 4px;
    border-inline-start: 2px solid #4285f4;
    background: #eaf2ff;
    color: #17365e;
    overflow-wrap: anywhere;
    word-break: normal;
}

.ax-google-time {
    margin-inline-end: 4px;
    color: #334155;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ax-google-preview {
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
    unicode-bidi: plaintext;
    line-height: 1.3;
    margin-block-start: 3px;
    text-align: start;
    padding: 2px 6px;
    padding-inline-start: 13px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #1f2937;
}

/* Hebrew: the eye stays at the physical left, so reserve room on the end side. */
html[lang^=he] .ax-google-preview { padding-inline-end: 16px; }

.ax-google-chip-text { transition: opacity .15s ease; }
.ax-google-preview.is-faded { background: rgba(240, 240, 240, .3); }
.ax-google-preview.is-faded .ax-google-chip-text { opacity: .3; }

.ax-google-eye {
    position: absolute;
    left: 1px;
    top: 1px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #94a3b8;
    cursor: pointer;
    line-height: 0;
}
.ax-google-eye:hover, .ax-google-eye:focus-visible { color: #145ec5; }
.ax-google-eye:focus-visible { outline: 2px solid #60a5fa; outline-offset: 0; border-radius: 3px; }
.ax-google-eye svg { display: block; }
.ax-google-eye .ax-google-eye-slash { display: none; }
.ax-google-eye[aria-pressed="true"] .ax-google-eye-open { display: none; }
.ax-google-eye[aria-pressed="true"] .ax-google-eye-slash { display: block; }

/* Hover / keyboard-focus bubble: "Hide in print" / "Show in print". */
.ax-google-eye::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 30;
    display: none;
    padding: 2px 6px;
    border-radius: 4px;
    background: #1f2937;
    color: #fff;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 400;
    white-space: nowrap;
    pointer-events: none;
}
.ax-google-eye:hover::after, .ax-google-eye:focus-visible::after { display: block; }

.ax-google-more-print { display: none; }

/* Year tiles are intentionally miniature: a dot per day with events. */
.year-tile .ax-google-preview,
.year-tile .ax-google-events-scroll,
.year-tile .ax-google-scroll { display: none; }
.year-tile .ax-google-events {
    position: absolute;
    bottom: 1px;
    inset-inline-end: 1px;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-size: 7px;
    color: #1e40af;
    background: white;
}

@media print {
    .ax-google-toolbar,
    .ax-google-toolbar *,
    .ax-google-nav-toast,
    .ax-google-events-bar,
    .ax-google-eye,
    .ax-google-scroll {
        display: none !important;
    }

    html.ax-google-daily-only .ax-google-preview.is-timed:not(.is-daily-exempt) {
        display: none !important;
    }

    .ax-google-events-scroll {
        overflow: visible !important;
        max-height: none !important;
        gap: 2px !important;
    }

    .ax-google-events {
        font-size: 8px;
        line-height: 1.1;
        margin-block-start: 11px !important;
        margin-inline: 1px !important;
        padding-block: 5px !important;
    }

    .ax-google-preview {
        font-size: 8px;
        line-height: 1.1;
        margin-block-start: 0;
        padding-block: 5px !important;
        padding-inline-end: 3px !important;
        padding-inline-start: 4px !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    html[lang^=he] .ax-google-preview {
        padding-inline-end: 3px !important;
    }

    .ax-google-preview.is-faded,
    .ax-google-preview.is-print-overflow { display: none !important; }

    .ax-google-more-print:not([hidden]) {
        display: block;
        margin-block-start: 0 !important;
        font-size: 8px;
        line-height: 1.1;
        font-weight: 700;
        color: #1f2937;
    }

    .ax-google-events.is-all-faded { display: none !important; }

    html.ax-google-visible,
    html.ax-google-visible body {
        overflow: visible !important;
    }
}

/* A3 (and any sheet whose reflowed print width exceeds A4 portrait): match on-screen chip scale. */
/* A3 portrait is only ~273mm wide after margins (same as A4 landscape), so width alone
   misses it; its ~395mm printable height (A4 portrait: ~272mm) tells it apart. */
@media print and (min-width: 280mm), print and (min-height: 330mm) {
    .ax-google-events {
        width: calc(100% - 10px);
        font-size: calc(0.7em + 2px);
        line-height: 1.2;
        margin-block-start: 20px !important;
        margin-inline: 5px !important;
        padding-block: 5px !important;
    }

    .ax-google-preview {
        font-size: inherit;
        line-height: 1.3;
        margin-block-start: 3px;
        padding-block: 5px !important;
        padding-inline-end: 6px !important;
        padding-inline-start: 6px !important;
    }

    html[lang^=he] .ax-google-preview {
        padding-inline-end: 6px !important;
    }

    .ax-google-preview.is-print-overflow:not(.is-faded) {
        display: block !important;
    }

    .ax-google-more-print {
        display: none !important;
    }

    .ax-google-more-print:not([hidden]) {
        font-size: calc(0.7em + 2px);
        line-height: 1.2;
        margin-block-start: 2px !important;
    }
}

@media (max-width: 760px) {
    .ax-google-nav-slot {
        margin-inline-start: 0;
        margin-block-start: 10px;
    }

    .ax-google-help-popup {
        position: fixed;
        inset-block-start: 64px;
        inset-inline: 12px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        transform: none !important;
    }
}

@media screen and (max-width: 760px) {
    html.ax-google-visible .day-cell[data-date] {
        padding-inline: 3px;
    }

    .ax-google-events {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        font-size: 5px;
        line-height: 1.15;
        margin-block-start: 6px;
        margin-inline: 0;
        padding-block: 2px;
        width: 100%;
    }

    .ax-google-preview {
        font-size: 5px;
        line-height: 1.15;
        margin-block-start: 1px;
        padding-block: 1px;
        padding-inline: 2px;
        border-radius: 2px;
        max-width: 100%;
        min-width: 0;
    }

    /* Eye hidden on mobile — drop the 16px end padding reserved for it on Hebrew pages. */
    html[lang^=he] .ax-google-preview {
        padding-inline: 2px;
        padding-inline-start: 2px;
    }

    .ax-google-chip-text {
        display: block;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .ax-google-eye {
        display: none !important;
    }

    .ax-google-more-print {
        font-size: 5px;
        line-height: 1.15;
    }

    .ax-google-events-scroll {
        order: 1;
        flex: 1 1 auto;
        min-height: 0;
        min-width: 0;
        width: 100%;
        gap: 1px;
        overflow-x: visible;
    }

    .ax-google-scroll {
        position: static;
        left: auto;
        transform: none;
        align-self: center;
        width: 17px;
        height: 7px;
        border-radius: 2px;
    }

    .ax-google-scroll svg {
        width: 6px;
        height: 6px;
    }

    .ax-google-scroll-up {
        order: 0;
        margin-block-end: 1px;
    }

    .ax-google-scroll-down {
        order: 2;
        margin-block-start: 1px;
    }

    .ax-google-events-bar {
        flex-wrap: nowrap;
        gap: 4px 5px;
        margin: 6px 0 2px;
        padding-top: 5px;
        font-size: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .ax-google-events-bar::-webkit-scrollbar {
        display: none;
    }

    .ax-google-events-bar-head {
        flex-shrink: 0;
        gap: 4px;
        font-size: 10px;
    }

    .ax-google-events-bar-title {
        font-size: inherit;
        white-space: nowrap;
    }

    .ax-google-events-bar-brand {
        width: 14px;
        height: 14px;
    }

    .ax-google-events-bar-sep {
        height: 1em;
        flex-shrink: 0;
    }

    .ax-google-events-bar-actions {
        flex-wrap: nowrap;
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-start;
        gap: 0;
    }

    .ax-google-events-bar-link {
        font-size: 9px;
        line-height: 1.25;
        padding: 1px 3px;
    }

    .ax-google-events-bar-pipe {
        font-size: 8px;
        padding: 0 1px;
    }
}
