/* 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(.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 .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; }
/* Missing photos become a deliberate type-led layout, with no empty frame. */
/* 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 .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 .editorial-eyebrow { margin-bottom: 22px; font-size: 9px; }
  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; }

/* 04 October refinement: a complete desktop opening screen. */
body.theme-minimal .editorial-footer-actions { display: none; }
@media (min-width: 1024px) {
  /* A wide nameplate, generous navigation and a properly sized map. */
  body.theme-minimal footer.footer.main-footer { background: var(--color-primary-dark, var(--primary)) !important; padding-top: 56px; }
  body.theme-minimal .footer-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); column-gap: 72px; row-gap: 44px; }
  body.theme-minimal .footer-section--about { grid-column: 1; grid-row: 1; }
  body.theme-minimal .main-footer #footer-title { font-size: clamp(38px, 3.8vw, 54px); max-width: 26ch; line-height: 1.08; margin-bottom: 20px; }
  body.theme-minimal .main-footer #footer-about-text { font-size: 15px; max-width: 54ch; line-height: 1.7; }
  body.theme-minimal .editorial-footer-actions { grid-column: 2; grid-row: 1; align-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
  body.theme-minimal .editorial-footer-cta { display: inline-flex; justify-content: space-between; align-items: center; gap: 24px; padding: 17px 22px; min-height: 58px; border: 1px solid color-mix(in srgb, var(--editorial-on-dark) 48%, transparent); color: var(--editorial-on-dark); font-size: 15px; font-weight: 500; transition: background .2s ease; }
  body.theme-minimal .editorial-footer-cta:hover { background: color-mix(in srgb, var(--editorial-on-dark) 10%, transparent); }
  body.theme-minimal .editorial-footer-cta span { font-size: 23px; }
  body.theme-minimal .editorial-footer-contacts { display: flex; flex-wrap: wrap; gap: 16px 24px; }
  body.theme-minimal .editorial-footer-contact { display: inline-flex; align-items: center; gap: 10px; color: var(--editorial-on-dark); font-size: 16px; min-height: 44px; }
  body.theme-minimal .editorial-footer-contact svg { width: 22px; height: 22px; flex-shrink: 0; }
  body.theme-minimal .footer-nav-map-wrap { grid-column: 1 / -1; grid-row: 2; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); column-gap: 72px; padding-top: 36px; border-top: 1px solid color-mix(in srgb, var(--editorial-on-dark) 20%, transparent); }
  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: 2; grid-row: 1; }
  body.theme-minimal .footer-section--nav h3 { font: 500 12px/1.6 var(--font-body); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
  body.theme-minimal .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 30px; }
  body.theme-minimal .footer-nav a { font-size: 16px; line-height: 1.4; display: inline-flex; align-items: center; min-height: 42px; padding: 8px 0; }
  body.theme-minimal .footer-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
  body.theme-minimal .footer-map-label { font-size: 12px; }
  body.theme-minimal .footer-map-heading { margin-bottom: 18px; min-height: 19px; }
  body.theme-minimal .footer-map-wrap { height: 250px; max-height: none; border: 0; }
  body.theme-minimal .footer-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 36px; margin-top: 40px; padding-block: 26px; }
  body.theme-minimal .footer-bottom p { margin: 0; font-size: 12px; line-height: 1.6; }
  body.theme-minimal #saithrama-branding { grid-column: 2; grid-row: 1; text-align: right; }
  body.theme-minimal #footer-legal { grid-column: 1 / -1; }
}
/* Generated sections: a composed heading, readable articles and restrained panels. */
body.theme-minimal #main-content .section-header { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--editorial-rule); gap: 18px; }
body.theme-minimal #main-content .section-header::before { display: block; content: ''; width: 44px; height: 2px; background: var(--primary); }
body.theme-minimal #main-content .section-header .section-title { font-weight: 500; }
body.theme-minimal .modern-section-body .content-block:not(.donations-page-block):not(.zapiski-page):not(.clergy-page-block) { max-width: 860px; padding: clamp(24px, 4vw, 48px); border: 0; border-left: 2px solid var(--editorial-rule); background: var(--editorial-surface); }
body.theme-minimal .modern-section-body { font-size: 17px; line-height: 1.8; }
body.theme-minimal .content-block :where(h2, h3) { letter-spacing: -.02em; font-weight: 500; }
body.theme-minimal .section-page-layout { padding: clamp(20px, 3vw, 36px); background: var(--editorial-surface); }
body.theme-minimal .section-page-layout p { line-height: 1.8; }
body.theme-minimal .section-page-layout .section-page-media { margin-right: 36px; }
body.theme-minimal .schedule-list { display: grid; gap: 22px; }
body.theme-minimal .schedule-day { background: var(--editorial-surface); }
body.theme-minimal .schedule-date { font-size: 30px; letter-spacing: -.025em; }
body.theme-minimal .clergy-card { border: 1px solid var(--editorial-rule); background: var(--editorial-surface); }
body.theme-minimal .clergy-panel { box-shadow: none; border-color: var(--editorial-rule); }
@media (max-width: 699px) {
  body.theme-minimal #main-content .section-header { padding-bottom: 22px; margin-bottom: 28px; }
  body.theme-minimal .section-page-layout .section-page-media { margin-right: 0; }
}
body.theme-minimal #main-content > .content-section:not(.classic-section) { padding-block: 44px 64px; }
body.theme-minimal #main-content > .content-section:not(.classic-section) .section-header { max-width: none; margin-bottom: 36px; }
body.theme-minimal #main-content > .content-section:not(.classic-section) .section-title { font-size: clamp(38px, 4.5vw, 60px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
body.theme-minimal .section-page-layout { background: var(--color-background-card, var(--bg)); border: 1px solid var(--editorial-rule); }
body.theme-minimal .modern-section-body .content-block:not(.donations-page-block):not(.zapiski-page):not(.clergy-page-block) { background: var(--color-background-card, var(--bg)); }
@media (min-width: 900px) {
  body.theme-minimal #news .news-card:first-child:not(:has(> img, > .news-carousel)) { grid-column: 1 / -1; padding: 28px 0 36px; border-bottom: 1px solid var(--editorial-rule); }
  body.theme-minimal #news .news-card:first-child:not(:has(> img, > .news-carousel)) .news-card-content { max-width: 780px; }
  body.theme-minimal #news .news-card:first-child:not(:has(> img, > .news-carousel)) .news-card-title { font-size: clamp(32px, 3.1vw, 44px); }
}
@media (max-width: 699px) {
  body.theme-minimal #main-content > .content-section:not(.classic-section) { padding-block: 32px 48px; }
}
/* Original opening screen restored from the pre-redesign backup (2026-10-02).
   Its typography and local container values match that snapshot. */
body.theme-minimal #home-hero {
  --content-width: 1200px;
  --page-gutter: clamp(1rem, 4.5vw, 1.75rem);
  font-size: 18px;
  line-height: 1.6;
}
body.theme-minimal #home-hero .hero-title {
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  text-wrap: wrap;
  overflow-wrap: normal;
}
body.theme-minimal #home-hero .hero-minimal-links[hidden] { display: none; }
