.gk-calendar {
    --gk-primary: #406b58;
    --gk-accent: #b08d57;
    --gk-background: #fff;
    --gk-text-color: #222;
    --gk-radius: 8px;
    --gk-spacing: 16px;
    --gk-icon-size: 40px;
    font-family: inherit;
    color: var(--gk-text-color);
    box-sizing: border-box;
}

.gk-calendar *,
.gk-calendar *::before,
.gk-calendar *::after {
    box-sizing: border-box;
}

.gk-empty {
    margin: 0;
    padding: var(--gk-spacing);
    border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
    border-radius: var(--gk-radius);
    background: var(--gk-background);
}

/* Timeline / Variante D */
.gk-timeline {
    display: grid;
}

.gk-timeline-item {
    --gk-category-color: var(--gk-primary);
    position: relative;
    display: grid;
    grid-template-columns: calc(var(--gk-icon-size) + 24px) minmax(0, 1fr);
    min-width: 0;
}

.gk-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: calc((var(--gk-icon-size) + 24px) / 2 - 1px);
    top: calc(var(--gk-icon-size) + 10px);
    bottom: -10px;
    width: 2px;
    background: color-mix(in srgb, var(--gk-category-color) 32%, transparent);
}

.gk-timeline-marker {
    position: relative;
    z-index: 1;
    width: var(--gk-icon-size);
    height: var(--gk-icon-size);
    margin: 14px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gk-category-color);
    border-radius: 999px;
    color: var(--gk-category-color);
    background: var(--gk-background);
    overflow: hidden;
}

.gk-category-icon {
    width: 62%;
    height: 62%;
    object-fit: contain;
    display: block;
}

.gk-category-icon-fallback {
    width: 58%;
    height: 58%;
}

.gk-event-row {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: calc(var(--gk-spacing) * .9);
    align-items: center;
    margin: 6px 0 14px;
    padding: var(--gk-spacing);
    border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    border-radius: var(--gk-radius);
    background: var(--gk-background);
    color: inherit;
    text-decoration: none;
    transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease, background-color .18s ease;
}

a.gk-event-row {
    cursor: pointer;
}

/* Keep event-card text readable even when a theme globally recolors links or
 * buttons on hover. Do not use `inherit` here: some themes set the hovered
 * anchor/button itself to white, causing all child text to inherit white. */
.gk-calendar .gk-event-row,
.gk-calendar .gk-event-row:hover,
.gk-calendar .gk-event-row:focus-visible,
.gk-calendar .gk-compact-event,
.gk-calendar .gk-compact-event:hover,
.gk-calendar .gk-compact-event:focus-visible {
    color: var(--gk-text-color) !important;
}

.gk-calendar .gk-event-row .gk-date-day,
.gk-calendar .gk-event-row .gk-event-title,
.gk-calendar .gk-event-row .gk-event-meta,
.gk-calendar .gk-event-row .gk-event-time,
.gk-calendar .gk-event-row .gk-event-location,
.gk-calendar .gk-event-row:hover .gk-date-day,
.gk-calendar .gk-event-row:hover .gk-event-title,
.gk-calendar .gk-event-row:hover .gk-event-meta,
.gk-calendar .gk-event-row:hover .gk-event-time,
.gk-calendar .gk-event-row:hover .gk-event-location,
.gk-calendar .gk-event-row:focus-visible .gk-date-day,
.gk-calendar .gk-event-row:focus-visible .gk-event-title,
.gk-calendar .gk-event-row:focus-visible .gk-event-meta,
.gk-calendar .gk-event-row:focus-visible .gk-event-time,
.gk-calendar .gk-event-row:focus-visible .gk-event-location,
.gk-calendar .gk-compact-event .gk-compact-date strong,
.gk-calendar .gk-compact-event .gk-compact-title,
.gk-calendar .gk-compact-event .gk-compact-meta,
.gk-calendar .gk-compact-event:hover .gk-compact-date strong,
.gk-calendar .gk-compact-event:hover .gk-compact-title,
.gk-calendar .gk-compact-event:hover .gk-compact-meta,
.gk-calendar .gk-compact-event:focus-visible .gk-compact-date strong,
.gk-calendar .gk-compact-event:focus-visible .gk-compact-title,
.gk-calendar .gk-compact-event:focus-visible .gk-compact-meta {
    color: var(--gk-text-color) !important;
}

