/* Minimal / Editorial — 2026-10-02.
 * Presentation layer over minimal.css. Keep the base module, editor and modal
 * contracts intact. Colours follow applyMinimalDesignTokens in tenant-config.js.
 */
body.theme-minimal {
  --content-width: 1320px;
  --page-gutter: clamp(20px, 4vw, 56px);
  --editorial-ink: var(--text);
  --editorial-muted: color-mix(in srgb, var(--text) 70%, var(--bg));
  --editorial-rule: color-mix(in srgb, var(--primary) 22%, var(--bg));
  --editorial-surface: color-mix(in srgb, var(--primary) 4%, var(--bg));
  --editorial-on-dark: var(--text-on-primary, #fff);
  font-size: 16px;
  line-height: 1.7;
}
body.theme-minimal ::selection { background: var(--primary); color: var(--editorial-on-dark); }
body.theme-minimal :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 5px;
}
body.theme-minimal :where(h1, h2, h3) { text-wrap: balance; overflow-wrap: anywhere; }
body.theme-minimal :where(p, a) { overflow-wrap: anywhere; }
body.theme-minimal :where(.hero-content, .section-header, .news-card, .schedule-day, .clergy-card) {
  animation: none;
}
/* A quiet masthead; long parish names can wrap without covering the menu. */
body.theme-minimal header.main-header { background: var(--bg) !important; backdrop-filter: none !important; }
body.theme-minimal .header-content { height: auto; min-height: 88px; padding-block: 18px; gap: 24px; }
body.theme-minimal .header-logo { flex: 0 1 640px; gap: 14px; }
body.theme-minimal .header-logo__name { font-size: 23px; line-height: 1.15; overflow-wrap: anywhere; word-break: normal; }
body.theme-minimal .header-logo__img { width: 38px; height: 38px; }
body.theme-minimal .header-sections-btn { border-radius: 0; min-height: 44px; font-size: 13px; letter-spacing: .02em; }
body.theme-minimal .header-nav__panel { border-radius: 0; border-color: var(--editorial-rule); padding: 12px; }
body.theme-minimal .mobile-menu-btn { flex-shrink: 0; width: 44px; height: 44px; align-items: center; justify-content: center; }
body.theme-minimal .mobile-menu { background: var(--bg); }
body.theme-minimal .mobile-menu-nav a { padding-block: 18px; border-bottom: 1px solid var(--editorial-rule); }
/* The opening spread. The title remains connected to all three CMS fields. */
body.theme-minimal .hero { padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 100px); }
body.theme-minimal .hero-content { display: grid; grid-template-columns: 1.08fr 1fr; column-gap: clamp(32px, 6vw, 84px); row-gap: 32px; align-items: start; }
body.theme-minimal .hero-lead { grid-column: 1; grid-row: 1; padding-top: 24px; display: block; text-align: left; }
body.theme-minimal .editorial-eyebrow { display: flex; align-items: center; gap: 12px; font: 500 10px/1.5 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--editorial-muted); margin: 0 0 28px; }
body.theme-minimal .editorial-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--primary); flex-shrink: 0; }
body.theme-minimal .hero-blessing { font: 400 12px/1.7 var(--font-body); text-transform: none; letter-spacing: 0; color: var(--editorial-muted); margin-bottom: 20px; max-width: 38ch; }
body.theme-minimal .hero-lead .hero-title { font-size: clamp(48px, 5.7vw, 82px); font-weight: 400; line-height: .99; letter-spacing: -.045em; margin: 0; color: var(--editorial-ink); }
body.theme-minimal .hero-title br { display: none; }
body.theme-minimal .hero-title .title-line { display: inline; }
body.theme-minimal .hero-title .title-line:not(:empty)::after { content: ' '; }
body.theme-minimal .hero-title .title-line.highlight { color: inherit; }
body.theme-minimal .hero-lead #hero-intro { font-size: 16px; line-height: 1.8; color: var(--editorial-muted); max-width: 38ch; margin: 26px 0 0; }
body.theme-minimal #hero-intro:empty { display: none; }
body.theme-minimal .hero-col-media { grid-column: 2; grid-row: 1 / 3; align-self: stretch; width: 100%; max-width: none; margin: 0; min-width: 0; }
body.theme-minimal .hero-image { width: 100%; height: 100%; min-height: 520px; aspect-ratio: 4 / 5; border-radius: 0; box-shadow: none; background: var(--editorial-surface); }
body.theme-minimal .hero-image img { display: block; height: 100%; width: 100%; object-fit: cover; }
body.theme-minimal .hero-actions { grid-column: 1; grid-row: 2; align-self: end; align-items: flex-start; margin: 0; text-align: left; padding-bottom: 12px; }
body.theme-minimal .hero-actions .hero-cta { width: auto; max-width: 100%; min-height: 56px; padding: 17px 22px; border-radius: 0; font-size: 13px; line-height: 1.5; font-weight: 500; gap: 24px; color: var(--editorial-on-dark); background: var(--primary); transform: none; box-shadow: none; }
body.theme-minimal .hero-cta svg { flex-shrink: 0; transition: transform .2s ease; }
body.theme-minimal .hero-cta:hover svg { transform: translateX(4px); }
body.theme-minimal .hero-cta:hover { background: var(--primary-light); }
body.theme-minimal .hero-minimal-links { display: flex; flex-wrap: wrap; gap: 0 22px; border-top: 1px solid var(--editorial-rule); margin-top: 32px; padding-top: 12px; }
body.theme-minimal .hero-minimal-links[hidden] { display: none; }
body.theme-minimal .hero-minimal-link { padding: 12px 0; border: 0; background: none; border-radius: 0; box-shadow: none; max-width: 100%; }
body.theme-minimal .hero-minimal-link:hover { background: none; box-shadow: none; }
body.theme-minimal .hero-minimal-link__inner { gap: 8px; }
body.theme-minimal .hero-minimal-link__icon, body.theme-minimal .hero-minimal-link__icon svg { width: 17px; height: 17px; }
body.theme-minimal .hero-minimal-link__sub { display: none; }
body.theme-minimal .hero-minimal-link__line { font: 500 12px/1.5 var(--font-body); text-decoration-thickness: 1px; text-underline-offset: 5px; }
body.theme-minimal .hero-minimal-link:hover .hero-minimal-link__line { text-decoration: underline; }
/* Missing photos become a deliberate type-led layout, with no empty frame. */
body.theme-minimal .hero:not(.hero-has-photo) .hero-col-media { display: none; }
body.theme-minimal .hero:not(.hero-has-photo) .hero-content { grid-template-columns: minmax(0, 880px); }
body.theme-minimal .hero:not(.hero-has-photo) .hero-title { max-width: 19ch; }
/* Section rhythm: one rule and a clear hierarchy, also on generated pages. */
body.theme-minimal .section { padding-block: 48px 80px; border-color: var(--editorial-rule); }
body.theme-minimal .hero + .section { padding-top: 40px; }
body.theme-minimal .section-header,
body.theme-minimal .section-header:not(:has(.section-decoration)),
body.theme-minimal .section-header:has(.section-decoration) { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; max-width: none; margin: 0 0 36px; }
body.theme-minimal .section-header::before,
body.theme-minimal .section-header::after,
body.theme-minimal .section-decoration { display: none; }
body.theme-minimal .section-header .section-title,
body.theme-minimal .section-header:not(:has(.section-decoration)) .section-title,
body.theme-minimal .section-header:has(.section-decoration) .section-title { font-size: clamp(38px, 4.5vw, 60px); line-height: 1.08; letter-spacing: -.035em; color: var(--editorial-ink); text-align: left; }
body.theme-minimal .section-header .section-description { font-size: 14px; color: var(--editorial-muted); margin: 0; }
body.theme-minimal #news .editorial-eyebrow { margin-bottom: 0; }
/* News and galleries: photographs and type, without floating card chrome. */
body.theme-minimal .news-grid { gap: 40px 28px; }
body.theme-minimal .news-card { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: hidden; }
body.theme-minimal .news-card:hover { transform: none; box-shadow: none; border-color: transparent; }
body.theme-minimal #news .news-card > img.news-card-image,
body.theme-minimal #news .news-carousel { height: auto; aspect-ratio: 3/2; max-height: none; object-fit: cover; }
body.theme-minimal #news .news-card:hover > img.news-card-image { transform: none; }
body.theme-minimal #news .news-card-content,
body.theme-minimal #gallery-section .news-card-content,
body.theme-minimal #video-gallery-section .news-card-content { padding: 22px 0 0; gap: 14px; }
body.theme-minimal #news .news-card-title,
body.theme-minimal #gallery-section .news-card-title,
body.theme-minimal #video-gallery-section .news-card-title { font-size: 29px; font-weight: 500; line-height: 1.12; letter-spacing: -.02em; color: var(--editorial-ink); }
body.theme-minimal #news .news-card:hover .news-card-title { color: var(--primary); }
body.theme-minimal #news .news-card-excerpt { font-size: 14px; line-height: 1.75; color: var(--editorial-muted); }
body.theme-minimal #news .news-card-footer { order: -1; border: 0; padding: 0; margin: 0; }
body.theme-minimal #news .news-card-date { font-size: 11px; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--editorial-muted); }
body.theme-minimal #news .news-read-more-btn { align-self: flex-start; min-height: 44px; margin-top: 0; font-size: 12px; letter-spacing: 0; border-bottom: 1px solid var(--editorial-rule); }
body.theme-minimal #news .news-read-more-btn::after { content: '↗'; font-size: 18px; margin-left: 12px; }
@media (min-width: 900px) {
  body.theme-minimal #news .news-card:first-child:has(> img, > .news-carousel) { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 1fr; border-bottom: 1px solid var(--editorial-rule); padding-bottom: 36px; margin-bottom: 4px; }
  body.theme-minimal #news .news-card:first-child > img.news-card-image,
  body.theme-minimal #news .news-card:first-child > .news-carousel { height: 100%; min-height: 330px; max-height: 440px; aspect-ratio: 16/10; }
  body.theme-minimal #news .news-card:first-child:has(> img, > .news-carousel) .news-card-content { padding: 32px 0 32px clamp(28px, 5vw, 64px); align-self: center; }
  body.theme-minimal #news .news-card:first-child:has(> img, > .news-carousel) .news-card-title { font-size: clamp(32px, 3.1vw, 44px); }
}
/* Interior pages retain their functional components and editor formatting. */
body.theme-minimal .content-section.modern-section { padding-block: 52px 72px; }
body.theme-minimal .content-block { border-radius: 0; box-shadow: none; border-color: var(--editorial-rule); }
body.theme-minimal .content-block:not(.donations-page-block):not(.clergy-page-block):not(:has(form, .zapiski-form, .donation-checkout)) { background: transparent; }
body.theme-minimal .full-news-title { font-size: clamp(36px, 4.5vw, 62px); letter-spacing: -.03em; line-height: 1.08; }
body.theme-minimal .full-news-text { font-size: 17px; line-height: 1.85; }
body.theme-minimal .schedule-day { border-radius: 0; box-shadow: none; padding: 28px; border-color: var(--editorial-rule); }
body.theme-minimal .schedule-day-header { font-size: 28px; letter-spacing: -.02em; }
body.theme-minimal .event-time { font-variant-numeric: tabular-nums; }
body.theme-minimal .clergy-card { box-shadow: none; border-radius: 0; }
body.theme-minimal :where(.donation-checkout, .donation-card, .zapiski-form) { border-radius: 0; box-shadow: none; }
body.theme-minimal :where(.pagination-button, .btn-back-home, .full-news-back-btn, .full-news-nav-btn) { border-radius: 0; }
body.theme-minimal .loading { color: var(--editorial-muted); font-size: 15px; padding-block: 32px; }
/* A substantial colophon, with the same palette and real CMS navigation. */
body.theme-minimal footer.main-footer { padding: 56px var(--page-gutter) 0; margin-top: 32px !important; }
body.theme-minimal .footer-inner { max-width: calc(var(--content-width) - 2 * var(--page-gutter)); }
body.theme-minimal .footer-main { grid-template-columns: 1fr 1.4fr; gap: 48px; }
body.theme-minimal .footer-section--about { grid-column: 1; grid-row: 1; }
body.theme-minimal .footer-nav-map-wrap { grid-column: 2; grid-row: 1; grid-template-columns: 1fr 1.1fr; gap: 32px; }
body.theme-minimal .main-footer #footer-title { font-size: clamp(28px, 3vw, 40px); font-weight: 400; letter-spacing: -.025em; line-height: 1.13; margin-bottom: 20px; }
body.theme-minimal .main-footer #footer-about-text { font-size: 13px; max-width: 38ch; }
body.theme-minimal .footer-nav { grid-template-columns: 1fr; gap: 10px; }
body.theme-minimal .footer-nav a { font-size: 13px; }
body.theme-minimal .footer-map-wrap { border-radius: 0; }
body.theme-minimal .footer-bottom { max-width: calc(var(--content-width) - 2 * var(--page-gutter)); margin: 48px auto 0; padding: 24px 0; text-align: left; border-top: 1px solid color-mix(in srgb, var(--editorial-on-dark) 25%, transparent); }
body.theme-minimal .footer-bottom p { font-size: 11px; }
@media (max-width: 1023px) {
  body.theme-minimal .header-content { min-height: 76px; padding-block: 14px; }
  body.theme-minimal .header-logo__name { font-size: 20px; }
  body.theme-minimal .hero-content { column-gap: 32px; }
  body.theme-minimal .hero-lead { padding-top: 0; }
  body.theme-minimal .hero-lead .hero-title { font-size: clamp(44px, 6.5vw, 68px); }
  body.theme-minimal .hero-image { min-height: 430px; }
  body.theme-minimal .hero-actions .hero-cta { gap: 12px; padding-inline: 16px; }
  body.theme-minimal .footer-main { grid-template-columns: 1fr; gap: 36px; }
  body.theme-minimal .footer-nav-map-wrap { grid-column: 1; grid-row: 2; }
}
@media (max-width: 699px) {
  body.theme-minimal .header-content { gap: 12px; }
  body.theme-minimal .header-logo__name { font-size: 19px; }
  body.theme-minimal .hero { padding-block: 32px 48px; }
  body.theme-minimal .hero-content { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  body.theme-minimal .hero-lead { grid-column: 1; grid-row: 1; }
  body.theme-minimal .editorial-eyebrow { margin-bottom: 22px; font-size: 9px; }
  body.theme-minimal .hero-lead .hero-title { font-size: clamp(44px, 10.5vw, 68px); line-height: 1.02; letter-spacing: -.035em; }
  body.theme-minimal .hero-blessing { max-width: none; font-size: 11px; margin-bottom: 16px; }
  body.theme-minimal .hero-col-media { grid-column: 1; grid-row: 2; }
  body.theme-minimal .hero-image { height: auto; min-height: 0; aspect-ratio: 5 / 4; }
  body.theme-minimal .hero-image img { position: absolute; inset: 0; }
  body.theme-minimal .hero-actions { grid-column: 1; grid-row: 3; padding: 0; }
  body.theme-minimal .hero-actions .hero-cta { width: 100%; justify-content: space-between; }
  body.theme-minimal .hero-minimal-links { margin-top: 24px; gap: 0 18px; }
  body.theme-minimal .hero:not(.hero-has-photo) .hero-actions { grid-row: 2; }
  body.theme-minimal .section { padding-block: 32px 48px; }
  body.theme-minimal .section-header { margin-bottom: 28px; }
  body.theme-minimal .news-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  body.theme-minimal #news .news-card-content { padding-top: 18px; gap: 12px; }
  body.theme-minimal .content-section.modern-section { padding-block: 32px 48px; }
  body.theme-minimal .schedule-day { padding: 20px; }
  body.theme-minimal footer.main-footer { padding-top: 36px; }
  body.theme-minimal .footer-nav-map-wrap { grid-template-columns: minmax(0, 1fr); }
  body.theme-minimal .footer-nav-map-wrap .footer-section--nav { grid-column: 1; grid-row: 1; }
  body.theme-minimal .footer-nav-map-wrap .footer-map-aside { grid-column: 1; grid-row: 2; }
  body.theme-minimal .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.theme-minimal .footer-bottom { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.theme-minimal) { scroll-behavior: auto; }
  body.theme-minimal *, body.theme-minimal *::before, body.theme-minimal *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Shared app.js writes reveal styles inline. Content must stay readable even
   before the observer fires, in print and when motion is disabled. */
body.theme-minimal :is(.news-card, .content-block, .widget, .schedule-item, .schedule-day) {
  opacity: 1 !important;
  transform: none !important;
}
body.theme-minimal .modern-section .section-header { max-width: none; }
body.theme-minimal .schedule-day { border-top-color: var(--editorial-rule); border-right-color: var(--editorial-rule); border-bottom-color: var(--editorial-rule); }
body.theme-minimal .schedule-day--red { border-left-color: #c62828; }
body.theme-minimal .schedule-day--green { border-left-color: #2e7d32; }
body.theme-minimal .schedule-day--purple { border-left-color: #6a1b9a; }
body.theme-minimal .schedule-day--blue { border-left-color: #1565c0; }
body.theme-minimal .schedule-day--cyan { border-left-color: #00838f; }
body.theme-minimal .mobile-menu {
  top: var(--minimal-header-height, 80px);
  max-height: calc(100vh - var(--minimal-header-height, 80px));
  max-height: calc(100dvh - var(--minimal-header-height, 80px));
}
@media print {
  body.theme-minimal .main-header { position: static; }
  body.theme-minimal :is(.mobile-menu, .scroll-to-top, .hero-minimal-links) { display: none !important; }
}
/* Forms use the same flat, legible control language as the main page. */
body.theme-minimal .donation-checkout :is(.donation-checkout__chip, .donation-checkout__pill, .donation-checkout__submit),
body.theme-minimal :is(.zapiski-treba-btn, .zapiski-intent-btn, .zapiski-submit-btn) {
  border-radius: 0;
  box-shadow: none;
  transform: none;
  letter-spacing: 0;
  text-transform: none;
  min-height: 48px;
}
body.theme-minimal .donation-checkout .donation-checkout__chip--active,
body.theme-minimal .donation-checkout .donation-checkout__pill:has(input:checked),
body.theme-minimal .donation-checkout .donation-checkout__submit,
body.theme-minimal .zapiski-intent-btn.is-active,
body.theme-minimal .zapiski-submit-btn {
  background: var(--primary) !important;
  color: var(--editorial-on-dark) !important;
  box-shadow: none;
}
body.theme-minimal .donation-checkout .donation-checkout__custom--active { background: var(--primary); box-shadow: none; }
body.theme-minimal .donations-page-block .donation-checkout__hint,
body.theme-minimal .donations-page-block .donation-checkout__cancel-text { font-size: 13px; line-height: 1.65; color: var(--editorial-muted); }
body.theme-minimal .donation-checkout__cancel-notice { border-radius: 0; background: var(--editorial-surface); border-color: var(--editorial-rule); }
body.theme-minimal .donation-checkout__input,
body.theme-minimal .zapiski-field :is(input:not([type=checkbox]), textarea) { font-size: 16px; }
