/* ============================================================================
   uki-home-v3.css: homepage v3 (template page-templates/uki-home-v3.php), B7.
   Loaded AFTER uki-home-v2.css, which carries every shared .uki-home2 rule; this
   file holds only what v3 adds: «Цього дня» above the lead, the quiet deadline
   line, the «сьогодні» label in the events column, the two daily cards.

   Tokens only (uki-tokens.css through the .uki-home2 bridge). Lora for the year
   and the text, Inter for the rest; no new font, no icon, no fill that competes
   with the lead below.

   Lessons carried over from v2: grid tracks are minmax(0,1fr), flex children get
   min-width:0, and every element that can be `hidden` has an explicit
   [hidden]{display:none} because display:grid/flex otherwise wins over the
   attribute.
   ========================================================================== */

/* The header margin rule of v2 is keyed to v2's body class; the same value here. */
body.page-template-uki-home-v3 .pc-wrapbuilder-header{--pchd-mg:28px}

/* ── «Цього дня»: one object above the lead ── */
.uki-home2 .uki-today3{background:var(--paper);border-bottom:1px solid var(--line)}
.uki-home2 .uki-today3>.wrap{padding-top:4px;padding-bottom:14px}
.uki-home2 .uki-star{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:26px;align-items:start}
.uki-home2 .uki-star[hidden]{display:none}
.uki-home2 .uki-star__year{font-family:var(--serif);font-weight:600;font-size:44px;line-height:1;color:var(--gold);letter-spacing:-.01em;padding-top:2px;font-variant-numeric:lining-nums}
.uki-home2 .uki-star__body{min-width:0;max-width:70ch;grid-column:2}
.uki-home2 .uki-star__kicker{font-family:var(--sans);font-weight:600;font-size:11px;line-height:1.4;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin:0 0 6px;padding:0}
.uki-home2 .uki-star__text{font-family:var(--serif);font-weight:500;font-size:18px;line-height:1.4;color:var(--ink);margin:0;padding:0}
.uki-home2 a.uki-star__src{display:block;width:max-content;margin-top:6px;font-family:var(--sans);font-size:12px;font-weight:500;color:var(--muted);border-bottom:1px solid transparent}
.uki-home2 a.uki-star__src:hover,.uki-home2 a.uki-star__src:focus{color:var(--gold);border-bottom-color:var(--gold)}

/* the deadline line: a hairline and one quiet row, not a strip */
.uki-home2 .uki-today3__dl{font-family:var(--sans);font-size:12px;line-height:1.5;color:var(--muted);margin:14px 0 0;padding:9px 0 0;border-top:1px solid var(--line)}
.uki-home2 .uki-today3__dl b{font-weight:600;color:var(--ink);white-space:nowrap}
.uki-home2 .uki-today3__dl [hidden]{display:none}
.uki-home2 a.uki-today3__dl-cta{font-weight:600;color:var(--ink);border-bottom:1px solid var(--line);white-space:nowrap}
.uki-home2 a.uki-today3__dl-cta:hover,.uki-home2 a.uki-today3__dl-cta:focus{color:var(--gold);border-bottom-color:var(--gold)}

/* ── events column: the «сьогодні» accent ── */
.uki-home2 .evrow[hidden]{display:none}
.uki-home2 .evrow .tdy{display:inline-block;font-size:10.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;line-height:1;color:#23201a;background:var(--gold);border-radius:3px;padding:3px 6px;margin:0 0 5px}
.uki-home2 .evrow .tdy[hidden]{display:none}
.uki-home2 .evrow.evrow--today .dtb{background:var(--gold);color:#23201a}

/* ── daily cards under the services: church calendar + «Місце дня» ── */
.uki-home2 .uki-daily{background:var(--ink-2);border-top:1px solid var(--line-d)}
.uki-home2 .uki-daily[hidden]{display:none}
.uki-home2 .uki-daily>.wrap{display:flex;gap:0}
.uki-home2 .uki-daily__slot{flex:1 1 0;min-width:0;padding:15px 26px;border-left:1px solid var(--line-d)}
.uki-home2 .uki-daily__slot[hidden]{display:none}
.uki-home2 .uki-daily__slot:first-child,
.uki-home2 .uki-daily__slot[hidden]+.uki-daily__slot{border-left:0;padding-left:0}
.uki-home2 .uki-day{display:grid;grid-template-columns:minmax(0,1fr);row-gap:2px;min-width:0}
.uki-home2 .uki-day.uki-day--thumb{grid-template-columns:56px minmax(0,1fr);column-gap:14px;align-items:center}
.uki-home2 .uki-day__thumb{grid-row:1 / span 3;width:56px;height:56px;object-fit:cover;border-radius:6px;border:1px solid rgba(243,228,189,.3)}
/* no photo (or only a logo): the same ringed line icon as the three service cards above */
.uki-home2 .uki-day.uki-day--icon{grid-template-columns:40px minmax(0,1fr);column-gap:14px;align-items:center}
.uki-home2 .uki-day__ic{grid-row:1 / span 3;width:40px;height:40px;border:1px solid rgba(243,228,189,.35);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--gold-soft)}
.uki-home2 .uki-day__k{display:block;font-size:10.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-soft)}
.uki-home2 .uki-day__t{display:block;font-family:var(--serif);font-weight:600;font-size:16px;line-height:1.3;color:#ece7da}
.uki-home2 .uki-day--major .uki-day__t{color:#fff}
.uki-home2 a.uki-day:hover .uki-day__t{color:#fff}
.uki-home2 .uki-day__m{display:block;font-size:12.5px;color:#a9a394}
.uki-home2 .uki-day__fast{display:inline-block;vertical-align:middle;font-family:var(--sans);font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--gold-soft);border:1px solid rgba(234,216,173,.45);border-radius:3px;padding:1px 6px;margin-left:6px}

/* ── breakpoints (full selectors repeated, the 8.5-hotfix specificity rule) ── */
@media (max-width:980px){
  .uki-home2 .uki-daily>.wrap{flex-direction:column}
  .uki-home2 .uki-daily__slot{border-left:0;border-top:1px solid var(--line-d);padding:14px 0}
  .uki-home2 .uki-daily__slot:first-child,
  .uki-home2 .uki-daily__slot[hidden]+.uki-daily__slot{border-top:0;padding-left:0}
}
@media (max-width:620px){
  body.page-template-uki-home-v3 .pc-wrapbuilder-header{--pchd-mg:20px}
  .uki-home2 .uki-today3>.wrap{padding-top:0;padding-bottom:12px}
  /* phone: the year sits on the kicker's row, the text takes the full width under them */
  .uki-home2 .uki-star{column-gap:12px;row-gap:6px;align-items:center}
  .uki-home2 .uki-star__year{font-size:34px;padding-top:0}
  .uki-home2 .uki-star__body{display:contents}
  .uki-home2 .uki-star__kicker{grid-column:2;margin:0;font-size:10.5px;letter-spacing:.12em}
  .uki-home2 .uki-star__text{grid-column:1 / -1;font-size:16px;line-height:1.4}
  .uki-home2 a.uki-star__src{display:inline;margin-top:0;white-space:nowrap}
  .uki-home2 .uki-today3__dl{margin-top:10px;padding-top:8px}
}
