/* Synaxár. One look in two modes (Martin, 15 Nov 2026: "páči sa mi athon a paralelne... tmavý i
   svetlý mód, by default podľa systému"): dark in the style of the Athon app, light as clean as
   Paralelne; Aa sets the type size and the mode. Every text colour is 4.5:1 or more on the surface
   it lands on, in both modes. */

:root {
  --bg: #fcfbf8; --surface: #ffffff; --ink: #1c1812; --muted: #5d5447; --accent: #7f5d12; --on-accent: #fffaf0;
  --line: #e7e0d2; --hover: rgb(127 93 18 / 0.08); --tint: rgb(127 93 18 / 0.13); --panel: #f4efe5;
  --card: #f6efe2; --card-ink: #231b12; --frame: rgb(127 93 18 / 0.32); --note: #f1f3f6; --note-frame: #d9dee6;
  --bar: #fcfbf8; --lit: #f3e6c4; --ru-ink: #3d3a35; --glow: none;
  --eng-filter: none; --eng-blend: multiply; --thumb-bg: #fff;
  --thumb-ring: 0 0 0 1px var(--accent), 0 0 0 4px var(--bg), 0 0 0 5px var(--frame);
  --title-font: "Cinzel", Georgia, serif; --text-font: "Spectral", Georgia, serif; --sign-red: #b3261e;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0a07; --surface: #15110b; --ink: #eee5d0; --muted: #b3a68b; --accent: #e3c071; --on-accent: #1b1407;
    --line: rgb(227 192 113 / 0.16); --hover: rgb(227 192 113 / 0.1); --tint: rgb(227 192 113 / 0.12); --panel: #211b12;
    --card: #33111a; --card-ink: #f3e9d6; --frame: rgb(227 192 113 / 0.4); --note: #19150e; --note-frame: rgb(227 192 113 / 0.3);
    --bar: #0c0a07; --lit: rgb(227 192 113 / 0.16); --ru-ink: #cfc4ad;
    --glow: radial-gradient(ellipse 100% 38rem at 50% -6rem, #33220f 0%, rgb(51 34 15 / 0.45) 40%, transparent 72%);
    /* the gold filter inverts the ring too: white comes out black, blue comes out gold */
    --eng-filter: invert(1) sepia(1) saturate(1.7) hue-rotate(-10deg) brightness(0.93) contrast(1.15); --eng-blend: lighten; --thumb-bg: #fff;
    --thumb-ring: 0 0 0 1px #1c3f8e, 0 0 0 4px #fff, 0 0 0 5px rgb(28 63 142 / 0.55); --sign-red: #f0897c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0a07; --surface: #15110b; --ink: #eee5d0; --muted: #b3a68b; --accent: #e3c071; --on-accent: #1b1407;
  --line: rgb(227 192 113 / 0.16); --hover: rgb(227 192 113 / 0.1); --tint: rgb(227 192 113 / 0.12); --panel: #211b12;
  --card: #33111a; --card-ink: #f3e9d6; --frame: rgb(227 192 113 / 0.4); --note: #19150e; --note-frame: rgb(227 192 113 / 0.3);
  --bar: #0c0a07; --lit: rgb(227 192 113 / 0.16); --ru-ink: #cfc4ad;
  --glow: radial-gradient(ellipse 100% 38rem at 50% -6rem, #33220f 0%, rgb(51 34 15 / 0.45) 40%, transparent 72%);
  --eng-filter: invert(1) sepia(1) saturate(1.7) hue-rotate(-10deg) brightness(0.93) contrast(1.15); --eng-blend: lighten; --thumb-bg: #fff;
  --thumb-ring: 0 0 0 1px #1c3f8e, 0 0 0 4px #fff, 0 0 0 5px rgb(28 63 142 / 0.55); --sign-red: #f0897c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: calc(100% * var(--scale, 1)); }
body { margin: 0; background: var(--bg) var(--glow) no-repeat; color: var(--ink); font-family: var(--text-font); font-size: 1.125rem; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2 { font-family: var(--title-font); font-weight: 500; letter-spacing: 0.03em; line-height: 1.25; margin: 0; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.brand { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; text-decoration: none; font-family: var(--title-font); font-weight: 500; letter-spacing: 0.1em; color: var(--accent); }
.cross { width: 0.75em; height: 1.25em; color: var(--accent); }
.settings { position: relative; margin-left: auto; }
.settings-who { margin: 0; padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.settings-who b { font-weight: 500; color: var(--ink); }
.settings-who a { color: var(--accent); }
.settings summary { list-style: none; min-width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-family: var(--text-font); font-size: 1.1rem; font-weight: 500; color: var(--accent); }
.settings summary::-webkit-details-marker { display: none; }
.settings[open] summary { background: var(--tint); }
.settings-panel { position: absolute; right: 0; top: calc(100% + 0.5rem); width: min(18.5rem, calc(100vw - 2rem)); padding: 1rem; border: 1px solid var(--frame); border-radius: 16px; background: var(--surface); box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.45); font-size: 1rem; line-height: 1.4; }
.settings-label { margin: 0 0 0.45rem; font-family: var(--title-font); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; color: var(--accent); }
.settings-label + .seg { margin-bottom: 1rem; }
.seg { display: flex; align-items: stretch; gap: 0.25rem; padding: 0.25rem; border-radius: 12px; background: var(--panel); }
.seg button, .seg output, .seg a { flex: 1; min-height: 2.75rem; display: grid; place-items: center; padding: 0 0.5rem; border: 0; border-radius: 9px; background: none; text-align: center; font-size: 0.92rem; }
.seg button { cursor: pointer; }
.seg a { color: inherit; text-decoration: none; }
.seg button:hover, .seg a:hover { background: var(--hover); }
.seg button[aria-pressed="true"], .seg a[aria-current] { background: var(--accent); color: var(--on-accent); }
.seg output { color: var(--muted); }

/* ---------- the month ---------- */
.site { text-align: center; padding: 2.5rem 1.25rem 1rem; }
.brand.big { font-size: 2.2rem; }
.tagline { margin: 0.6rem auto 0; max-width: 34rem; color: var(--muted); font-size: 0.95rem; text-wrap: balance; }
.month { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem 4rem; }
.month-head { text-align: center; margin: 1rem 0 1.5rem; }
.month-head h1 { font-size: clamp(2.2rem, 7vw, 3rem); letter-spacing: 0.08em; }
.month-head h1::after, .life-head h1::after { content: ""; display: block; width: 3.5rem; height: 1px; margin: 0.9rem auto 0; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.month-head p { color: var(--muted); font-size: 0.95rem; margin-top: 0.35rem; }
/* the day numbers stick under the floating buttons and follow the days (Martin, 27 Nov 2026: "propoj
   ty dva skrolingy a čísla daj sticky"); timeline.js lights the day being read */
.strip-bar { position: sticky; top: calc(max(0.6rem, env(safe-area-inset-top)) + 3.35rem); z-index: 15; display: flex; align-items: center; margin: 0 -1.25rem 1rem; padding: 0.35rem 0; background: var(--bg); box-shadow: 0 1px 0 var(--line), 0 10px 18px -16px rgb(0 0 0 / 0.5); }
/* stuck under the buttons, the numbers and the buttons are one band: nothing of the page shows
   between them (timeline.js sets .strip-stuck; Martin, 28 Nov 2026: "vyzerá rozbitá") */
.strip-stuck .float::before { height: calc(max(0.6rem, env(safe-area-inset-top)) + 3.35rem + 1px); background: var(--bg); opacity: 1; }
/* in the middle of the buttons: the month being read and, under it, the calendar it is counted by;
   a tap turns it over */
.float-month { margin-left: auto; min-width: 0; min-height: 2.75rem; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem; padding: 0 0.9rem; border: 0; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 8px 22px -12px rgb(0 0 0 / 0.45); font: inherit; line-height: 1.1; cursor: pointer; transition: opacity 0.2s, visibility 0.2s; }
/* at the top of the page the month's title and its switch are in sight already: the pill comes once
   the page is scrolled */
:root:not(.scrolled) .float-month { opacity: 0; visibility: hidden; }
/* round buttons keep their shape; on the narrowest phones (320 px) the pill and Dnes draw in a little */
.float > * { flex: none; }
.float-month { margin-right: 0.5rem; }
.strip-month { font-family: var(--title-font); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.strip-cal { color: var(--muted); font-size: 0.7rem; white-space: nowrap; }
.strip-copy { display: contents; }
/* the short name of a month where its days begin, in the strip of the whole year */
.strip-mon { flex: none; align-self: center; padding: 0 0.15rem 0 0.35rem; font-family: var(--title-font); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.cal-switch { margin: 0.2rem 0 0.9rem; }
/* the numbers run the full width and fade out softly at both edges */
/* the search at the left of the numbers (public/search.js; Martin, 28 Nov 2026: "Chyba vyhľadávanie") */
.strip-search { flex: none; width: 2.75rem; height: 2.75rem; margin-left: 1rem; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--accent); cursor: pointer; }
.strip-search svg, .float-search svg { width: 1.25rem; height: 1.25rem; }
.strip { position: relative; flex: 1; min-width: 0; display: flex; gap: 0.3rem; overflow-x: auto; scrollbar-width: none; padding: 0.3rem 1.25rem 0.3rem 0.7rem; margin: 0; scroll-padding-inline: 2rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.1rem, #000 calc(100% - 1.1rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 1.1rem, #000 calc(100% - 1.1rem), transparent); }
.strip::-webkit-scrollbar { display: none; }
.strip a { flex: none; min-width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 0.95rem; }
.strip a.is-today { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.strip a { transition: border-color 160ms ease, color 160ms ease, transform 160ms ease; }
.strip a.is-active { border-color: var(--accent); color: var(--accent); font-weight: 600; transform: scale(1.08); box-shadow: inset 0 0 0 1px var(--accent); }
.strip a.is-today.is-active { color: var(--on-accent); }
/* where one month meets the next in the timeline */
.month-divider { margin: 2.25rem 0 0.25rem; padding-top: 1.75rem; border-top: 1px solid var(--frame); font-size: clamp(1.9rem, 7vw, 2.6rem); letter-spacing: 0.08em; text-align: center; scroll-margin-top: 8rem; }
.month-divider::after { content: ""; display: block; width: 3.5rem; height: 1px; margin: 0.8rem auto 0; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.today { margin: 0 0 1.75rem; padding: 1.1rem 1.1rem 0.4rem; border: 1px solid var(--frame); border-radius: 18px; background: var(--surface); text-align: center; }
.today h2 { font-size: 0.85rem; letter-spacing: 0.24em; color: var(--accent); }
.today .saint { text-align: left; }
.day { padding: 1.4rem 0; border-top: 1px solid var(--line); scroll-margin-top: calc(max(0.6rem, env(safe-area-inset-top)) + 7.4rem); }
.day-date { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.15rem 0.5rem; margin-bottom: 0.75rem; }
.day-num { font-size: 2.2rem; line-height: 1; color: var(--accent); }
.day-month { font-size: 1rem; letter-spacing: 0.06em; }
.day-old { width: 100%; font-family: var(--text-font); font-size: 0.8rem; letter-spacing: 0; color: var(--muted); }
.day.is-today .day-num::after { content: "dnes"; margin-left: 0.5rem; padding: 0.1rem 0.5rem; border-radius: 999px; font-family: var(--text-font); font-size: 0.75rem; letter-spacing: 0; vertical-align: middle; background: var(--accent); color: var(--on-accent); }
.saints { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.saint { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: center; padding: 0.7rem; margin: 0 -0.7rem; border-radius: 12px; text-decoration: none; transition: background-color 140ms ease; }
.saint:hover { background: var(--hover); }
.thumb { width: 3.4rem; height: 3.4rem; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--thumb-bg); box-shadow: var(--thumb-ring); filter: var(--eng-filter); }
.thumb.none { display: grid; place-items: center; filter: none; color: var(--accent); background: var(--panel); box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--bg), 0 0 0 5px var(--frame); }
.thumb.none .cross { width: 1rem; height: 1.6rem; color: inherit; }
.saint-text { display: flex; flex-direction: column; min-width: 0; }
.saint-name { font-size: 1.15rem; font-weight: 500; line-height: 1.3; }
.saint-title { font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
/* the notice the day of the feast or the evening before (Martin, 28 Nov 2026: "na večer pred tým") */
.notice-when { margin: 0.4rem 0 0.5rem; }
/* the saint's own words, two lines at most (Martin, 28 Nov 2026: "Aj v zozname") */
.saint-quote { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 0.3rem; font-size: 0.9rem; font-style: italic; line-height: 1.45; color: var(--ink); opacity: 0.85; }
/* the sign of the Typikon before the name (Martin, 28 Nov 2026: "naše liturgické značky") */
.sign { display: inline-block; width: 0.95em; height: 0.95em; margin-right: 0.4em; vertical-align: -0.1em; color: var(--sign-red); }
.sign svg { display: block; width: 100%; height: 100%; }
.sign-5 { color: var(--ink); }
/* how long a life takes to read, soft (Martin, 27 Nov 2026: "na kolik minut tam je text nějak jemně ale hezky") */
.saint-min { align-self: flex-start; margin-top: 0.3rem; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 0.74rem; line-height: 1.5; letter-spacing: 0.02em; }
.saint-min::before, .life-min::before { content: ""; display: inline-block; width: 0.7em; height: 0.7em; margin-right: 0.3em; border: 1.5px solid currentColor; border-radius: 50%; vertical-align: -0.02em; opacity: 0.8; }
.life-min { margin-left: 0.35rem; white-space: nowrap; }
.site-foot, .life-foot { color: var(--muted); font-size: 0.82rem; line-height: 1.6; text-align: center; padding: 2rem 1.25rem 4rem; max-width: 40rem; margin: 0 auto; }
.life-foot { padding: 2.5rem 0 1rem; }

/* ---------- a life ---------- */
.life { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem 3rem; }
.life-icon { display: flex; justify-content: center; margin: 1.75rem 0 1rem; }
.icon { margin: 0; text-align: center; }
.icon img { max-height: 19rem; width: auto; margin: 0 auto; mix-blend-mode: var(--eng-blend); filter: var(--eng-filter); -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 45%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 45%, #000 60%, transparent 100%); }
.icon figcaption { margin-top: 0.4rem; font-size: 0.75rem; }
.icon figcaption a { color: var(--muted); }
.icon.none { color: var(--accent); }
.icon.none .cross { width: 2.2rem; height: 3.6rem; color: inherit; }
.life-head { text-align: center; margin-bottom: 2rem; }
.life-day { font-family: var(--title-font); font-size: 0.85rem; letter-spacing: 0.16em; color: var(--accent); }
.life-day span { font-family: var(--text-font); letter-spacing: 0; color: var(--muted); }
.life-head h1 { margin-top: 0.5rem; font-size: clamp(1.55rem, 5.2vw, 2.25rem); line-height: 1.3; overflow-wrap: break-word; }
.life-ru { margin-top: 0.7rem; font-style: italic; color: var(--muted); font-size: 0.95rem; }
.hint { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }
.cols, .ru-col, .month-nav, .cal, .keys { display: none; }

/* a sentence opens its original in a card right under it, as a verse does on biblia.sk */
.passage + .passage, .passage p + p { margin-top: 0.9em; }
.u { cursor: pointer; border-radius: 4px; transition: background-color 140ms ease; -webkit-tap-highlight-color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.u:hover { background: var(--hover); }
.u.open { background: var(--tint); text-decoration: underline dotted var(--accent) 1.5px; text-underline-offset: 0.28em; }
.orig { display: none; }
.u.open + .orig, .note-card { display: block; margin: 0.45rem 0 0.75rem; padding: 0.8rem 1.05rem 0.9rem; border-radius: 14px; font-size: 0.94em; line-height: 1.65; text-align: left; text-decoration: none; animation: unfold 220ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.u.open + .orig { background: var(--card); color: var(--card-ink); box-shadow: inset 0 0 0 1px var(--frame); cursor: pointer; }
.note-card { background: var(--note); color: var(--ink); box-shadow: inset 0 0 0 1px var(--note-frame); }
.note-p { display: block; }
.note-p + .note-p { margin-top: 0.6em; }
.orig-label { display: block; margin-bottom: 0.25rem; font-family: var(--title-font); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; color: var(--accent); }
@keyframes unfold { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .u.open + .orig, .note-card { animation: none; } }
.mark { padding: 0 0.12em; font-size: 0.66em; font-weight: 700; line-height: 0; vertical-align: super; color: var(--accent); text-decoration: none; }
.num { display: none; }
.heading { margin-top: 1.8rem; text-align: center; }
.heading p { font-family: var(--title-font); font-size: 1.1rem; letter-spacing: 0.08em; line-height: 1.4; color: var(--accent); }
.text > .passage:first-child > p:first-of-type::first-letter, .text > .passage:first-child > .sk-col > p:first-of-type::first-letter { float: left; padding: 0.06em 0.1em 0 0; font-family: var(--title-font); font-size: 3.4em; line-height: 0.82; color: var(--accent); }

/* the notes wait folded at the end; each opens where its number is tapped */
.notes { margin-top: 3rem; border-top: 1px solid var(--line); font-size: 0.93rem; line-height: 1.6; }
.notes summary { padding: 1rem 0; cursor: pointer; font-family: var(--title-font); font-size: 0.85rem; letter-spacing: 0.18em; color: var(--accent); }
.notes summary span { margin-left: 0.35rem; font-family: var(--text-font); letter-spacing: 0; color: var(--muted); }
.note { scroll-margin-top: 4rem; }
.note .num { display: inline; float: left; margin: 0.15em 0.5rem 0 0; font-size: 0.75rem; font-weight: 700; color: var(--accent); }
.note:target { background: var(--card); border-radius: 8px; box-shadow: 0 0 0 0.4rem var(--card); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pager a { display: block; min-height: 2.75rem; padding: 0.3rem 0; text-decoration: none; font-size: 1.05rem; font-weight: 500; line-height: 1.3; }
.pager a span { display: block; font-family: var(--title-font); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--muted); }
.pager a[rel="next"] { text-align: right; }

/* ---------- on a computer (Martin, 15 Nov 2026: "urob aj desktop friendly verziu") ----------
   a side column that stays (the month's calendar; at a life its engraving and every saint of the
   month), the text from the top of the page, the Russian beside each paragraph as in Paralelne */
@media (min-width: 1100px) {
  .month { max-width: 78rem; display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: 4rem; align-items: start; padding-top: 2rem; }
  .month-side { position: sticky; top: 5rem; max-height: calc(100vh - 6rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 0.25rem; }
  .month-side .site { text-align: left; padding: 0 0 0.5rem; }
  .month-side .brand.big { font-size: 1.9rem; }
  .month-side .tagline { margin-left: 0; font-size: 0.9rem; }
  .month-head { text-align: left; margin: 1.25rem 0 1.25rem; }
  .month-head h1 { font-size: 2.4rem; }
  .month-head h1::after { margin-left: 0; }
  .cal { display: block; padding: 1rem 1rem 0.8rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
  .cal-title { margin-bottom: 0.6rem; font-family: var(--title-font); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; color: var(--accent); }
  .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.2rem; text-align: center; line-height: 1; }
  .cal-grid b { padding-bottom: 0.35rem; font-size: 0.7rem; font-weight: 600; color: var(--muted); }
  .cal-grid a, .cal-grid .empty { aspect-ratio: 1; display: grid; place-items: center; border-radius: 999px; font-size: 0.92rem; text-decoration: none; }
  .cal-grid .empty { color: var(--muted); opacity: 0.5; }
  .cal-grid a:hover { background: var(--hover); }
  .cal-grid a.is-today { background: var(--accent); color: var(--on-accent); }
  .month-side .today { margin: 1.25rem 0 0; text-align: left; }
  .month-side .today .saint { padding: 0.5rem; margin: 0 -0.5rem; }
  .strip-bar, .strip, .float-month { display: none; }
  .cal-grid a.is-active { box-shadow: inset 0 0 0 1.5px var(--accent); }
  .month-main .day { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.5rem; padding: 1.6rem 0; scroll-margin-top: 5rem; }
  .month-main .day:first-of-type { border-top: 0; padding-top: 0.25rem; }
  .month-main .day-date { position: sticky; top: 5rem; align-self: start; flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .month-main .day-num { font-size: 2.8rem; }
  .month-main .saints { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.75rem; }
  .month-main .saint { margin: 0; padding: 0.6rem; align-items: start; }
  .month-main .thumb { width: 4rem; height: 4rem; }
  .site-foot { max-width: 52rem; }

  .life { max-width: 92rem; display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 4rem; align-items: start; padding-top: 2rem; }
  .life-side { position: sticky; top: 5rem; max-height: calc(100vh - 6rem); display: flex; flex-direction: column; }
  .life-side .life-icon { margin: 0 0 1rem; }
  .life-side .icon img { max-height: 15rem; }
  .month-nav { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .month-nav-title { position: sticky; top: 0; z-index: 1; margin: 0; padding: 0.6rem 0.5rem 0.5rem; border-bottom: 1px solid var(--line); background: var(--bg); font-family: var(--title-font); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; color: var(--accent); }
  .month-nav ol { list-style: none; margin: 0; padding: 0 0 1rem; }
  .mn-group { display: grid; grid-template-columns: 2.1rem 1fr; align-items: start; padding: 0.35rem 0; border-top: 1px solid var(--line); }
  .mn-group:first-child { border-top: 0; }
  .mn-group .mn-day { padding: 0.35rem 0 0 0.5rem; font-size: 0.9rem; line-height: 1.35; }
  .month-nav ul { list-style: none; margin: 0; padding: 0; }
  .month-nav a { display: block; padding: 0.35rem 0.5rem; border-radius: 8px; font-size: 0.9rem; line-height: 1.35; color: var(--muted); text-decoration: none; }
  .month-nav a:hover { background: var(--hover); color: var(--ink); }
  .month-nav a[aria-current="page"] { background: var(--tint); color: var(--ink); font-weight: 500; }
  .mn-day { color: var(--accent); font-variant-numeric: tabular-nums; }
  .life-main { min-width: 0; }
  .life-head { text-align: left; margin: 0 0 2.25rem; }
  .life-head h1 { font-size: clamp(1.9rem, 2.6vw, 2.6rem); }
  .life-head h1::after { margin-left: 0; }
  .hint { display: none; }
  .keys { display: block; margin-top: 1rem; font-size: 0.8rem; color: var(--muted); }
  .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; padding-bottom: 0.5rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); font-family: var(--title-font); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); }
  .text .passage { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .ru-col { display: block; color: var(--ru-ink); font-size: 0.97em; }
  .ru-col p + p { margin-top: 0.9em; }
  .text .u { cursor: default; }
  .text .u.open { background: none; text-decoration: none; }
  .text .u.open + .orig { display: none; }
  .r { border-radius: 4px; transition: background-color 140ms ease; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .text .lit { background: var(--lit); }
  .notes, .life-foot, .pager, .keys { max-width: 46rem; }
  .life-foot { margin-inline: 0; text-align: left; }
}

/* ---------- the controls float over the page (Martin, 15 Nov 2026: "nech to floating") ---------- */
.float { position: fixed; top: max(0.6rem, env(safe-area-inset-top)); left: 0.6rem; right: 0.6rem; z-index: 20; display: flex; align-items: flex-start; pointer-events: none; }
.float > * { pointer-events: auto; }
/* scrolled: a calm band behind the buttons, the page fading out only just under them, so no text
   shows half-faded between the buttons (app.js sets .scrolled; Martin, 28 Nov 2026: "Vyrieš hlavičku
   vyzerá rozbitá dost") */
.float::before { content: ""; position: fixed; top: 0; left: 0; right: 0; z-index: -1; height: calc(max(0.6rem, env(safe-area-inset-top)) + 3.95rem); background: linear-gradient(var(--bg) calc(100% - 0.6rem), transparent); opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.scrolled .float::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .float::before, .float-month { transition: none; } }
.float .settings { margin-left: auto; }
.float .float-today { margin-left: auto; margin-right: 0.5rem; }
.float .float-today:not([hidden]) + .settings { margin-left: 0; }
.float .settings summary, .float-back, .float-today { background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 8px 22px -12px rgb(0 0 0 / 0.45); }
.float-today { min-height: 2.75rem; display: inline-flex; align-items: center; padding: 0 1rem; border-radius: 999px; color: var(--accent); font-size: 0.95rem; text-decoration: none; }
.float-today[hidden] { display: none; }
.float-back { min-height: 2.75rem; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0 1rem 0 0.85rem; border-radius: 999px; color: var(--accent); font-size: 0.95rem; text-decoration: none; }
.settings-signin { display: block; margin-bottom: 0.75rem; padding: 0.7rem; border-radius: 10px; background: var(--panel); color: var(--accent); text-align: center; text-decoration: none; font-size: 0.92rem; }
/* on a phone the title starts under the floating buttons */
.site { padding-top: 3.75rem; }
.life-icon { margin-top: 3.75rem; }
@media (min-width: 1100px) { .site { padding-top: 1.25rem; } .life, .month { padding-top: 3.75rem; } .life-side .life-icon { margin-top: 0; } .life-side, .month-side, .month-main .day-date { top: 4.5rem; } }

/* ---------- old and new calendar (Aa > Kalendár; Martin, 15 Nov 2026) ---------- */
.os { display: none; }
:root[data-cal="old"] .ns { display: none; }
:root[data-cal="old"] .os { display: inline; }
.cal-grid.os, :root[data-cal="old"] .cal-grid.ns { display: none; }
:root[data-cal="old"] .cal-grid.os { display: grid; }

/* ---------- a word for the mission (Martin, 15 Nov 2026: "CTA support orthodox missionaries") ---------- */
.support { margin: 2.5rem 0; padding: 1.4rem 1.25rem 1.5rem; border: 1px solid var(--frame); border-radius: 16px; background: var(--panel); text-align: center; }
.support-kicker { margin: 0 0 0.4rem; font-family: var(--title-font); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; color: var(--accent); }
.support h2 { margin: 0 0 0.6rem; font-family: var(--title-font); font-size: 1.15rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.support p { margin: 0 0 1.1rem; font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.support-cta { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.4rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.support-cta:hover { opacity: 0.9; }
/* it closes every page (Martin, 27 Nov 2026: "Sbierku daj až úplně dole vždy") */
.page-end { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem 3rem; }
.page-end .support, .life-foot + .support { margin: 0 0 1rem; }

/* ---------- the banner of today's saint over the page that holds today (Martin, 27 Nov 2026: "Na
   HomePage daj pěkný banner a ikonu toho kto má dnes sviatok ako Orthox ale viac cool a modern"):
   a dark gold card in either light, the icon standing beside the words, its colours glowing behind ---------- */
.hero { --hero-ink: #fbf3e2; --hero-soft: #dccbab; --hero-gold: #e8c776; position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: end; width: min(100% - 2.5rem, 43.5rem); margin: 4.25rem auto 0; padding: 1.35rem 1.25rem 1.3rem 1.35rem; border-radius: 26px; background: radial-gradient(120% 90% at 85% 10%, #4a2a0c 0%, transparent 60%), linear-gradient(150deg, #24130a 0%, #110b06 55%, #1c1308 100%); color: var(--hero-ink); box-shadow: 0 0 0 1px rgb(232 199 118 / 0.28), 0 24px 50px -24px rgb(40 20 0 / 0.75); animation: hero-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.hero[hidden] { display: none; }
.day .hero { width: auto; margin: 0.35rem 0 0.25rem; }
.day.has-hero > .saints { display: none; }
/* the day's heading already says it is today and which day */
.day .hero-kicker { display: none; }
.hero::before { content: ""; position: absolute; inset: -30%; z-index: -1; background: var(--hero-picture, none) 70% 20% / cover no-repeat; filter: blur(38px) saturate(1.5); opacity: 0.42; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(14 9 5 / 0.92) 0%, rgb(14 9 5 / 0.55) 60%, rgb(14 9 5 / 0.15) 100%); }
.hero-body { min-width: 0; align-self: center; }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 0.85rem; font-size: 0.92rem; line-height: 1.3; color: var(--hero-soft); }
.hero-kicker span:last-child::first-letter { text-transform: uppercase; }
.hero-chip { padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--hero-gold); color: #1b1407; font-family: var(--title-font); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.hero-feast { margin: 0; font-family: var(--title-font); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--hero-gold); }
.hero-name { margin: 0.2rem 0 0.4rem; font-size: clamp(1.45rem, 6vw, 2.35rem); font-weight: 600; line-height: 1.15; letter-spacing: 0.02em; }
.hero-name a { color: var(--hero-ink); text-decoration: none; }
.hero-title { margin: 0 0 1.1rem; font-size: 0.98rem; line-height: 1.45; color: var(--hero-soft); }
.hero .sign { width: 0.62em; height: 0.62em; margin-right: 0.3em; vertical-align: 0.05em; color: #ff9e91; }
.hero .sign-5 { color: var(--hero-ink); }
.hero-quote { margin: -0.35rem 0 1.2rem; padding: 0.15rem 0 0.15rem 0.95rem; border-left: 2px solid var(--hero-gold); }
.hero-quote p { margin: 0; font-size: 1.04rem; font-style: italic; line-height: 1.55; color: var(--hero-ink); }
.hero-quote footer { margin-top: 0.45rem; font-size: 0.8rem; letter-spacing: 0.05em; color: var(--hero-gold); }
.hero-cta { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; padding: 0 1.25rem; border-radius: 999px; background: var(--hero-gold); color: #1b1407; font-weight: 600; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease; }
.hero-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgb(232 199 118 / 0.8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
/* ▶ Počúvať in the banner (Martin, 27 Nov 2026: "Play v hero banneru") */
.hero-play { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.15rem 0 0.95rem; border: 1px solid rgb(232 199 118 / 0.55); border-radius: 999px; background: rgb(255 248 230 / 0.06); color: var(--hero-ink); font: inherit; font-size: 1rem; cursor: pointer; transition: background-color 160ms ease; }
.hero-play:hover, .hero-play.on { background: rgb(232 199 118 / 0.16); }
.hero-play[hidden] { display: none; }
.hero-play-icon { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--hero-gold); color: #1b1407; font-size: 0.7rem; }
.hero-icon { display: block; width: clamp(6.5rem, 30vw, 9.5rem); align-self: center; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px rgb(232 199 118 / 0.55), 0 18px 36px -16px rgb(0 0 0 / 0.9); }
.hero-icon img { display: block; width: 100%; aspect-ratio: 5 / 7; object-fit: cover; object-position: 50% 4%; }
.hero.no-icon { grid-template-columns: 1fr; }
.hero.no-icon .hero-icon { display: none; }
.hero-more { grid-column: 1 / -1; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.1rem 0 0; padding: 0.9rem 0 0; border-top: 1px solid rgb(232 199 118 / 0.2); }
.hero-more:empty { display: none; }
.hero-more a { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 2.75rem; padding: 0.2rem 0.85rem 0.2rem 0.2rem; border-radius: 999px; background: rgb(255 248 230 / 0.08); color: var(--hero-ink); font-size: 0.9rem; line-height: 1.25; text-decoration: none; }
.hero-more a:hover { background: rgb(255 248 230 / 0.15); }
.hero-more .thumb { width: 2.2rem; height: 2.2rem; box-shadow: 0 0 0 1px rgb(232 199 118 / 0.6); }
/* on a phone the words flow round the icon (a reader, 4 Dec 2026: "naľavo je toho veľa a vpravo mala ikona"; Martin,
   5 Dec 2026: "nech text obteká ikonu"): the name across the card, then the icon on the right with the title and the
   quote beside it and under it, then the buttons. .hero-float is the same picture as .hero-icon, standing in the words */
.hero-float { display: none; }
@media (max-width: 519px) {
  .hero { display: block; padding: 1.3rem 1.2rem 1.25rem; }
  .hero-icon { display: none; }
  .hero-float { display: block; float: right; width: 40%; margin: 0.35rem 0 0.6rem 0.9rem; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgb(232 199 118 / 0.55), 0 14px 28px -14px rgb(0 0 0 / 0.9); }
  .hero-float img { display: block; width: 100%; aspect-ratio: 5 / 7; object-fit: cover; object-position: 50% 4%; }
  .hero.no-icon .hero-float { display: none; }
  /* a small phone gets smaller letters, so the longest name (Vyslobodzovateľka) stays in the card */
  .hero-name { font-size: min(1.6rem, 6.6vw * var(--scale, 1)); overflow-wrap: break-word; }
  .hero-title { margin-bottom: 0.9rem; }
  .hero-quote { margin: 0 0 1rem; }
  .hero-actions { clear: both; padding-top: 0.2rem; }
  .hero-more { margin-top: 1.1rem; }
}
/* with the banner up, the side column's own list of today would only say it again */
.month:has(.hero:not([hidden])) .today { display: none; }
@keyframes hero-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero { animation: none; } .hero-cta { transition: none; } }
@media (min-width: 1100px) {
  .hero { width: min(100% - 2.5rem, 75.5rem); margin-top: 4.75rem; gap: 2.5rem; padding: 2.2rem 2.4rem; border-radius: 30px; }
  .hero-icon { width: 11rem; }
  .hero-name { font-size: 2.6rem; }
  .hero-title { font-size: 1.05rem; max-width: 40rem; }
  .day .hero { width: auto; margin: 0; }
  .month-divider { text-align: left; }
  .month-divider::after { margin-left: 0; }
}

/* ---------- listen (Martin, 15 Nov 2026: "pridaj možnosť audio u každého") ---------- */
.listen { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; margin-top: 1rem; padding: 0 1.2rem; border: 1px solid var(--frame); border-radius: 999px; background: var(--surface); color: var(--accent); font: inherit; font-size: 0.95rem; cursor: pointer; }
.listen.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.listen[hidden] { display: none; }
.u.reading { background: var(--lit); border-radius: 4px; box-shadow: 0 0 0 3px var(--lit); }
.u.reading .w.now { border-radius: 3px; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 2px var(--accent); }
.reader { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(0.75rem, env(safe-area-inset-bottom)); z-index: 30; animation: reader-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1); display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 10px 26px -12px rgb(0 0 0 / 0.5); }
.reader[hidden] { display: none; }
.reader button { width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 0.95rem; cursor: pointer; }
.reader button[data-read="stop"] { background: var(--panel); color: var(--ink); }
.reader-label { font-size: 0.85rem; color: var(--muted); }
.reader-label[hidden], .reader .reader-follow[hidden] { display: none; }
.reader .reader-follow { width: auto; padding: 0 1rem; border-radius: 999px; background: var(--panel); color: var(--accent); font-size: 0.9rem; white-space: nowrap; }
/* idle: only "▶ Počúvať"; playing: pause, what it does, stop (app.js sets data-state) */
.reader .reader-start { display: inline-flex; align-items: center; gap: 0.45rem; width: auto; padding: 0 1.2rem; border-radius: 999px; font: inherit; font-size: 0.95rem; white-space: nowrap; }
.reader[data-state="idle"] > :not(.reader-start), .reader[data-state="on"] .reader-start { display: none; }
/* resting, the bar waits until its ▶ Počúvať on the page is scrolled past (Martin, 27 Nov 2026) */
.reader[data-state="idle"]:not([data-past]) { display: none; }
@keyframes reader-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .reader { animation: none; } }
/* scrolled into the life: only the round ▶ (playing: pause and ✕), so it does not get in the way
   (Martin, 27 Nov 2026: "Keď skroluješ ponech už iba play ikonu ať nezavádza tlačidlo") */
.scrolled .reader .reader-start { justify-content: center; width: 2.75rem; padding: 0; border-radius: 50%; }
.scrolled .reader .reader-word, .scrolled .reader .reader-label { display: none; }
/* the button under the title gives way to the bar */
/* room at the end of the page, so the bar never covers its last lines */
body:has(.reader:not([hidden])) { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }

/* ---------- select and share (Martin, 15 Nov 2026: "umožni označiť časť a skopírovať, zdieľať ľahko") ---------- */
.share-bar { position: fixed; z-index: 40; display: flex; gap: 0.25rem; padding: 0.25rem; border-radius: 999px; background: var(--ink); box-shadow: 0 10px 26px -10px rgb(0 0 0 / 0.55); }
.share-bar[hidden] { display: none; }
.share-bar button { min-height: 2.5rem; padding: 0 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--bg); font: inherit; font-size: 0.9rem; cursor: pointer; }
.share-bar button:hover { background: rgb(255 255 255 / 0.12); }
.share-toast { position: fixed; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: 41; transform: translateX(-50%); padding: 0.6rem 1.1rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 0.9rem; }
.share-toast[hidden] { display: none; }

/* ---------- the facts of a life, like a saints' book for children (Martin, 22 Nov 2026: "Saints 101") ---------- */
.facts { margin: 0 0 2.25rem; padding: 1.25rem 1.1rem 1.1rem; border-radius: 18px; background: var(--card); color: var(--card-ink); box-shadow: inset 0 0 0 1px var(--frame); }
.facts-head { display: flex; gap: 0.9rem; align-items: flex-start; }
.facts-badge { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.facts-badge svg { width: 1.7rem; height: 1.7rem; }
.facts-rank { margin: 0.1rem 0 0.25rem; font-family: var(--title-font); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.facts-rank span { text-transform: none; letter-spacing: 0; font-family: inherit; font-weight: 500; }
.facts-summary { margin: 0; font-size: 1.04em; line-height: 1.55; }
.facts-grid { display: grid; gap: 0.75rem; margin-top: 1.1rem; }
.facts-col { display: grid; gap: 0.75rem; align-content: start; }
.fact { padding: 0.85rem 0.95rem; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.fact h3 { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.5rem; font-family: var(--title-font); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.fact h3 svg { width: 1.25rem; height: 1.25rem; flex: none; }
.fact p { margin: 0 0 0.35rem; font-size: 0.95em; line-height: 1.5; }
.fact-big { font-size: 1.15em !important; font-weight: 600; }
.fact-list { margin: 0; padding-left: 1.1rem; font-size: 0.95em; line-height: 1.5; }
.fact-list li { margin: 0.2rem 0; }
.fact-list.numbered { padding-left: 1.25rem; }
.fact-list.numbered li::marker { color: var(--accent); font-weight: 700; }
.timeline { position: relative; display: flex; justify-content: space-between; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 2px solid var(--frame); font-size: 0.68rem; color: var(--muted); }
.timeline b { position: absolute; top: -0.5rem; width: 0.9rem; height: 0.9rem; margin-left: -0.45rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface); }
.fact-map { position: relative; margin-bottom: 0.5rem; border-radius: 10px; overflow: hidden; background: var(--panel); aspect-ratio: 740 / 592; }
.fact-map img { display: block; width: 100%; height: 100%; }
.fact-map i { position: absolute; width: 0.8rem; height: 0.8rem; margin: -0.4rem 0 0 -0.4rem; border-radius: 50%; background: #b8321f; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgb(0 0 0 / 0.35); }
@media (min-width: 640px) { .facts { padding: 1.5rem; } .facts-grid { grid-template-columns: 1fr 1fr; align-items: start; } .fact-remember { grid-column: 1 / -1; } }

/* the colour icons (22 Nov 2026) are paintings: no engraving filter, blend or soft mask */
.icon.colour img { max-height: 24rem; border-radius: 6px; mix-blend-mode: normal; filter: none; -webkit-mask-image: none; mask-image: none; box-shadow: 0 14px 34px -16px rgb(0 0 0 / 0.55); }
.life-side .icon.colour img { max-height: 22rem; }
.thumb.colour { filter: none; object-position: 50% 30%; background: #c9a24a; }

/* the other months let out (22 Nov 2026) */
.month-switch { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.6rem; font-size: 0.95rem; }
/* a finger's width to tap (44 px), the words where they were */
.month-switch a { display: inline-flex; align-items: center; min-height: 2.75rem; margin: -0.6rem 0; padding: 0 0.4rem; color: var(--accent); text-decoration: none; }
.month-switch a:first-child { margin-left: -0.4rem; }
.month-switch a:last-child { margin-right: -0.4rem; }

/* ---------- the synaxar on the phone (Martin, 23 Nov 2026: share, home screen, morning notice) ---------- */
.float .float-share { margin-left: auto; margin-right: 0.5rem; }
.float .float-today:not([hidden]) + .float-share, .float .float-share + .settings { margin-left: 0; }
.float-share { position: relative; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 8px 22px -12px rgb(0 0 0 / 0.45); color: var(--accent); cursor: pointer; }
@media (max-width: 359px) {
  .float .float-month { padding: 0 0.55rem; margin-right: 0.35rem; }
  .float .strip-month { letter-spacing: 0.08em; }
  .float .float-today { padding: 0 0.7rem; margin-right: 0.35rem; }
  .float .float-home { margin-right: 0.35rem; }
  .float .float-share { margin-right: 0.35rem; }
}
.float-share svg { width: 1.3rem; height: 1.3rem; }
/* home, one tap from anywhere (Martin, 27 Nov 2026: "Jednoduché spat na homepage chybí") */
.float-home { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; margin-right: 0.5rem; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 8px 22px -12px rgb(0 0 0 / 0.45); color: var(--accent); }
.float-home svg { width: 1.3rem; height: 1.3rem; }
.float-share-done { position: absolute; top: calc(100% + 0.45rem); right: 0; padding: 0.35rem 0.7rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-family: var(--text-font); font-size: 0.82rem; font-weight: 400; line-height: 1.3; letter-spacing: 0; white-space: nowrap; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.float-share.done .float-share-done { opacity: 1; }
.settings-push { display: block; width: 100%; margin-bottom: 0.5rem; padding: 0.7rem; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 0.92rem; cursor: pointer; }
.settings-push[aria-pressed="true"] { background: var(--panel); color: var(--accent); }
.settings-push[hidden], .settings-hint[hidden] { display: none; }
.settings-hint { margin: 0 0 1rem; font-size: 0.85rem; line-height: 1.4; color: var(--muted); }
.app-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.9rem; align-items: center; margin: 0 0 1.75rem; padding: 1rem 2.6rem 1rem 1rem; border: 1px solid var(--frame); border-radius: 18px; background: var(--surface); text-align: left; line-height: 1.4; }
.app-card[hidden] { display: none; }
.app-card img { width: 3.5rem; height: 3.5rem; border-radius: 0.8rem; box-shadow: 0 6px 16px -8px rgb(70 35 10 / 0.6); }
.app-card-title { font-family: var(--title-font); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); }
.app-card-text p + p { margin-top: 0.2rem; font-size: 0.92rem; color: var(--muted); }
.app-card-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.app-card-actions:not(:has(button:not([hidden]))) { display: none; }
.app-card-actions button { min-height: 2.75rem; padding: 0 1.2rem; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.95rem; cursor: pointer; }
.app-card-actions button[hidden] { display: none; }
.app-card-actions .app-card-install, .app-card-actions .app-card-have { background: var(--panel); color: var(--accent); }
.app-card-close { position: absolute; top: 0.35rem; right: 0.35rem; width: 2.75rem; height: 2.75rem; border: 0; background: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.month-side .app-card { margin: 1.25rem 0 0; }
.life-main .app-card { margin: 2.5rem 0 0; }

/* ---------- the booklet about St Dimitri of Rostov and the sermon with Slovak subtitles ---------- */
.booklet { max-width: 44rem; margin: 0 auto; padding: 4.5rem 1.25rem 3rem; }
.booklet-icon { max-width: 15rem; margin: 0 auto 1.5rem; }
.booklet-head { text-align: center; }
.booklet-head .brand { justify-content: center; margin-bottom: 0.75rem; }
.booklet-head h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
.booklet-head .lead { margin: 1rem auto 0; max-width: 34rem; font-style: italic; color: var(--muted); }
.booklet-life { margin-top: 2rem; }
.booklet-life p + p { margin-top: 1rem; }
.tagline a { color: inherit; text-decoration-color: var(--frame); text-underline-offset: 0.2em; }
.sermon { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.sermon h2 { font-size: 1.4rem; }
.sermon-by { margin-top: 0.35rem; color: var(--muted); font-size: 0.95rem; }
.sermon-player { position: relative; margin-top: 1.1rem; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; scroll-margin-top: 4rem; }
.sermon-player iframe, .sermon-player > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sermon-now { min-height: 4.6em; margin-top: 0.75rem; padding: 0.8rem 1rem; border-radius: 12px; background: var(--card); color: var(--card-ink); font-size: 1.08rem; line-height: 1.45; text-align: center; }
.sermon-text { margin-top: 1rem; }
.sermon-text summary { padding: 0.55rem 0; cursor: pointer; color: var(--accent); font-family: var(--title-font); letter-spacing: 0.06em; }
.sermon-text ol { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.sermon-text li button { display: block; width: 100%; min-height: 2.75rem; padding: 0.45rem 0.5rem; border: 0; border-radius: 8px; background: none; text-align: left; line-height: 1.55; cursor: pointer; }
.sermon-text li button:hover { background: var(--hover); }
.sermon-text li.now button { background: var(--tint); }
.sermon-note { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }
.booklet .app-card { margin: 2.5rem 0 0; }
.sermon-text li.chapter button { margin-top: 1rem; font-family: var(--title-font); font-size: 0.95rem; letter-spacing: 0.05em; color: var(--accent); }

/* ---------- the notice's time in Aa, the offer to put the synaxar on the phone, the About page ---------- */
.settings-time { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--muted); }
.settings-time[hidden] { display: none; }
input[type="time"] { min-height: 2.5rem; padding: 0.25rem 0.6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font: inherit; font-size: 1rem; }
input[type="time"]:disabled { opacity: 0.4; }
.settings-more, .settings-about { display: flex; align-items: center; min-height: 2.75rem; margin: 0 0 0.4rem; font-size: 0.88rem; color: var(--accent); }
.settings-more[hidden] { display: none; }
.settings-about { margin: 0.5rem 0 0; padding-top: 0.25rem; border-top: 1px solid var(--line); }
.app-card-how { display: inline-block; margin: -0.4rem 0 -0.75rem; padding: 0.65rem 0.4rem 0.75rem 0; font-size: 0.88rem; color: var(--accent); }
.ios-share { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; color: var(--accent); }

.sheet { position: fixed; inset: auto 0 0 0; z-index: 35; display: flex; justify-content: center; padding: 0 0.75rem calc(0.75rem + env(safe-area-inset-bottom)); pointer-events: none; }
.sheet[hidden] { display: none; }
.sheet-card { position: relative; width: min(30rem, 100%); padding: 1.1rem 1.1rem 1rem; border: 1px solid var(--frame); border-radius: 22px; background: var(--surface); box-shadow: 0 24px 60px -18px rgb(0 0 0 / 0.55); line-height: 1.45; pointer-events: auto; animation: sheet-in 0.35s ease-out; }
@keyframes sheet-in { from { transform: translateY(1.5rem); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet-card { animation: none; } }
.sheet-head { display: flex; align-items: center; gap: 0.8rem; padding-right: 2.5rem; }
.sheet-head img { width: 3.25rem; height: 3.25rem; border-radius: 0.75rem; box-shadow: 0 6px 16px -8px rgb(70 35 10 / 0.6); }
.sheet-title { font-family: var(--title-font); font-size: 1rem; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); }
.sheet-text { margin-top: 0.7rem; font-size: 0.98rem; }
.sheet-steps { margin: 0.6rem 0 0; padding-left: 1.3rem; font-size: 0.98rem; }
.sheet-steps li + li { margin-top: 0.3rem; }
.sheet-steps[hidden] { display: none; }
.sheet-time { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.75rem; font-size: 0.95rem; color: var(--muted); }
.sheet-time[hidden] { display: none; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.sheet-actions button { min-height: 2.75rem; padding: 0 1.2rem; border: 0; border-radius: 999px; font-size: 0.98rem; cursor: pointer; }
.sheet-actions button[hidden] { display: none; }
.sheet-primary { background: var(--accent); color: var(--on-accent); }
.sheet-primary[data-install], .sheet-have { background: var(--panel); color: var(--accent); }
.sheet-later { margin-left: auto; background: none; color: var(--muted); }
.sheet-close { position: absolute; top: 0.4rem; right: 0.4rem; width: 2.75rem; height: 2.75rem; border: 0; background: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
/* asking for the notice: a popup in the middle, over the page dimmed */
.sheet.ask { inset: 0; align-items: center; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); background: rgb(24 14 4 / 0.5); pointer-events: auto; animation: ask-dim 0.25s ease-out; }
.sheet.ask .sheet-card { animation: ask-in 0.3s ease-out; }
.sheet.ask .sheet-head img { display: none; }
@keyframes ask-dim { from { background: rgb(24 14 4 / 0); } }
@keyframes ask-in { from { transform: scale(0.94); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet.ask, .sheet.ask .sheet-card { animation: none; } }
.sheet.ask .sheet-primary { flex: 1 1 100%; min-height: 3.1rem; font-size: 1.05rem; font-weight: 500; }
.sheet.ask .sheet-have { flex: 1; }
.sheet.ask .sheet-later { flex: 1; margin: 0; }
/* what the notice will look like */
.sheet-preview { display: flex; gap: 0.7rem; align-items: center; margin-top: 0.9rem; padding: 0.65rem 0.75rem; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.sheet-preview[hidden] { display: none; }
.sheet-preview img { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 0.65rem; object-fit: cover; }
.sheet-preview-text { min-width: 0; flex: 1; font-size: 0.9rem; line-height: 1.3; }
.sheet-preview-top { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.78rem; color: var(--muted); }
.sheet-preview-title { font-weight: 600; color: var(--ink); }
.sheet-preview-names { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--ink); }

.about-head { text-align: center; }
.about-app { width: 5.5rem; height: 5.5rem; margin: 0 auto 1rem; border-radius: 1.2rem; box-shadow: 0 10px 24px -12px rgb(70 35 10 / 0.6); }
.about-head .brand { justify-content: center; margin-bottom: 0.5rem; }
.about-head h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
.about-head .lead { margin: 0.9rem auto 0; max-width: 34rem; font-style: italic; color: var(--muted); }
.about-start, .about-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; margin-top: 1.25rem; padding: 0 1.4rem; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: inherit; font-size: 1rem; text-decoration: none; cursor: pointer; }
.about-button[hidden] { display: none; }
.about-button[aria-pressed="true"] { background: var(--panel); color: var(--accent); }
.about-part { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); scroll-margin-top: 4rem; }
.about-part h2 { font-size: 1.4rem; }
.about-part > p { margin-top: 0.6rem; }
.about-list { margin: 0.9rem 0 0; padding-left: 1.2rem; }
.about-list li + li { margin-top: 0.5rem; }
.about-phones { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 40rem) { .about-phones { grid-template-columns: 1fr 1fr; } }
.about-phone { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.about-phone.mine { order: -1; border-color: var(--frame); box-shadow: 0 10px 30px -20px rgb(0 0 0 / 0.5); }
.about-phone h3 { font-family: var(--title-font); font-size: 0.95rem; letter-spacing: 0.06em; color: var(--accent); }
.about-phone ol { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.about-phone li + li { margin-top: 0.35rem; }
.about-phone .about-button { margin-top: 0.9rem; }
.about .settings-hint { margin: 0.75rem 0 0; font-size: 0.95rem; }
.notice-times { margin-top: 1.1rem; }
.notice-times[hidden] { display: none; }
.notice-at { display: flex; align-items: center; gap: 0.75rem; }
.notice-days { margin-top: 1rem; }
.notice-days summary { cursor: pointer; color: var(--accent); }
.notice-days p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.notice-days ul { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.notice-days li { display: grid; grid-template-columns: 5.5rem auto 1fr; align-items: center; gap: 0.6rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.notice-days li label { font-size: 0.88rem; color: var(--muted); }
.notice-saved { min-height: 1.4em; margin-top: 0.6rem; font-size: 0.9rem; color: var(--accent); }
.about-saint { margin-top: 0.5rem; text-align: center; }
#dimitrij .lead { margin-top: 0.6rem; font-style: italic; color: var(--muted); text-align: center; }
.about-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.25rem; }
.about-actions .about-start { margin-top: 0; }
.about-start-quiet { background: var(--panel); color: var(--accent); }
.sheet-more { display: block; margin-top: 0.5rem; font-size: 0.9rem; color: var(--accent); }
.sheet-more[hidden] { display: none; }

/* ---------- search the saints (public/search.js; Martin, 28 Nov 2026: "Chyba vyhľadávanie hladaj synonymá men aj") ---------- */
.float-search { display: none; }
@media (min-width: 1100px) {
  .float .float-search { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; margin-left: auto; margin-right: 0.5rem; padding: 0; border: 0; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 8px 22px -12px rgb(0 0 0 / 0.45); color: var(--accent); cursor: pointer; }
  .float .float-search + .float-today, .float .float-search ~ .float-share { margin-left: 0; }
}
.searching { overflow: hidden; }
.search { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--ink); }
.search[open] { display: flex; flex-direction: column; }
.search::backdrop { background: rgb(0 0 0 / 0.4); }
.search-bar { flex: none; display: flex; align-items: center; gap: 0.25rem; padding: max(0.5rem, env(safe-area-inset-top)) 0.5rem 0.5rem 0.9rem; border-bottom: 1px solid var(--line); background: var(--bg); }
.search-bar > svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--muted); }
.search-bar input { flex: 1; min-width: 0; height: 2.75rem; padding: 0 0.4rem; border: 0; background: none; color: inherit; font: inherit; font-size: 1.1rem; outline: none; }
.search-bar input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-clear { flex: none; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.search-clear[hidden] { display: none; }
.search-close { flex: none; min-height: 2.75rem; padding: 0 0.6rem; border: 0; background: none; color: var(--accent); font: inherit; font-size: 0.95rem; cursor: pointer; }
.search-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0.75rem 1rem calc(1.5rem + env(safe-area-inset-bottom)); }
.search-hint { margin: 0.25rem 0 0.75rem; color: var(--muted); font-size: 0.92rem; }
.search-examples { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.search-examples button { min-height: 2.75rem; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--accent); font: inherit; font-size: 0.92rem; cursor: pointer; }
.has-query .search-hint, .has-query .search-examples { display: none; }
.search-hits { margin: 0; padding: 0; list-style: none; }
.search-hit { display: flex; align-items: center; gap: 0.75rem; min-height: 3.5rem; padding: 0.6rem 0.2rem; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.search-hit:hover { background: var(--hover); }
.search-hit img, .search-noicon { flex: none; width: 3rem; height: 3rem; border-radius: 999px; object-fit: cover; background: var(--thumb-bg); }
.search-noicon { display: grid; place-items: center; background: var(--panel); color: var(--accent); }
.search-text { min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.search-text b { font-weight: 600; line-height: 1.25; }
.search-text small { color: var(--accent); font-size: 0.8rem; }
.search-text span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
.search-none { padding: 1rem 0.2rem; color: var(--muted); }
@media (min-width: 700px) {
  .search { width: min(38rem, 92vw); height: auto; max-height: min(44rem, 84vh); margin: 8vh auto auto; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 24px 60px -20px rgb(0 0 0 / 0.5); }
  .search-bar { padding-top: 0.5rem; }
}

/* Slovensky / Česky (Martin, 30 Nov 2026): under the title of a month, in Aa, on the About page, and on a life
   a link beside Počúvať */
.site .lang-switch, .about-head .lang-switch { max-width: 15rem; margin: 0.9rem auto 0; }
.life-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 1rem; }
.life-actions .listen { margin-top: 0; }
.life-lang { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.95rem; text-decoration: none; }
.life-lang:hover { background: var(--hover); color: inherit; }
@media (min-width: 1100px) {
  .month-side .lang-switch { margin-left: 0; }
  .life-actions { justify-content: flex-start; }
}

/* Pripomienky (public/pin-comments.js, Martin, 1 Dec 2026: "místo pro zpětnou vazbu, podobně jak marker.io"): the tab
   on the right edge in the synaxar's colours, a little below the middle, and out of the way while a sheet is open */
:root { --pin-accent: var(--accent); --pin-ink: var(--on-accent); --pin-font: var(--text-font); --pin-side-top: 64%; }
:root:has(.sheet:not([hidden])), :root.searching { --pin-side-display: none; }