/* Timeline month is intentionally neutral; compact-list month keeps the
 * category color. Both are protected from theme hover rules. */
.gk-calendar.gk-view-timeline .gk-date-month,
.gk-calendar.gk-view-timeline .gk-event-row:hover .gk-date-month,
.gk-calendar.gk-view-timeline .gk-event-row:focus-visible .gk-date-month {
    color: var(--gk-text-color) !important;
}

.gk-calendar.gk-view-kompakt .gk-compact-date span,
.gk-calendar.gk-view-kompakt .gk-compact-event:hover .gk-compact-date span,
.gk-calendar.gk-view-kompakt .gk-compact-event:focus-visible .gk-compact-date span {
    color: var(--gk-category-color) !important;
}

.gk-event-row:hover,
.gk-event-row:focus-visible {
    border-color: color-mix(in srgb, var(--gk-category-color) 42%, transparent);
    background: color-mix(in srgb, var(--gk-category-color) 5%, var(--gk-background));
    box-shadow: 0 8px 24px rgba(0, 0, 0, .07);
    transform: translateY(-1px);
    outline: none;
}

.gk-date-badge {
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 72px;
    padding-right: calc(var(--gk-spacing) * .85);
    border-right: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    text-decoration: none;
}

.gk-date-day {
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    line-height: 1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.gk-date-month {
    margin-top: 4px;
    color: var(--gk-category-color);
    font-size: .76rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: .08em;
}

.gk-date-range {
    margin-top: 5px;
    font-size: .68rem;
    line-height: 1.2;
    opacity: .7;
}

.gk-event-content {
    min-width: 0;
}

.gk-event-title {
    display: block;
    margin: 0 0 5px;
    padding: 0;
    color: inherit;
    font: inherit;
    font-size: 1.08em;
    line-height: 1.3;
    font-weight: 700;
}

.gk-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 14px;
    font-size: .92em;
    line-height: 1.45;
    opacity: .76;
}

.gk-event-time,
.gk-event-location {
    display: inline-flex;
    align-items: center;
}

.gk-event-location::before {
    content: "·";
    margin-right: 14px;
    opacity: .6;
}

.gk-event-chevron {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--gk-category-color) 9%, var(--gk-background));
    color: var(--gk-category-color);
    font-size: 1.45rem;
    line-height: 1;
    opacity: .82;
    transition: background-color .18s ease, transform .18s ease;
}

.gk-event-row:hover .gk-event-chevron,
.gk-event-row:focus-visible .gk-event-chevron {
    background: color-mix(in srgb, var(--gk-category-color) 16%, var(--gk-background));
    transform: translateX(1px);
}

.gk-details-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 13px;
    border-radius: max(4px, calc(var(--gk-radius) * .7));
    background: var(--gk-category-color, var(--gk-primary));
    color: #fff;
    font-size: .86em;
    font-weight: 600;
    white-space: nowrap;
}

/* Compact list */
.gk-compact-list {
    display: grid;
    gap: 8px;
}

.gk-compact-event {
    --gk-category-color: var(--gk-primary);
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    border-radius: var(--gk-radius);
    color: inherit;
    text-decoration: none;
    background: var(--gk-background);
}

a.gk-compact-event:hover,
a.gk-compact-event:focus-visible {
    border-color: color-mix(in srgb, var(--gk-category-color) 38%, transparent);
    background: color-mix(in srgb, var(--gk-category-color) 5%, var(--gk-background));
    box-shadow: 0 5px 18px rgba(0, 0, 0, .07);
    outline: none;
}

.gk-compact-date {
    display: grid;
    justify-items: center;
    line-height: 1;
}

.gk-compact-date strong {
    font-size: 1.35rem;
}

.gk-compact-date span {
    margin-top: 4px;
    color: var(--gk-category-color);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
}

