/* Despani Ecclesia component (/app/eklesia/oid/{id}, EklesiaComponentController) and its rail modules (EklesiaModules).
   Ecclesia look inside Despani: maroon #7d0001 / deep #5e0003, gold #b8862b / #d9b25f, parchment #fffaf0 / #f6ecd8 (the .ek-* palette),
   on the standard .alx grid and module boxes. Everything is scoped to .ekc-* or [data-mod-type^="eklesia_"]. */
:root{--ekc-red:#7d0001;--ekc-red2:#5e0003;--ekc-gold:#b8862b;--ekc-gold2:#d9b25f;--ekc-parch:#fffaf0;--ekc-parch2:#f6ecd8;--ekc-line:#e6d7b8;--ekc-ink:#2b1d14;--ekc-mut:#7b6a58}

/* ---------- stage ---------- */
.ekc-stage{container:ekc/inline-size;background:var(--ekc-parch);border:1px solid var(--ekc-line);border-radius:14px;overflow:hidden;box-shadow:0 10px 26px -20px #3d0808}
html body .ekc-page .ekc-stage-h{display:flex;align-items:center;gap:12px;min-width:0;margin:0;padding:10px 16px;background:linear-gradient(180deg,#8a1414,var(--ekc-red2));color:#fff}
html body .ekc-page a.ekc-brand{display:flex;align-items:center;gap:8px;flex:none;color:#fff;text-decoration:none}
.ekc-cross{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f2d48a,var(--ekc-gold));color:var(--ekc-red2);font-size:20px;line-height:1;box-shadow:0 0 0 2px #ffffff33}
html body .ekc-page .ekc-brand b{font:700 17px/1 Tahoma,"Noto Sans Georgian",sans-serif;letter-spacing:.02em;color:#fff}
html body .ekc-page .ekc-stage-h h1{margin:0;min-width:0;flex:1 1 auto;font:600 15px/1.3 Tahoma,"Noto Sans Georgian",sans-serif;color:#f6e7cc;overflow-wrap:anywhere;padding-left:12px;border-left:1px solid #ffffff40}
.ekc-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* view tabs: one row under the header, gold rule */
html body .ekc-page .ekc-tabs{display:flex;flex-wrap:wrap;gap:2px;margin:0;padding:0 10px;background:#4a0002;border-bottom:3px solid var(--ekc-gold)}
html body .ekc-page .ekc-tabs a{flex:none;padding:8px 12px;color:#f2dcc0;text-decoration:none;font:600 12.5px/1.2 Tahoma,sans-serif;white-space:nowrap;border-bottom:3px solid transparent;margin-bottom:-3px}
html body .ekc-page .ekc-tabs a:hover{color:#fff;background:#ffffff14}
html body .ekc-page .ekc-tabs a[aria-current]{color:#fff;border-bottom-color:#f2d48a;background:#ffffff1a}
.ekc-body{padding:16px}
.ekc-body>:first-child{margin-top:0!important}
html body .ekc-page .ekc-note{margin:16px 0 0;padding:12px 14px;background:#fff4d6;border:1px solid #e8d49a;border-radius:10px;color:var(--ekc-ink)}
html body .ekc-page .ekc-lead{margin:0 0 12px;color:var(--ekc-ink);line-height:1.55}
html body .ekc-page .ekc-after{margin:14px 0 0;text-align:center}
html body .ekc-page a.ekc-more{display:inline-block;margin-top:8px;color:var(--ekc-red);font-weight:700;font-size:12.5px;text-decoration:none}
html body .ekc-page a.ekc-more:hover{text-decoration:underline}
html body .ekc-page a.ekc-btn{display:inline-block;padding:9px 16px;border-radius:999px;background:linear-gradient(180deg,#9b1c1c,var(--ekc-red));color:#fff;font:700 13px/1.25 Tahoma,sans-serif;text-decoration:none;border:1px solid var(--ekc-red2);box-shadow:inset 0 1px 0 #ffffff2e}
html body .ekc-page a.ekc-btn:hover{background:var(--ekc-red2);color:#fff}

/* ---------- home: today ---------- */
.ekc-hero{margin-top:0;border-radius:12px;background:#fff linear-gradient(135deg,#fffdf7,var(--ekc-parch2));border:1px solid var(--ekc-line);box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 4px #ecdcb8}
.ekc-hero-load{padding:28px;text-align:center;color:var(--ekc-mut)}
.ekc-hero-in{display:grid;grid-template-columns:118px minmax(0,1fr);gap:18px;padding:16px}
.ekc-hero-date{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:12px 6px;border-radius:12px;background:linear-gradient(180deg,#8a1414,var(--ekc-red2));color:#fff;box-shadow:inset 0 0 0 2px var(--ekc-gold2);text-align:center;align-self:start}
.ekc-hero-date small{font:700 11px/1.2 Tahoma,sans-serif;color:#f2d48a;text-transform:uppercase;letter-spacing:.06em}
.ekc-hero-date b{font:700 46px/1 Georgia,serif}
.ekc-hero-date span{font:600 14px/1.2 Tahoma,sans-serif}
.ekc-hero-date em{font:normal 12px/1.2 Tahoma,sans-serif;opacity:.8}
.ekc-hero-body{min-width:0}
.ekc-hero-meta{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;font-size:12.5px;color:var(--ekc-mut)}
.ekc-hero-meta>span{padding:3px 9px;border-radius:999px;background:#fff;border:1px solid var(--ekc-line)}
.ekc-fast-f{color:#3d5a8f;background:#e3e9f4!important;border-color:#c9d4ea!important}
.ekc-fast-x{color:#23784a;background:#dcefe3!important;border-color:#bfe0cb!important}
.ekc-fast-c{color:#7a5a00;background:#f3e8c9!important;border-color:#e6d49d!important}
.ekc-hero-feast{display:flex;align-items:center;gap:10px;margin-top:10px;padding:8px 12px;border-radius:10px;background:var(--f,var(--ekc-red));color:#fff;font:700 16px/1.3 Tahoma,sans-serif}
.ekc-hero-feast i{font-style:normal;font-size:18px}
.ekc-hero-saints{margin:10px 0 0;padding:0;list-style:none;columns:2 240px;column-gap:22px}
.ekc-hero-saints li{break-inside:avoid;position:relative;padding:3px 0 3px 16px;font-size:13px;line-height:1.45;color:var(--ekc-ink)}
.ekc-hero-saints li::before{content:"☩";position:absolute;left:0;top:3px;color:var(--ekc-gold);font-size:11px}
.ekc-hero-saints li.b{font-weight:700;color:var(--ekc-red)}

/* ---------- home: entry points (one row) ---------- */
.ekc-entries{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.ekc-entry{display:flex;align-items:center;gap:12px;min-width:0;padding:12px 14px;border-radius:12px;background:#fff;border:1px solid var(--ekc-line);color:var(--ekc-ink);text-decoration:none;transition:border-color .15s,box-shadow .15s}
.ekc-entry:hover{border-color:var(--ekc-gold);box-shadow:0 6px 16px -12px #5e0003}
.ekc-entry i{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:linear-gradient(180deg,#8a1414,var(--ekc-red2));color:#f2d48a}
.ekc-entry svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ekc-entry span{display:flex;flex-direction:column;min-width:0}
.ekc-entry b{font:700 14px/1.3 Tahoma,sans-serif;color:var(--ekc-red);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ekc-entry small{color:var(--ekc-mut);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- article groups and cards ---------- */
.ekc-group{margin-top:20px}
.ekc-group-h{display:flex;align-items:baseline;gap:12px;margin-bottom:10px;padding-bottom:6px;border-bottom:2px solid var(--ekc-line);position:relative}
.ekc-group-h::after{content:"";position:absolute;left:0;bottom:-2px;width:64px;height:2px;background:var(--ekc-red)}
.ekc-group-h h2{margin:0;min-width:0;flex:1;font:700 16px/1.3 Tahoma,sans-serif}
.ekc-group-h h2 a{color:var(--ekc-red);text-decoration:none}
.ekc-group-more{flex:none;font-size:12.5px;font-weight:700;color:var(--ekc-gold);text-decoration:none;white-space:nowrap}
.ekc-group-more:hover{color:var(--ekc-red)}
.ekc-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.ekc-cards-list{margin-top:16px}
.ekc-card{min-width:0}
.ekc-card-a{display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid var(--ekc-line);border-radius:12px;overflow:hidden;color:var(--ekc-ink);text-decoration:none;transition:border-color .15s,box-shadow .15s,transform .15s}
.ekc-card-a:hover{border-color:var(--ekc-gold);box-shadow:0 10px 22px -16px #5e0003;transform:translateY(-1px)}
.ekc-card-img{display:block;aspect-ratio:16/9;background:var(--ekc-parch2);overflow:hidden}
.ekc-card-img img{display:block;width:100%;height:100%;object-fit:cover}
.ekc-card.no-img .ekc-card-a{border-top:3px solid var(--ekc-gold)}
.ekc-card-b{display:flex;flex-direction:column;gap:5px;padding:10px 12px 12px;min-width:0}
.ekc-card-cat{font:700 10.5px/1.2 Tahoma,sans-serif;color:var(--ekc-gold);text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ekc-card-t{font:700 14px/1.35 Tahoma,sans-serif;color:var(--ekc-red);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ekc-card-x{font-size:12.5px;line-height:1.5;color:#5a4a3c;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.ekc-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}
.ekc-chips a{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;background:#fff;border:1px solid var(--ekc-line);color:var(--ekc-red);font-size:12.5px;font-weight:600;text-decoration:none}
.ekc-chips a:hover{border-color:var(--ekc-gold)}
.ekc-chips b{font-size:11px;color:var(--ekc-mut);font-weight:600}
.ekc-pager{display:flex;flex-wrap:wrap;gap:5px;justify-content:center;margin-top:16px}
.ekc-pager a,.ekc-pager b{min-width:32px;padding:6px 9px;border-radius:8px;text-align:center;border:1px solid var(--ekc-line);background:#fff;color:var(--ekc-red);text-decoration:none;font-size:13px}
.ekc-pager b{background:var(--ekc-red);border-color:var(--ekc-red);color:#fff}

/* ---------- calendar and widget views ---------- */
.ekc-cal{margin-top:16px}
.ekc-cal .ccal,.ekc-mod .ccal{--cc-accent:var(--ekc-red);--cc-title:var(--ekc-red);--cc-day-bg:var(--ekc-red);--cc-day-ring:var(--ekc-gold2);--cc-sel:var(--ekc-gold);--cc-line:var(--ekc-line);--cc-soft:#fbf4e6;--cc-seg-on:var(--ekc-red)}
.ekc-builder{display:block;width:100%;height:900px;min-height:600px;border:0;background:transparent;overflow:hidden}

/* ---------- rail modules ---------- */
:is(.alx-mod,.j10-mod)[data-mod-type^="eklesia_"]{border-color:var(--ekc-line);background:var(--ekc-parch)}
/* x2-modules.css heads use :is(html,#x2-mod) (id weight) + !important, so this needs the same weight */
:is(html,#ekc-x) body .ekc-page .alx-mod[data-mod-type^="eklesia_"]>h4{background:linear-gradient(180deg,#8a1414,var(--ekc-red2))!important;color:#fff!important;border-bottom:2px solid var(--ekc-gold)!important}
:is(html,#ekc-x) body .ekc-page .alx-mod[data-mod-type^="eklesia_"]>h4 :is(button,svg,a){color:#f2d48a!important}
.alx-mod[data-mod-type="eklesia_sections"]>.alx-mod-b{padding:6px 0}
.alx-mod:is([data-mod-type="eklesia_minical"],[data-mod-type="eklesia_today"])>.alx-mod-b{padding:8px}
.ekc-mod{min-width:0}
.ekc-mod .ekc-more{margin:8px 4px 0}
.ekc-secs ul{list-style:none;margin:0;padding:0}
.ekc-secs li{min-width:0}
.ekc-secs a{display:flex;align-items:center;gap:8px;min-width:0;padding:7px 14px;color:var(--ekc-ink);text-decoration:none;font-size:13px;line-height:1.3;border-left:3px solid transparent}
.ekc-secs a span{flex:1;min-width:0;overflow-wrap:anywhere}
.ekc-secs a b{flex:none;min-width:22px;padding:1px 6px;border-radius:999px;background:var(--ekc-parch2);color:var(--ekc-mut);font-size:11px;font-weight:600;text-align:center}
.ekc-secs a:hover{background:#fbf1de;color:var(--ekc-red)}
.ekc-secs .is-on>a{border-left-color:var(--ekc-red);background:#f8ead0;color:var(--ekc-red);font-weight:700}
.ekc-secs .ekc-l1>a{font-weight:600}
.ekc-secs ul ul a{padding-left:26px;font-size:12.5px}
.ekc-secs ul ul ul a{padding-left:38px}
.ekc-secs .ekc-sec-all>a{color:var(--ekc-red);font-weight:700}
.ekc-empty{padding:8px 14px;color:var(--ekc-mut);font-size:12.5px;list-style:none}
.ekc-minical .ccal-c{min-height:22px}
.ekc-minical .ccal-tip{display:none} /* the day detail is the hero (home) and the today module; the mini month only navigates */
.ekc-today .ccal-card{border-radius:10px}
.ekc-feast-list{list-style:none;margin:0;padding:0}
.ekc-feast-list li+li{border-top:1px dotted var(--ekc-line)}
.ekc-feast-list a{display:flex;align-items:center;gap:10px;min-width:0;padding:7px 2px;color:var(--ekc-ink);text-decoration:none}
.ekc-feast-list a:hover .ekc-ft{color:var(--ekc-red)}
.ekc-fd{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;width:40px;height:42px;border-radius:9px;background:#fff;border:1px solid var(--ekc-line);line-height:1}
.ekc-fd b{font:700 17px/1 Georgia,serif;color:var(--ekc-red)}
.ekc-fd small{font-size:10px;color:var(--ekc-mut);margin-top:2px}
.is-great .ekc-fd{background:var(--f,var(--ekc-red));border-color:transparent}
.is-great .ekc-fd b,.is-great .ekc-fd small{color:#fff}
.ekc-ft{flex:1;min-width:0;font-size:13px;line-height:1.3;font-weight:600;overflow-wrap:anywhere}
.ekc-ft i{font-style:normal;margin-right:5px}
.ekc-ft small{display:block;margin-top:2px;font-weight:400;font-size:11.5px;color:var(--ekc-mut)}
.ekc-getw{text-align:center}
.ekc-getw p{margin:8px 0 10px;font-size:12.5px;line-height:1.5;color:var(--ekc-ink)}
.ekc-getw-art{position:relative;height:64px;display:grid;place-items:center}
.ekc-getw-win{display:flex;gap:4px;padding:8px;width:120px;height:56px;box-sizing:border-box;border-radius:8px;background:#fff;border:1px solid var(--ekc-line);box-shadow:0 6px 14px -10px #5e0003}
.ekc-getw-win i{flex:1;border-radius:4px;background:var(--ekc-parch2)}
.ekc-getw-win i:first-child{background:var(--ekc-red)}
.ekc-getw-art b{position:absolute;right:calc(50% - 72px);bottom:0;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--ekc-gold);color:#fff;font-size:15px;box-shadow:0 0 0 2px var(--ekc-parch)}

/* ---------- collapsed left rail (standard despani-rail.css / .js): icons for the Ecclesia modules ----------
   Same form as the rules in despani-rail.css: an icon per type, single-stroke 24px SVG drawn through a mask. */
html [data-desp-rail-content] [data-mod-type="eklesia_sections"]{--drl-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%202.5v19M7%207.5h10M8.5%2021.5h7%22/%3E%3Cpath%20d%3D%22M5%2012h14%22/%3E%3C/svg%3E")}
html [data-desp-rail-content] [data-mod-type="eklesia_minical"]{--drl-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223.5%22%20y%3D%225%22%20width%3D%2217%22%20height%3D%2215.5%22%20rx%3D%222.5%22/%3E%3Cpath%20d%3D%22M3.5%2010h17M8%203v4M16%203v4%22/%3E%3Cpath%20d%3D%22M12%2012.5v5.5M10%2014.5h4%22/%3E%3C/svg%3E")}
html [data-desp-rail-content] [data-mod-type="eklesia_today"]{--drl-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%224%22%20width%3D%2216%22%20height%3D%2216%22%20rx%3D%223%22/%3E%3Cpath%20d%3D%22M12%207.5v9M9%2010h6%22/%3E%3C/svg%3E")}
html [data-desp-rail-content] [data-mod-type="eklesia_feasts"]{--drl-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203.5l2.4%205%205.4.7-4%203.8%201%205.4L12%2015.8l-4.8%202.6%201-5.4-4-3.8%205.4-.7z%22/%3E%3C/svg%3E")}
html [data-desp-rail-content] [data-mod-type="eklesia_widget"]{--drl-ico:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223.5%22%20y%3D%224%22%20width%3D%2217%22%20height%3D%2216%22%20rx%3D%222.5%22/%3E%3Cpath%20d%3D%22M3.5%208.5h17M9.5%2013l-2.5%202.5%202.5%202.5M14.5%2013l2.5%202.5-2.5%202.5%22/%3E%3C/svg%3E")}
@media(min-width:901px){
 html.desp-left-collapsed:not(.drl-drawer) body [data-desp-rail-content] [data-mod-type^="eklesia_"]>:first-child::first-letter{font-size:0}
 html.desp-left-collapsed:not(.drl-drawer) body [data-desp-rail-content] [data-mod-type^="eklesia_"]>:first-child::before{content:"";position:absolute;inset:0;margin:auto;width:18px;height:18px;background:var(--drl-cream);-webkit-mask:var(--drl-ico) center/contain no-repeat;mask:var(--drl-ico) center/contain no-repeat}
 html.desp-left-collapsed:not(.drl-drawer)[data-railv="2"] body [data-desp-rail-content] [data-mod-type^="eklesia_"]>:first-child::first-letter{font-size:inherit}
 html.desp-left-collapsed:not(.drl-drawer)[data-railv="2"] body [data-desp-rail-content] [data-mod-type^="eklesia_"]>:first-child::before{display:none!important}
}

/* ---------- prayers (?v=prayers): the prayer book list and one prayer ---------- */
.ekc-pr-jump{margin:0 0 6px}
.ekc-pr-group{margin-top:20px;scroll-margin-top:72px}
.ekc-pr-group .ekc-group-h h2{color:var(--ekc-red)}
.ekc-pr-group .ekc-group-more{color:var(--ekc-mut);font-weight:600}
html body .ekc-page ol.ekc-pr-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px}
.ekc-pr-list li{min-width:0;margin:0}
html body .ekc-page .ekc-pr-list a{display:flex;align-items:baseline;gap:10px;min-width:0;padding:8px 10px;border-radius:9px;background:#fff;border:1px solid var(--ekc-line);color:var(--ekc-ink);text-decoration:none;font-size:13.5px;line-height:1.45}
html body .ekc-page .ekc-pr-list a:hover{border-color:var(--ekc-gold);color:var(--ekc-red);box-shadow:0 6px 14px -12px #5e0003}
.ekc-pr-n{flex:none;min-width:1.7em;color:var(--ekc-gold);font:700 12px/1.45 Tahoma,sans-serif;text-align:right}
.ekc-pr-t{flex:1;min-width:0;overflow-wrap:anywhere}
.ekc-prayer{margin:0 auto;max-width:46em}
.ekc-prayer-h{text-align:center;padding:4px 0 14px;margin-bottom:16px;border-bottom:1px solid var(--ekc-line);position:relative}
html body .ekc-page a.ekc-prayer-grp{display:inline-block;margin-bottom:6px;color:var(--ekc-gold);font:700 12px/1.4 Tahoma,sans-serif;text-decoration:none;letter-spacing:.02em}
html body .ekc-page a.ekc-prayer-grp:hover{color:var(--ekc-red)}
html body .ekc-page .ekc-prayer-h h2{margin:0;color:var(--ekc-red);font:700 21px/1.45 "Noto Serif Georgian","Noto Sans Georgian",Tahoma,serif;overflow-wrap:anywhere}
.ekc-orn{display:block;margin-top:8px;color:var(--ekc-gold);font-size:18px;line-height:1}
html body .ekc-page .ekc-prayer-text{color:var(--ekc-ink);font:400 16.5px/1.85 "Noto Serif Georgian","Noto Sans Georgian",Georgia,serif;overflow-wrap:break-word;padding:0 2px}
html body .ekc-page .ekc-prayer-text p{margin:0 0 .95em}
html body .ekc-page .ekc-prayer-text h3{margin:1.5em 0 .6em;color:var(--ekc-red);font:700 17px/1.5 "Noto Serif Georgian","Noto Sans Georgian",Tahoma,serif;text-align:center}
html body .ekc-page .ekc-prayer-text strong,html body .ekc-page .ekc-prayer-text b{color:var(--ekc-red2)}
html body .ekc-page .ekc-prayer-text em,html body .ekc-page .ekc-prayer-text i{color:var(--ekc-mut)}
html body .ekc-page .ekc-prayer-text a{color:var(--ekc-red)}
html body .ekc-page .ekc-prayer-text img{max-width:100%;height:auto}
html body .ekc-page .ekc-prayer-text table{max-width:100%;display:block;overflow-x:auto}
html body .ekc-page .ekc-prayer-text>:first-child::first-letter{color:var(--ekc-red);font-size:1.9em;font-weight:700;line-height:1}

/* next prayer (EklesiaPrayers: hour / weekday cycles, else the section in book order): compact pill under the title, big button after the text */
html body .ekc-page a.ekc-nx-mini{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-width:0;margin-top:12px;padding:6px 8px 6px 14px;border-radius:999px;background:linear-gradient(180deg,#9b1c1c,var(--ekc-red));border:1px solid var(--ekc-red2);box-shadow:inset 0 1px 0 #ffffff2e,0 0 0 2px #d9b25f55;color:#fff;text-decoration:none;font:600 12.5px/1.35 Tahoma,"Noto Sans Georgian",sans-serif;box-sizing:border-box}
html body .ekc-page a.ekc-nx-mini span{flex:none;color:#f2d48a;font-weight:700}
html body .ekc-page a.ekc-nx-mini b{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-weight:600;padding:1px 0}
html body .ekc-page a.ekc-nx-mini i{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--ekc-gold2);color:var(--ekc-red2);font-style:normal;font-weight:700}
html body .ekc-page a.ekc-nx-mini:hover{background:var(--ekc-red2)}
.ekc-prayer-nav{margin-top:24px;padding-top:16px;border-top:1px solid var(--ekc-line)}
html body .ekc-page .ekc-set-end{margin:0 0 12px;padding:9px 14px;border-radius:10px;background:#fff4d6;border:1px solid #e8d49a;color:var(--ekc-ink);font-size:13px;line-height:1.55;text-align:center;overflow-wrap:anywhere}
html body .ekc-page .ekc-set-end .ekc-orn{display:inline;margin:0 4px 0 0;font-size:14px}
html body .ekc-page .ekc-set-end a{color:var(--ekc-red);font-weight:700}
html body .ekc-page a.ekc-nx{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:14px 18px 13px;border-radius:14px;background:linear-gradient(180deg,#9b1c1c,var(--ekc-red2));border:1px solid var(--ekc-red2);box-shadow:inset 0 0 0 2px #d9b25f,inset 0 0 0 3px #5e000333,0 12px 22px -16px #3d0808;color:#fff;text-decoration:none;text-align:center}
html body .ekc-page a.ekc-nx:hover{background:linear-gradient(180deg,#8a1414,#4a0002)}
html body .ekc-page a.ekc-nx small{color:#f2d48a;font:700 12.5px/1.3 Tahoma,"Noto Sans Georgian",sans-serif;letter-spacing:.03em}
html body .ekc-page a.ekc-nx small i{font-style:normal}
html body .ekc-page a.ekc-nx b{max-width:100%;color:#fff;font:700 17px/1.45 "Noto Serif Georgian","Noto Sans Georgian",Tahoma,serif;overflow-wrap:anywhere;padding-bottom:1px}
html body .ekc-page a.ekc-nx em{color:#f6e7cc;font:400 12px/1.4 Tahoma,"Noto Sans Georgian",sans-serif;font-style:normal;opacity:.9;overflow-wrap:anywhere}
.ekc-nav-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;margin-top:12px}
html body .ekc-page .ekc-nav-row a.is-prev{flex:1 1 14em;min-width:0;color:var(--ekc-mut);font-size:12.5px;line-height:1.45;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:1px 0}
html body .ekc-page .ekc-nav-row a.is-prev span{color:var(--ekc-red)}
html body .ekc-page .ekc-nav-row a.is-prev:hover span{text-decoration:underline}
html body .ekc-page .ekc-nav-row a.is-grp{flex:0 1 auto;min-width:0;color:var(--ekc-mut);font-size:12.5px;line-height:1.45;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:1px 0}
html body .ekc-page .ekc-nav-row a.is-grp span{color:var(--ekc-red)}
html body .ekc-page .ekc-nav-row a.is-all{flex:none;margin-left:auto;padding:6px 14px;border-radius:999px;background:#fff;border:1px solid var(--ekc-line);color:var(--ekc-red);font:700 12px/1.3 Tahoma,sans-serif;text-decoration:none;white-space:nowrap}
html body .ekc-page .ekc-nav-row a.is-all:hover{border-color:var(--ekc-gold)}
/* "ახლა" / "დღეს": the hour prayer for the visitor's clock, today's weekday prayer (filled by despani-eklesia.js) */
html body .ekc-page .ekc-now{display:flex;flex-direction:column;gap:6px;margin:0 0 14px}
html body .ekc-page .ekc-now[hidden],html body .ekc-page .ekc-now [hidden]{display:none!important}
html body .ekc-page .ekc-now-row{display:flex;align-items:center;gap:10px;min-width:0;margin:0;padding:7px 8px 7px 7px;border-radius:12px;background:#fff;border:1px solid #e8d49a;box-shadow:inset 3px 0 0 var(--ekc-gold)}
.ekc-now-k{flex:none;padding:3px 10px;border-radius:999px;background:var(--ekc-red);color:#fff;font:700 11.5px/1.4 Tahoma,"Noto Sans Georgian",sans-serif}
html body .ekc-page .ekc-now-row a{flex:1;min-width:0;color:var(--ekc-ink);text-decoration:none;font-size:13.5px;line-height:1.45;overflow-wrap:anywhere}
html body .ekc-page .ekc-now-row a b{color:var(--ekc-red);margin-right:4px}
html body .ekc-page .ekc-now-row a:hover{color:var(--ekc-red)}
html body .ekc-page .ekc-now-row .is-here{color:var(--ekc-mut)}
/* prayers list: hour / weekday labels, the current one highlighted */
.ekc-pr-hours .ekc-pr-n,.ekc-pr-week .ekc-pr-n{min-width:3.1em;text-align:left}
html body .ekc-page .ekc-pr-list a.is-now{border-color:var(--ekc-gold);background:#fff8e6;box-shadow:inset 3px 0 0 var(--ekc-red)}
html body .ekc-page .ekc-pr-list a.is-now::after{content:attr(data-now);flex:none;align-self:center;padding:2px 8px;border-radius:999px;background:var(--ekc-red);color:#fff;font:700 10.5px/1.4 Tahoma,"Noto Sans Georgian",sans-serif}

/* ---------- narrow ---------- */
/* the centre column is narrow next to both rails (about 350px at 1280): size by the stage, not the window */
@container ekc (max-width:820px){.ekc-entries{grid-template-columns:repeat(2,minmax(0,1fr))}.ekc-entry:last-child:nth-child(odd){grid-column:1/-1}}
@container ekc (max-width:600px){
 .ekc-body{padding:12px}
 .ekc-hero-in{grid-template-columns:1fr;gap:12px;padding:12px}
 .ekc-hero-date{flex-direction:row;align-items:baseline;gap:8px;justify-content:flex-start;padding:10px 14px}
 .ekc-hero-date b{font-size:30px}
 .ekc-hero-saints{columns:1}
 .ekc-entries{grid-template-columns:1fr}
 html body .ekc-page ol.ekc-pr-list{grid-template-columns:1fr}
 html body .ekc-page .ekc-prayer-text{font-size:16px;line-height:1.8}
 html body .ekc-page a.ekc-nx b{font-size:16px}
 .ekc-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}
@container ekc (max-width:420px){html body .ekc-page .ekc-tabs{padding:0 4px;gap:0}html body .ekc-page .ekc-tabs a{flex:1 1 auto;text-align:center;padding:8px 6px;font-size:12px}}
@container ekc (max-width:340px){.ekc-cards{grid-template-columns:1fr}}
@media (max-width:640px){html body .ekc-page .ekc-stage-h{padding:10px 12px}}
