.gkpsch-block {margin-block: 1.5rem; line-height: 1.6;}
.gkpsch-block article {border-block-end: 1px solid currentColor; padding-block: 1rem;}
.gkpsch-controls {display: flex; flex-wrap: wrap; gap: .75rem; align-items: end;}
.gkpsch-block input, .gkpsch-block select, .gkpsch-block textarea {max-width: 100%; font: inherit;}
.gkpsch-block .is-cancelled h3 {text-decoration: line-through;}
@media print {
    .gkpsch-printing .gkpsch-controls, .gkpsch-printing header, .gkpsch-printing footer, .gkpsch-printing nav, .gkpsch-printing aside, .gkpsch-printing #wpadminbar {display: none !important;}
    .gkpsch-event {break-inside: avoid;}
    .gkpsch-block {color: black; background: white;}
}

.gkpsch-schedule-toolbar{display:flex;gap:1rem;flex-wrap:wrap;justify-content:space-between;align-items:center}.gkpsch-schedule-columns{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:1.5rem}.gkpsch-schedule-columns>.gkpsch-week{min-width:0}.gkpsch-schedule-aside{display:grid;gap:1rem;align-content:start}.gkpsch-mini-month,.gkpsch-visit-card{padding:1rem;border:1px solid #ddd;border-radius:4px}.gkpsch-mini-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center}.gkpsch-mini-grid a{padding:5px;text-decoration:none}.gkpsch-mini-grid .has-services{background:#f1eadb;font-weight:bold}.gkpsch-visit-card a{display:block;margin-top:.6rem}.gkpsch-event{display:flex;gap:1rem}.gkpsch-event-time{flex:none;min-width:55px;font-size:1.2em}.gkpsch-event-time small{display:block;font-size:.75em}.gkpsch-event-copy{min-width:0}.gkpsch-event-copy h3{margin-top:0}.gkpsch-event-description summary{cursor:pointer}.gkpsch-month .gkpsch-event{display:block}.gkpsch-month .gkpsch-event-time{font-size:1em}@media(max-width:760px){.gkpsch-schedule-columns{grid-template-columns:1fr}}

.gkpsch-schedule-overview{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-bottom:1.5rem}.gkpsch-schedule-overview>div{padding:1.2rem;border:1px solid #ddd;border-radius:5px}.gkpsch-schedule-overview h3{margin:0 0 1rem}.gkpsch-schedule-overview small{display:block}.gkpsch-schedule-overview ul{padding-left:1.2rem}.gkpsch-schedule-overview li{margin-bottom:.75rem}.gkpsch-mini-grid a{position:relative;border:1px solid transparent;border-radius:3px}.gkpsch-mini-grid .is-selected-week{background:#f1eadb}.gkpsch-mini-grid .is-today{border-color:currentColor;font-weight:bold}.gkpsch-mini-grid .has-services:after{content:"";position:absolute;width:4px;height:4px;border-radius:50%;background:currentColor;bottom:1px;left:calc(50% - 2px)}.gkpsch-mini-grid .has-cancellations{text-decoration:line-through;color:#9d2d1f}.gkpsch-mini-grid .has-moves{box-shadow:inset 0 -2px #b58334}.gkpsch-mini-legend{display:flex;flex-wrap:wrap;gap:8px;font-size:10px;margin-top:12px}.gkpsch-mini-legend span{padding:2px 5px;border:1px solid transparent}.gkpsch-mini-legend .is-today{border-color:currentColor}.gkpsch-mini-legend .is-selected-week{background:#f1eadb}.gkpsch-mini-legend .has-services:before{content:"● ";font-size:8px}@media(max-width:600px){.gkpsch-schedule-overview{grid-template-columns:1fr}}

.gkpsch-required{color:#a12c27}.gkpsch-required-help,.gkpsch-topic-help{font-size:.85em}.gkpsch-requests select{max-width:100%;width:100%;padding:.6em;font:inherit}.gkpsch-requests [hidden]{display:none!important}
.gkpsch-service-icon{margin:10px 0 0;max-width:100%;width:60px}.gkpsch-service-icon[hidden]{display:none}.gkpsch-service-icon img{display:block;width:100%;height:auto;max-height:110px;object-fit:contain}.gkpsch-service-icon figcaption{font:9px/1.3 system-ui;overflow-wrap:anywhere}.gkpsch-month .gkpsch-service-icon{width:44px}@media(max-width:600px){.gkpsch-service-icon{width:44px}}
/* The native lightbox button covers the icon without painting over its small thumbnail. */
body .gkpsch-service-icon.wp-lightbox-container button.lightbox-trigger{inset:0!important;transform:none!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;opacity:0!important;cursor:zoom-in}
.gkpsch-service-icon.wp-lightbox-container:focus-within{outline:2px solid currentColor;outline-offset:2px}
/* Keep WordPress's native viewer, but give the icon a bounded, readable panel. */
.wp-lightbox-overlay:has(.gkpsch-service-icon) .scrim{background:rgba(17,24,35,.76)!important}
.wp-lightbox-overlay:has(.gkpsch-service-icon) .lightbox-image-container{top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;width:min(440px,calc(100vw - 32px))!important;height:min(560px,calc(100vh - 32px))!important}
.wp-lightbox-overlay .lightbox-image-container .gkpsch-service-icon{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;height:100%;max-width:none;margin:0;padding:16px;overflow:hidden;background:#fff;border-radius:8px;box-shadow:0 16px 48px rgba(0,0,0,.28)}
.wp-lightbox-overlay .lightbox-image-container .gkpsch-service-icon img{width:auto!important;height:auto!important;max-width:min(408px,calc(100vw - 64px))!important;max-height:min(528px,calc(100vh - 64px))!important;object-fit:contain!important}
.wp-lightbox-overlay:has(.gkpsch-service-icon) .wp-lightbox-close-button{top:12px;right:12px;background:#fff;border-radius:50%}
.gkpsch-month-panels{display:block;margin-top:18px}.gkpsch-month-panels.is-enhanced>.gkpsch-month-day-panel:not([open]){display:none}.gkpsch-month-day-panel{margin-bottom:8px;border:1px solid #ddd;border-radius:4px;padding:12px;min-width:0}.gkpsch-month-day-panel>summary{cursor:pointer;padding:8px;font-size:16px}.gkpsch-month-day-panel .gkpsch-month-saint:empty{display:none}.gkpsch-month-day-panel .gkpsch-month-saint{font-size:14px;margin:6px 8px 12px;color:#5f6876}
@media print{.gkpsch-month-panels{display:none!important}}

/* A soft edge marks vestments without lowering text contrast. */
.gkpsch-service-feast{font-weight:600;font-size:.95em;line-height:1.45;margin-block:8px}.gkpsch-vestment-label{display:block;font-size:.8em;margin-block:5px}.gkpsch-service-compact[data-vestment-color],.gkpsch-event[data-vestment-color],.gkpsch-upcoming-card[data-vestment-color]{box-shadow:inset 6px 0 0 var(--gkpsch-vestment-edge)}.gkpsch-service-compact[data-vestment-color],.gkpsch-event[data-vestment-color]{padding-inline-start:12px}
[data-vestment-color="white"]{--gkpsch-vestment-edge:#faf8ef}
[data-vestment-color="red"]{--gkpsch-vestment-edge:#cb3035}
[data-vestment-color="gold"]{--gkpsch-vestment-edge:#f2c500}
[data-vestment-color="green"]{--gkpsch-vestment-edge:#159447}
[data-vestment-color="blue"]{--gkpsch-vestment-edge:#349bd5}
[data-vestment-color="purple"]{--gkpsch-vestment-edge:#8a45b5}
[data-vestment-color="black"]{--gkpsch-vestment-edge:#353a40}

.gkpsch-schedule-overview>.gkpsch-upcoming-card:only-child{grid-column:1/-1}

.gkpsch-month .gkpsch-event[data-vestment-color]{padding-inline-start:12px}

/* Shared mini-month styling for every theme; feast text and service frames are independent. */
.gkpsch-mini-grid a.has-vestment-frame{border-style:solid;border-width:2px;color:var(--gkpsch-day-ink)}.gkpsch-mini-grid a.is-great-feast,.gkpsch-mini-grid a.is-great-feast.is-today{color:#b22222;font-weight:700}
.gkpsch-service-feast .gkpsch-typikon{display:inline-block;width:20px;height:20px;vertical-align:middle;margin-inline-end:6px;object-fit:contain}.gkpsch-mini-grid a .gkpsch-typikon{position:absolute;top:1px;right:1px;width:9px;height:9px;object-fit:contain}.gkpsch-month td>.gkpsch-service-feast{margin:4px 0}

/* The schedule layout follows the original Prihod design, with plugin-owned selectors. */
.gkpsch-schedule{--gkpsch-line:var(--prihod-line,#e2d9cc);--gkpsch-accent:var(--wp--preset--color--forest,#a66d24);--gkpsch-muted:var(--prihod-muted,#687181);padding:0;background:transparent;border:0}
.gkpsch-schedule-body{padding:20px;background:#fff;border:1px solid var(--gkpsch-line);border-radius:5px}
.gkpsch-schedule-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.gkpsch-view-switch{display:flex;gap:0}
.gkpsch-view-switch a{padding:8px 16px;border:1px solid var(--gkpsch-line);font-size:14px;text-decoration:none;color:var(--gkpsch-accent)}
.gkpsch-view-switch a+a{border-left:0}
.gkpsch-view-switch a[aria-current]{background:var(--gkpsch-accent);color:#fff}
.gkpsch-controls{display:flex;gap:10px;align-items:end;flex-wrap:wrap;font-size:12px}
.gkpsch-controls label{display:flex;flex-direction:column;gap:4px}
.gkpsch-block .gkpsch-controls input,.gkpsch-block .gkpsch-controls select{max-width:230px;font-size:12px;padding:7px;border:1px solid var(--gkpsch-line);border-radius:3px;background:#fff;color:inherit}
.gkpsch-controls button{font-size:12px;padding:8px 12px;border:1px solid var(--gkpsch-accent);border-radius:3px;background:var(--gkpsch-accent);color:#fff;cursor:pointer}
.gkpsch-controls button:hover,.gkpsch-controls button:focus-visible{filter:brightness(.9)}
.gkpsch-period-nav{display:flex;justify-content:space-between;gap:10px;font-size:0;margin:20px 0 12px}
.gkpsch-period-nav a{font-size:13px;color:var(--gkpsch-accent)}
.gkpsch-range-title{font:24px/1.3 Georgia,serif;text-align:center;margin:12px 0 20px}
.gkpsch-schedule-columns{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px}
.gkpsch-week-day{display:grid;grid-template-columns:66px minmax(0,1fr);margin-bottom:12px;border:1px solid var(--gkpsch-line);border-radius:5px;overflow:hidden;background:#fff}
.gkpsch-week-day>h4{margin:0;padding:18px 10px;text-align:center;background:#f5f1e8;font-size:14px}
.gkpsch-week-day>h4 strong{display:block;font:30px/1.3 Georgia,serif}
.gkpsch-block article.gkpsch-event{display:flex;gap:16px;padding:16px;margin:0;border:0;border-bottom:1px solid var(--gkpsch-line);border-radius:0}
.gkpsch-week-day .gkpsch-event:last-child{border-bottom:0}
.gkpsch-event-time{flex:none;width:60px;font:21px/1.2 Georgia,serif;color:var(--gkpsch-accent)}
.gkpsch-event-time small{display:block;font-size:13px;margin-top:6px}
.gkpsch-event-copy{min-width:0;flex:1}
.gkpsch-event-copy h3{font:21px/1.25 Georgia,serif;margin:0 0 6px}
.gkpsch-event-copy p{font-size:12px;margin:4px 0}
.gkpsch-event-meta{color:var(--gkpsch-muted)}
.gkpsch-event-description{font-size:12px;margin-top:10px}
.gkpsch-event-description summary{cursor:pointer;color:var(--gkpsch-accent)}
.gkpsch-event.is-cancelled{background:#fff5f2}
.gkpsch-event.is-moved{background:#fff9e9}
.gkpsch-schedule-aside{display:grid;gap:20px;align-content:start}
.gkpsch-mini-month,.gkpsch-visit-card{padding:18px;border:1px solid var(--gkpsch-line);border-radius:5px}
.gkpsch-schedule-aside h3{font:22px/1.3 Georgia,serif;margin:0 0 16px}
.gkpsch-mini-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;gap:5px;font-size:12px}
.gkpsch-mini-grid a{padding:6px 2px;text-decoration:none}
.gkpsch-mini-grid .has-services{background:#f1e8d7;border-radius:3px;font-weight:bold}
.gkpsch-visit-card p{font-size:13px;line-height:1.6}
.gkpsch-visit-card a{display:block;font-size:13px;margin-top:10px;color:var(--gkpsch-accent)}
.gkpsch-month .gkpsch-event{display:block;padding:6px}
.gkpsch-month .gkpsch-event h3{font-size:13px}
.gkpsch-month .gkpsch-event-time{font-size:14px}
.gkpsch-month .gkpsch-event-copy p{font-size:10px}
.gkpsch-schedule-overview{grid-template-columns:1.28fr 1fr;gap:16px;margin-bottom:24px}
.gkpsch-schedule-overview>div{position:relative;padding:18px 20px 18px 94px;background:#fff;border:1px solid var(--gkpsch-line)}
.gkpsch-schedule-overview h3{font:23px/1.25 Georgia,serif;border:0;padding:0;margin:0 0 5px}
.gkpsch-upcoming-card:before{content:"";position:absolute;left:18px;top:20px;width:56px;height:56px;border-radius:50%;background:#faf5e9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke='%23b77d20' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='16' rx='1'/%3E%3Cpath d='M7 2v6m10-6v6M3 10h18m-13 4h2m4 0h2m-8 4h2m4 0h2'/%3E%3C/svg%3E") center no-repeat}
.gkpsch-schedule-overview .gkpsch-changes-card{padding-left:65px;background:#fdf6e8}
.gkpsch-changes-card:before{content:"!";position:absolute;left:20px;top:20px;width:28px;height:28px;border:2px solid #b77d20;border-radius:50%;text-align:center;font:22px/28px Georgia,serif;color:#b77d20}
.gkpsch-changes-card h3{color:#955b13}
.gkpsch-schedule-overview .gkpsch-overview-date{font-size:20px;margin:3px 0;font-weight:bold;color:var(--gkpsch-accent)}
.gkpsch-upcoming-card>strong{font:20px/1.25 Georgia,serif}
.gkpsch-upcoming-card>p:not(.gkpsch-overview-date){margin:5px 0;max-width:calc(100% - 130px)}
.gkpsch-upcoming-card>a{position:absolute;right:18px;bottom:20px;padding:7px 10px;border:1px solid var(--gkpsch-line);border-radius:4px;font-size:12px;text-decoration:none;color:var(--gkpsch-accent)}
.gkpsch-schedule-overview p:not(.gkpsch-overview-date),.gkpsch-schedule-overview li{font-size:13px}
.gkpsch-schedule-overview small{font-size:11px;color:var(--gkpsch-muted);margin-top:4px}
.gkpsch-mini-grid .has-services{background:transparent}
.gkpsch-mini-grid .is-selected-week{background:#f1e8d7}
.gkpsch-mini-grid .is-today{border-color:var(--gkpsch-accent);color:var(--gkpsch-accent)}
@media(max-width:800px){.gkpsch-schedule-columns{grid-template-columns:1fr}.gkpsch-schedule-aside{grid-template-columns:1fr 1fr}.gkpsch-schedule-toolbar{display:block}.gkpsch-controls{margin-top:15px}}
@media(max-width:760px){.gkpsch-schedule-overview{grid-template-columns:1fr}}
@media(max-width:600px){.gkpsch-schedule-body{padding:12px}.gkpsch-schedule-overview{gap:12px}.gkpsch-schedule-overview>div,.gkpsch-schedule-overview .gkpsch-changes-card{padding:16px}.gkpsch-upcoming-card:before,.gkpsch-changes-card:before{display:none}.gkpsch-upcoming-card>p:not(.gkpsch-overview-date){max-width:none}.gkpsch-upcoming-card>a{position:static;display:inline-block;margin-top:8px}.gkpsch-schedule-aside{grid-template-columns:1fr}.gkpsch-week-day{grid-template-columns:48px minmax(0,1fr)}.gkpsch-block article.gkpsch-event{gap:8px;padding:10px}.gkpsch-event-time{width:46px;font-size:18px}.gkpsch-event-copy h3{font-size:18px}.gkpsch-period-nav a{font-size:11px}}

/* One balanced seven-column month, with calendar commemorations and compact services. */
.gkpsch-schedule .gkpsch-month{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:5px;margin:0;background:transparent}
.gkpsch-month caption{caption-side:top;text-align:left;font:23px/1.3 Georgia,serif;padding:0 0 12px;color:#20293a}
.gkpsch-month th{padding:7px 2px;text-align:center;border:0;background:transparent;color:#687181;font:12px/1.4 system-ui}
.gkpsch-schedule .gkpsch-month td{width:14.285%;height:145px;padding:0;vertical-align:top;border:0;background:transparent}
.gkpsch-month td.is-adjacent span{box-sizing:border-box;display:block;min-height:145px;padding:10px;border:1px solid #ece9e4;border-radius:6px;background:#f8f7f5;color:#a5a6a8;font:22px/1 Georgia,serif}
.gkpsch-month-day-choice{box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:5px;width:100%;height:100%;min-height:145px;padding:10px;border:1px solid var(--gkpsch-line,#e2d9cc);border-radius:6px;background:#fff;color:#20293a;text-decoration:none!important;overflow:hidden}
.gkpsch-month-day-choice:hover,.gkpsch-month-day-choice:focus-visible{border-color:var(--gkpsch-accent,#a66d24);box-shadow:0 2px 10px rgba(32,41,58,.08)}
.gkpsch-month-day-choice[aria-current]{outline:2px solid var(--gkpsch-accent,#a66d24);outline-offset:-2px}
.gkpsch-month td.is-today .gkpsch-month-day-choice{background:#fbf7ee}
.gkpsch-month-date{display:flex;align-items:baseline;gap:4px;min-height:26px}
.gkpsch-month-date time{font:22px/1 Georgia,serif}.gkpsch-month-date small{font:10px/1 system-ui;color:#8b929c}
.gkpsch-month-day-choice.is-great-feast .gkpsch-month-date time,.gkpsch-month tr td:last-child .gkpsch-month-date time{color:#a12b2b}
.gkpsch-month-saint{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font:11px/1.3 system-ui;color:#3d4655;overflow-wrap:anywhere}
.gkpsch-month-saint:empty,.gkpsch-month-food:empty{display:none}
.gkpsch-month-food{margin-top:auto;color:#687181;font:10px/1.2 system-ui}
.gkpsch-month-service{display:flex;flex-direction:column;gap:2px;margin-top:auto;padding:4px 5px;border-left:3px solid var(--gkpsch-service-edge,#bf972c);background:#f7f1e6;color:#283345;font:10px/1.2 system-ui}
.gkpsch-month-service strong{font-weight:700;color:#946019}.gkpsch-month-service span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.gkpsch-month-day-choice>.gkpsch-typikon{position:absolute;width:15px;height:15px;object-fit:contain;align-self:flex-end}
.gkpsch-month-calendar-detail{padding:4px 8px 14px;font:13px/1.5 system-ui}.gkpsch-month-calendar-detail p{margin:7px 0}.gkpsch-month-calendar-detail .gkpsch-month-saint{display:block;font:18px/1.35 Georgia,serif;color:#20293a}.gkpsch-month-calendar-detail h4{font:16px/1.3 Georgia,serif;margin:16px 0 6px}.gkpsch-month-calendar-detail ul{margin:0;padding-left:20px}.gkpsch-month-calendar-detail li{margin:4px 0}.gkpsch-month-calendar-detail [hidden]{display:none}
@media(max-width:760px){.gkpsch-schedule .gkpsch-month{border-spacing:3px}.gkpsch-schedule .gkpsch-month td{height:65px}.gkpsch-month td.is-adjacent span{min-height:65px;padding:5px;font-size:17px}.gkpsch-month-day-choice{min-height:65px;padding:5px;gap:2px}.gkpsch-month-date{min-height:20px}.gkpsch-month-date time{font-size:17px}.gkpsch-month-date small{font-size:9px}.gkpsch-month-day-choice>.gkpsch-month-saint,.gkpsch-month-food,.gkpsch-month-service span{display:none}.gkpsch-month-service{padding:2px;margin-top:auto}.gkpsch-month-service strong{font-size:9px}.gkpsch-month-day-choice>.gkpsch-typikon{width:10px;height:10px}}
@media print{.gkpsch-month-day-choice{color:#000!important;min-height:130px}.gkpsch-month-panels{display:none!important}}