.gk-compact-body {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.gk-compact-title {
    overflow: hidden;
    text-overflow: ellipsis;
}

.gk-compact-meta {
    font-size: .84em;
    opacity: .72;
}

@media (max-width: 640px) {
    .gk-timeline-item {
        grid-template-columns: 1fr;
    }

    .gk-timeline-item::before,
    .gk-timeline-marker {
        display: none;
    }

    .gk-event-row {
        grid-template-columns: 68px minmax(0, 1fr) auto;
        gap: 12px;
        padding: 13px;
    }

    .gk-date-badge {
        min-height: 58px;
        padding-right: 10px;
    }

    .gk-date-day {
        font-size: 1.55rem;
    }

    .gk-event-location::before {
        display: none;
    }

    .gk-event-meta {
        display: grid;
        gap: 2px;
    }

    .gk-details-button {
        padding-inline: 10px;
    }

    .gk-mobile-hide-icons .gk-timeline-marker {
        display: none;
    }
}

@media (max-width: 420px) {
    .gk-event-row {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .gk-event-chevron,
    .gk-event-row > .gk-details-button {
        display: none;
    }

    .gk-compact-event {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .gk-compact-event > .gk-details-button {
        display: none;
    }
}

/* Clickable rows can be anchors or modal buttons. */
button.gk-event-row,
button.gk-compact-event {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

button.gk-event-row:hover,
button.gk-event-row:focus-visible,
button.gk-compact-event:hover,
button.gk-compact-event:focus-visible {
    border-color: color-mix(in srgb, var(--gk-category-color) 38%, transparent);
    background: color-mix(in srgb, var(--gk-category-color) 5%, var(--gk-background));
    box-shadow: 0 5px 18px rgba(0, 0, 0, .07);
    outline: none;
}

/* Public detail page */
.gk-detail-shell {
    width: min(920px, calc(100% - 32px));
    margin: clamp(32px, 6vw, 72px) auto;
}

.gk-detail {
    --gk-primary: #406b58;
    --gk-accent: #b08d57;
    --gk-background: #fff;
    --gk-radius: 8px;
    --gk-spacing: 16px;
    font-family: inherit;
    color: inherit;
}

.gk-detail-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.gk-detail-category {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid color-mix(in srgb, var(--gk-category-color) 42%, transparent);
    border-radius: 999px;
    color: var(--gk-category-color);
    font-size: .82em;
    font-weight: 650;
}

.gk-detail-title {
    margin: 0 0 20px;
    font: inherit;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.08;
    font-weight: 750;
}

.gk-detail-meta {
    display: grid;
    gap: 10px;
    margin: 0 0 clamp(24px, 5vw, 40px);
}

.gk-detail-meta > div {
    display: grid;
    grid-template-columns: minmax(82px, 110px) minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.gk-detail-meta dt {
    font-weight: 700;
}

.gk-detail-meta dd {
    margin: 0;
}

.gk-detail-description {
    line-height: 1.7;
}

.gk-detail-description > :first-child {
    margin-top: 0;
}

.gk-detail-description > :last-child {
    margin-bottom: 0;
}

.gk-detail-links {
    margin-top: clamp(28px, 5vw, 44px);
    padding-top: 24px;
    border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.gk-detail-links h2 {
    margin: 0 0 12px;
    font: inherit;
    font-size: 1.2em;
    font-weight: 700;
}

.gk-detail-links ul {
    margin: 0;
    padding-left: 1.2em;
}

.gk-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: clamp(28px, 5vw, 44px);
}

.gk-action-button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 16px;
    border: 1px solid var(--gk-primary);
    border-radius: var(--gk-radius);
    background: var(--gk-primary);
    color: #fff;
    font: inherit;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.gk-action-button:hover,
.gk-action-button:focus-visible {
    filter: brightness(.94);
    color: #fff;
    outline: 2px solid color-mix(in srgb, var(--gk-primary) 32%, transparent);
    outline-offset: 2px;
}

.gk-action-button-secondary {
    background: transparent;
    color: var(--gk-primary);
}

.gk-action-button-secondary:hover,
.gk-action-button-secondary:focus-visible {
    color: var(--gk-primary);
}

.gk-share-status {
    font-size: .88em;
    opacity: .75;
}

/* Native dialog used for shortcode detail="modal". */
.gk-modal {
    width: min(660px, calc(100% - 24px));
    max-height: min(84vh, 820px);
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .26);
    overflow: auto;
}

.gk-modal::backdrop {
    background: rgba(0, 0, 0, .48);
}

.gk-modal-frame {
    position: relative;
    padding: clamp(22px, 5vw, 44px);
}

.gk-modal-close {
    position: sticky;
    z-index: 3;
    top: 10px;
    float: right;
    width: 40px;
    height: 40px;
    margin: -8px -8px 4px 12px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 999px;
    background: #fff;
    color: inherit;
    font: inherit;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.gk-modal-loading {
    margin: 0;
    padding: 28px 0;
}

.gk-detail-modal-content .gk-detail-title {
    margin-bottom: 16px;
    font-size: clamp(1.55rem, 5vw, 2.15rem);
}

.gk-detail-modal-content .gk-detail-meta {
    margin-bottom: 22px;
}

.gk-detail-modal-content .gk-detail-actions {
    margin-top: 24px;
}

@media (max-width: 560px) {
    .gk-detail-shell {
        width: min(100% - 24px, 920px);
        margin-block: 28px;
    }

    .gk-detail-meta > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .gk-detail-actions {
        align-items: stretch;
    }

    .gk-action-button {
        flex: 1 1 100%;
    }
}

/* Public month calendar */
.gk-month {
    width: 100%;
    min-width: 0;
}

.gk-month-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.gk-month-period-nav {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.gk-month-title {
    margin: 0;
    min-width: max-content;
    text-align: center;
    font: inherit;
    font-size: clamp(1.2rem, 2.6vw, 1.65rem);
    font-weight: 700;
}

.gk-month-nav,
.gk-month-today {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
    border-radius: max(4px, calc(var(--gk-radius) * .75));
    background: var(--gk-background);
    color: inherit;
    text-decoration: none;
}

.gk-month-nav {
    width: 40px;
    font-size: 1.5rem;
    line-height: 1;
}

.gk-month-today {
    grid-column: 3;
    justify-self: end;
    padding: 0 12px;
    font-size: .88em;
    font-weight: 600;
}

.gk-month-nav:hover,
.gk-month-nav:focus-visible,
.gk-month-today:hover,
.gk-month-today:focus-visible {
    border-color: var(--gk-primary);
    outline: none;
}

.gk-month-weekdays,
.gk-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.gk-month-weekdays {
    border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    border-bottom: 0;
    border-radius: var(--gk-radius) var(--gk-radius) 0 0;
    overflow: hidden;
    background: color-mix(in srgb, var(--gk-primary) 5%, var(--gk-background));
}

.gk-month-weekdays span {
    padding: 9px 7px;
    text-align: center;
    font-size: .78em;
    font-weight: 700;
    opacity: .72;
}

.gk-month-grid {
    border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    border-left: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.gk-month-day {
    min-width: 0;
    min-height: 128px;
    padding: 8px;
    border-right: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    background: var(--gk-background);
}

.gk-day-outside {
    background: color-mix(in srgb, currentColor 2.5%, var(--gk-background));
    opacity: .58;
}

.gk-month-day-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-height: 28px;
    margin-bottom: 5px;
}

.gk-month-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    min-height: 26px;
    border-radius: 999px;
    font-size: .88em;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.gk-day-today .gk-month-day-number {
    background: var(--gk-primary);
    color: #fff;
}

.gk-month-day-weekday {
    display: none;
}

.gk-month-events {
    display: grid;
    gap: 5px;
}

.gk-month-event {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 5px;
    align-items: baseline;
    padding: 5px 6px;
    border: 0;
    border-left: 3px solid var(--gk-category-color);
    border-radius: 4px;
    background: color-mix(in srgb, var(--gk-category-color) 9%, var(--gk-background));
    color: inherit;
    font: inherit;
    font-size: .76em;
    line-height: 1.28;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.gk-month-event:hover,
.gk-month-event:focus-visible {
    background: color-mix(in srgb, var(--gk-category-color) 17%, var(--gk-background));
    outline: 2px solid color-mix(in srgb, var(--gk-category-color) 38%, transparent);
    outline-offset: 1px;
}

.gk-month-event-time {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.gk-month-event-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gk-month-event-continuation {
    opacity: .88;
}

@media (max-width: 720px) {
    .gk-month-toolbar {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .gk-month-period-nav {
        grid-column: 1;
    }

    .gk-month-today {
        grid-column: 1;
        justify-self: center;
        min-height: 34px;
    }

    .gk-month-weekdays {
        display: none;
    }

    .gk-month-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        border: 0;
    }

    .gk-month-day {
        min-height: 0;
        padding: 12px;
        border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
        border-radius: var(--gk-radius);
    }

    .gk-month-day.gk-day-outside,
    .gk-month-day.gk-day-empty {
        display: none;
    }

    .gk-month-day-head {
        margin-bottom: 8px;
    }

    .gk-month-day-number {
        display: none;
    }

    .gk-month-day-weekday {
        display: inline;
        font-weight: 700;
    }

    .gk-month-event {
        padding: 8px 9px;
        font-size: .9em;
    }
}

/* Optional central link to the full calendar page. */
.gk-public-actions,
.gk-all-events-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: var(--gk-spacing);
}

.gk-all-events-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid var(--gk-accent);
    border-radius: var(--gk-radius);
    background: transparent;
    color: var(--gk-accent);
    font: inherit;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.gk-all-events-button:hover,
.gk-all-events-button:focus-visible {
    background: var(--gk-accent);
    color: #fff;
    transform: translateY(-1px);
    outline: none;
}


.gk-subscribe-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid var(--gk-primary);
    border-radius: var(--gk-radius);
    font: inherit;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.gk-subscribe-button {
    background: var(--gk-primary);
    color: #fff;
}


.gk-subscribe-button:hover,
.gk-subscribe-button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.gk-subscribe-button:hover,
.gk-subscribe-button:focus-visible {
    filter: brightness(.94);
    color: #fff;
}


/* RC5 visual refinement. The rules below intentionally come last so theme
 * resets and earlier conservative defaults cannot collapse the calendar UI. */
.gk-calendar {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.45;
}

.gk-calendar a {
    text-decoration: none;
}

.gk-view-timeline .gk-timeline {
    position: relative;
    gap: 0;
}

.gk-view-timeline .gk-timeline-item {
    grid-template-columns: calc(var(--gk-icon-size) + 34px) minmax(0, 1fr);
}

.gk-view-timeline .gk-timeline-item:not(:last-child)::before {
    left: calc((var(--gk-icon-size) + 34px) / 2 - 1px);
    top: calc(var(--gk-icon-size) + 14px);
    bottom: -14px;
    background: color-mix(in srgb, var(--gk-category-color) 28%, #dcdcde);
}

.gk-view-timeline .gk-timeline-marker {
    width: var(--gk-icon-size);
    height: var(--gk-icon-size);
    margin-top: 16px;
    border-width: 1px;
    background: var(--gk-background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.gk-calendar img.gk-category-icon,
.gk-calendar svg.gk-category-icon {
    display: block !important;
    width: 62% !important;
    height: 62% !important;
    max-width: 62% !important;
    max-height: 62% !important;
    margin: 0 !important;
    object-fit: contain;
}

.gk-view-timeline .gk-event-row {
    min-height: 92px;
    margin: 5px 0 14px;
    padding: clamp(13px, 2vw, 18px);
    border-color: color-mix(in srgb, currentColor 11%, transparent);
    background: var(--gk-background);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .045);
}

.gk-view-timeline .gk-event-row:hover,
.gk-view-timeline .gk-event-row:focus-visible {
    border-color: color-mix(in srgb, var(--gk-category-color) 55%, transparent);
    background: color-mix(in srgb, var(--gk-category-color) 3.5%, var(--gk-background));
    box-shadow: 0 10px 28px rgba(0, 0, 0, .09);
}

.gk-view-timeline .gk-date-badge {
    min-height: 64px;
    padding-right: 15px;
}

.gk-view-timeline .gk-date-day {
    font-size: clamp(1.55rem, 2.7vw, 2rem);
}

.gk-view-timeline .gk-event-title {
    margin-bottom: 6px;
    font-size: 1.06rem;
}

.gk-view-timeline .gk-event-meta {
    color: color-mix(in srgb, currentColor 76%, transparent);
    opacity: 1;
}

.gk-view-timeline .gk-event-chevron {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--gk-category-color) 9%, transparent);
    opacity: 1;
}

.gk-view-kompakt .gk-compact-list {
    gap: 10px;
}

.gk-view-kompakt .gk-compact-event {
    min-height: 70px;
    padding: 11px 14px;
    border-color: color-mix(in srgb, currentColor 11%, transparent);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.gk-view-kompakt .gk-compact-event:hover,
.gk-view-kompakt .gk-compact-event:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

.gk-view-kompakt .gk-compact-date {
    min-height: 50px;
    align-content: center;
    border-right: 1px solid color-mix(in srgb, currentColor 11%, transparent);
    padding-right: 10px;
}

.gk-view-monat .gk-month {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, currentColor 11%, transparent);
    border-radius: var(--gk-radius);
    background: var(--gk-background);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .045);
}

.gk-view-monat .gk-month-toolbar {
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
    background: color-mix(in srgb, var(--gk-primary) 3.5%, var(--gk-background));
}

.gk-view-monat .gk-month-nav,
.gk-view-monat .gk-month-today {
    background: var(--gk-background);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.gk-view-monat .gk-month-weekdays {
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
    border-radius: 0;
}

.gk-view-monat .gk-month-grid {
    border: 0;
}

.gk-view-monat .gk-month-day {
    min-height: 132px;
    border-right: 1px solid color-mix(in srgb, currentColor 9%, transparent);
    border-bottom: 1px solid color-mix(in srgb, currentColor 9%, transparent);
}

.gk-view-monat .gk-month-day:nth-child(7n) {
    border-right: 0;
}

.gk-view-monat .gk-month-event {
    padding: 6px 7px;
    border-left-width: 4px;
    border-radius: max(4px, calc(var(--gk-radius) * .55));
    font-size: .79rem;
}

@media (max-width: 720px) {
    .gk-view-monat .gk-month {
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .gk-view-monat .gk-month-toolbar {
        border: 1px solid color-mix(in srgb, currentColor 11%, transparent);
        border-radius: var(--gk-radius);
        margin-bottom: 12px;
    }

    .gk-view-monat .gk-month-day {
        background: var(--gk-background);
        box-shadow: 0 2px 10px rgba(0, 0, 0, .035);
    }
}

@media (max-width: 640px) {
    .gk-view-timeline .gk-event-row {
        min-height: 0;
        margin-bottom: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    }
}


/* RC8: non-disruptive month navigation and compact sharing action. */
.gk-month.is-loading {
    opacity: .62;
    pointer-events: none;
    transition: opacity .15s ease;
}

.gk-share-icon-button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--gk-primary) 40%, transparent);
    border-radius: 999px;
    background: transparent;
    color: var(--gk-primary);
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.gk-share-icon-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gk-share-icon-button:hover,
.gk-share-icon-button:focus-visible {
    background: color-mix(in srgb, var(--gk-primary) 8%, transparent);
    border-color: var(--gk-primary);
    transform: translateY(-1px);
    outline: none;
}

.gk-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* RC10: refined typography, block spacing and multi-day month presentation. */
.gk-calendar {
    margin-block: max(22px, calc(var(--gk-spacing) * 1.35));
}

.gk-view-timeline {
    --gk-timeline-main-size: clamp(1.2rem, 2vw, 1.45rem);
}

.gk-view-timeline .gk-date-badge {
    text-align: center;
}

.gk-view-timeline .gk-date-day,
.gk-view-timeline .gk-date-month,
.gk-view-timeline .gk-event-title,
.gk-view-timeline .gk-event-meta {
    font-size: var(--gk-timeline-main-size);
}

.gk-view-timeline .gk-date-day,
.gk-view-timeline .gk-date-month {
    line-height: 1.05;
    text-align: center;
}

.gk-view-timeline .gk-date-month {
    margin-top: 4px;
    letter-spacing: 0;
}

.gk-view-timeline .gk-event-title {
    margin-bottom: 5px;
    font-weight: 700;
    line-height: 1.28;
}

.gk-view-timeline .gk-event-meta {
    font-weight: 400;
    line-height: 1.35;
}

.gk-view-timeline .gk-date-range {
    font-size: .68rem;
    line-height: 1.2;
}

.gk-view-monat .gk-month-title {
    font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.gk-view-monat .gk-month-weekdays span {
    font-size: .88rem;
}

.gk-view-monat .gk-month-day-number {
    font-size: 1rem;
}

.gk-view-monat .gk-month-event {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    align-items: start;
    padding: 7px 8px;
    font-size: .95rem;
    line-height: 1.25;
    overflow: visible;
}

.gk-view-monat .gk-month-event-time {
    display: block;
    font-size: .82em;
    line-height: 1.15;
    font-weight: 700;
}

.gk-view-monat .gk-month-event-title {
    display: block;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    font-weight: 700;
    line-height: 1.25;
}

.gk-month-event-daycount {
    display: block;
    margin-top: 1px;
    font-size: .76em;
    line-height: 1.2;
    opacity: .72;
}

.gk-month-mode-day-count.gk-month-event-multiday {
    opacity: 1;
}

.gk-month-mode-bar {
    position: relative;
    min-height: 52px;
    border-left: 0;
    border-radius: 5px;
    background: color-mix(in srgb, var(--gk-category-color) 18%, var(--gk-background));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gk-category-color) 24%, transparent);
    z-index: 2;
}

.gk-month-mode-bar.gk-bar-open-left {
    margin-left: -9px;
    padding-left: 10px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.gk-month-mode-bar.gk-bar-open-right {
    margin-right: -9px;
    padding-right: 10px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.gk-month-mode-bar.gk-bar-start {
    border-left: 4px solid var(--gk-category-color);
}

.gk-month-mode-bar .gk-month-event-bar-fill {
    min-height: 28px;
    display: block;
}

@media (max-width: 720px) {
    .gk-view-monat .gk-month-event {
        font-size: 1rem;
        padding: 9px 10px;
    }

    .gk-month-mode-bar.gk-bar-open-left,
    .gk-month-mode-bar.gk-bar-open-right {
        margin-left: 0;
        margin-right: 0;
        border-radius: max(4px, calc(var(--gk-radius) * .55));
    }
}

/* RC11: multi-day list rows, calmer timeline month label, continuous bars and central calendar link. */
.gk-view-timeline .gk-date-month {
    color: inherit;
    font-weight: 400;
    opacity: 1;
}

.gk-public-actions,
.gk-all-events-wrap {
    justify-content: center;
    margin-top: max(18px, calc(var(--gk-spacing) * 1.15));
}

.gk-all-events-button {
    min-height: auto;
    padding: 4px 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--gk-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}

.gk-all-events-button:hover,
.gk-all-events-button:focus-visible {
    background: transparent;
    color: var(--gk-accent);
    transform: none;
    outline: none;
}

/* One visually continuous bar across adjacent calendar cells. */
.gk-view-monat .gk-month-mode-bar {
    width: auto;
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 10px;
    padding-right: 10px;
    border: 0;
    border-radius: 0;
    background: color-mix(in srgb, var(--gk-category-color) 20%, var(--gk-background));
    box-shadow: none;
    outline: 0;
    z-index: 3;
}

.gk-view-monat .gk-month-mode-bar:hover,
.gk-view-monat .gk-month-mode-bar:focus-visible {
    background: color-mix(in srgb, var(--gk-category-color) 27%, var(--gk-background));
    outline: 0;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gk-category-color) 30%, transparent);
}

.gk-view-monat .gk-month-mode-bar.gk-bar-start {
    margin-left: 0;
    padding-left: 8px;
    border-left: 0;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.gk-view-monat .gk-month-mode-bar.gk-bar-end {
    margin-right: 0;
    padding-right: 8px;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.gk-view-monat .gk-month-mode-bar.gk-bar-middle,
.gk-view-monat .gk-month-mode-bar.gk-bar-open-left,
.gk-view-monat .gk-month-mode-bar.gk-bar-open-right {
    border-radius: 0;
}

.gk-view-monat .gk-month-mode-bar .gk-month-event-bar-fill {
    min-height: 28px;
}

@media (max-width: 720px) {
    .gk-view-monat .gk-month-mode-bar,
    .gk-view-monat .gk-month-mode-bar.gk-bar-start,
    .gk-view-monat .gk-month-mode-bar.gk-bar-end,
    .gk-view-monat .gk-month-mode-bar.gk-bar-middle {
        margin-left: 0;
        margin-right: 0;
        border-radius: max(4px, calc(var(--gk-radius) * .55));
    }
}


/* Subtle central links and share icon. */
.gk-all-events-button {
    font-weight: 400 !important;
    text-decoration: none !important;
    color: currentColor;
    opacity: .72;
}

.gk-all-events-button:hover,
.gk-all-events-button:focus-visible {
    font-weight: 700 !important;
    text-decoration: none !important;
    color: currentColor;
    opacity: 1;
}

.gk-share-icon-button svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Unified subtle public links and share icon. */
.gk-subscribe-button {
    min-height: auto !important;
    padding: 4px 6px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: currentColor !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    opacity: .72;
    filter: none !important;
    transform: none !important;
}

.gk-subscribe-button:hover,
.gk-subscribe-button:focus-visible {
    background: transparent !important;
    color: currentColor !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    opacity: 1;
    filter: none !important;
    transform: none !important;
    outline: none;
}

.gk-share-icon-button svg {
    fill: currentColor !important;
    stroke: none !important;
    stroke-width: 0 !important;
}

/* Robust responsive layout for timeline and compact list.
 * Stronger specificity protects the calendar from aggressive theme link/button rules. */
@media (max-width: 700px) {
    .gk-calendar,
    .gk-view-timeline,
    .gk-view-kompakt,
    .gk-view-timeline .gk-timeline,
    .gk-view-kompakt .gk-compact-list {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    /* Mobile timeline becomes a clean card list. The decorative marker/line is
     * intentionally removed because it consumes valuable horizontal space. */
    .gk-view-timeline .gk-timeline-item {
        display: block !important;
        width: 100%;
        min-width: 0;
    }

    .gk-view-timeline .gk-timeline-item::before,
    .gk-view-timeline .gk-timeline-marker {
        display: none !important;
    }

    .gk-view-timeline .gk-event-row,
    .gk-view-timeline button.gk-event-row,
    .gk-view-timeline a.gk-event-row {
        display: grid !important;
        grid-template-columns: 66px minmax(0, 1fr) !important;
        grid-auto-flow: row;
        gap: 14px !important;
        align-items: center;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 0;
        margin: 0 0 12px !important;
        padding: 14px !important;
        text-align: left;
    }

    .gk-view-timeline .gk-date-badge {
        width: 66px;
        min-width: 0;
        min-height: 58px;
        margin: 0;
        padding: 0 12px 0 0;
        border-right: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    }

    .gk-view-timeline .gk-date-day,
    .gk-view-timeline .gk-date-month {
        max-width: 100%;
        white-space: nowrap !important;
    }

    .gk-view-timeline .gk-event-content,
    .gk-view-timeline .gk-event-title,
    .gk-view-timeline .gk-event-meta,
    .gk-view-timeline .gk-event-time,
    .gk-view-timeline .gk-event-location,
    .gk-view-kompakt .gk-compact-body,
    .gk-view-kompakt .gk-compact-title,
    .gk-view-kompakt .gk-compact-meta {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
    }

    .gk-view-timeline .gk-event-content {
        display: block !important;
    }

    .gk-view-timeline .gk-event-title {
        display: block !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .gk-view-timeline .gk-event-meta {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 2px !important;
        margin-top: 2px;
    }

    .gk-view-timeline .gk-event-time,
    .gk-view-timeline .gk-event-location {
        display: block !important;
    }

    .gk-view-timeline .gk-event-location::before {
        display: none !important;
        content: none !important;
    }

    .gk-view-timeline .gk-event-row > .gk-details-button {
        grid-column: 2;
        justify-self: start;
        margin-top: 2px;
    }

    /* Compact list uses the same two-column mobile rhythm. */
    .gk-view-kompakt .gk-compact-event,
    .gk-view-kompakt button.gk-compact-event,
    .gk-view-kompakt a.gk-compact-event {
        display: grid !important;
        grid-template-columns: 58px minmax(0, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 12px !important;
        text-align: left;
    }

    .gk-view-kompakt .gk-compact-date {
        width: 58px;
        min-width: 0;
        padding-right: 10px;
        border-right: 1px solid color-mix(in srgb, currentColor 11%, transparent);
    }

    .gk-view-kompakt .gk-compact-title {
        display: block !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .gk-view-kompakt .gk-compact-meta {
        display: block !important;
        line-height: 1.4;
    }

    .gk-view-kompakt .gk-compact-event > .gk-details-button {
        grid-column: 2;
        justify-self: start;
    }
}

/* On very narrow phones the date is placed above the content rather than
 * squeezing both columns. */
@media (max-width: 360px) {
    .gk-view-timeline .gk-event-row,
    .gk-view-timeline button.gk-event-row,
    .gk-view-timeline a.gk-event-row,
    .gk-view-kompakt .gk-compact-event,
    .gk-view-kompakt button.gk-compact-event,
    .gk-view-kompakt a.gk-compact-event {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 9px !important;
    }

    .gk-view-timeline .gk-date-badge,
    .gk-view-kompakt .gk-compact-date {
        width: 100%;
        min-height: 0;
        padding: 0 0 8px;
        border-right: 0;
        border-bottom: 1px solid color-mix(in srgb, currentColor 11%, transparent);
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: flex-start;
        gap: 6px;
    }

    .gk-view-timeline .gk-date-range {
        flex-basis: 100%;
        margin-top: 0;
    }

    .gk-view-timeline .gk-event-row > .gk-details-button,
    .gk-view-kompakt .gk-compact-event > .gk-details-button {
        grid-column: 1;
    }
}
