/*
 * MTC Kalamassery: visual details that blocks cannot express on their own.
 * Text, colours, font sizes and spacing live in the blocks and are edited in the page editor.
 */

/* Layout helpers */
.mtc-topbar p, .mtc-footer p { margin-block: 0; }
.mtc-header { position: relative; z-index: 30; }
.mtc-header .wp-block-navigation a, .mtc-footer a, .mtc-topbar a, .mtc-plain-link a { text-decoration: none; }
.mtc-footer a:hover { color: #FFFFFF; }
.mtc-plain-link a { color: inherit; }
.mtc-break { overflow-wrap: anywhere; }
@media (max-width: 781px) { .mtc-hide-mobile { display: none !important; } }

/* Images */
.wp-block-image.mtc-logo, .wp-block-image.mtc-logo-tile, .wp-block-image.mtc-avatar { margin: 0; flex-shrink: 0; }
.wp-block-image.mtc-logo-tile img { background: #FFFFFF; border-radius: 12px; padding: 4px; box-sizing: border-box; }
.wp-block-image.mtc-avatar img { border-radius: 50%; border: 3px solid #C9A55A; background: #FFFFFF; object-position: 50% 20%; box-sizing: border-box; }
.wp-block-image.mtc-arch { margin: 0; padding: 10px; border: 1px solid #C9A55A; border-radius: 220px 220px 14px 14px; background: #2A2F3A; }
.wp-block-image.mtc-arch img { width: 100%; border-radius: 210px 210px 8px 8px; display: block; }

/* Hero */
.mtc-hero { position: relative; overflow: hidden; }
.mtc-hero::before { content: ""; position: absolute; right: -120px; top: -60px; width: 720px; height: 720px; opacity: .09; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 200 200%22 fill=%22none%22 stroke=%22%23E7C980%22 stroke-width=%220.6%22%3E%3Ccircle cx=%22100%22 cy=%22100%22 r=%2296%22/%3E%3Ccircle cx=%22100%22 cy=%22100%22 r=%2280%22/%3E%3Ccircle cx=%22100%22 cy=%22100%22 r=%2264%22/%3E%3Cpath d=%22M100 4v192M4 100h192M32 32l136 136M168 32L32 168%22/%3E%3C/svg%3E") no-repeat center / contain; pointer-events: none; }
.mtc-hero > * { position: relative; }
.mtc-hero-card { position: relative; width: max-content; max-width: 100%; margin: -64px 0 0 -24px !important; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
@media (max-width: 781px) { .mtc-hero-card { margin: -48px 0 0 12px !important; } }
.mtc-icon-tile { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; align-items: center; }
.mtc-icon-tile p { margin: 0; line-height: 1; }

/* Timeline */
.mtc-timeline .mtc-tl-item { position: relative; padding-left: 40px; }
.mtc-timeline .mtc-tl-item::before { content: ""; position: absolute; left: 0; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: #7A1E2C; box-shadow: 0 0 0 6px #EBDDCB; }
.mtc-timeline .mtc-tl-item.is-current::before { background: #C9A55A; box-shadow: 0 0 0 6px #EFE5CF; }

/* Ministry cards: icon chosen by the mtc-ico-* class (Block > Advanced > Additional CSS class) */
.mtc-card::before { content: ""; display: block; width: 32px; height: 32px; margin-bottom: 8px; background-color: #7A1E2C; -webkit-mask: var(--mtc-ico) no-repeat center / contain; mask: var(--mtc-ico) no-repeat center / contain; }
.mtc-ico-book{--mtc-ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2z%22/%3E%3Cpath d=%22M4 19V5M12 7v6M9 10h6%22/%3E%3C/svg%3E")}
.mtc-ico-youth{--mtc-ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%229%22 cy=%228%22 r=%223%22/%3E%3Ccircle cx=%2217%22 cy=%229%22 r=%222.5%22/%3E%3Cpath d=%22M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6M15 14.5c3 0 6 2 6 5.5%22/%3E%3C/svg%3E")}
.mtc-ico-heart{--mtc-ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 21s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 11c0 5.6-7 10-7 10z%22/%3E%3C/svg%3E")}
.mtc-ico-music{--mtc-ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 18V5l11-2v13%22/%3E%3Ccircle cx=%226%22 cy=%2218%22 r=%223%22/%3E%3Ccircle cx=%2217%22 cy=%2216%22 r=%223%22/%3E%3C/svg%3E")}
.mtc-ico-globe{--mtc-ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18%22/%3E%3C/svg%3E")}
.mtc-ico-care{--mtc-ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22M12 7v10M7 12h10%22/%3E%3C/svg%3E")}
.mtc-ico-elder{--mtc-ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%226%22 r=%223%22/%3E%3Cpath d=%22M7 21v-6a5 5 0 0 1 10 0v6M19 13v8M17 13h4%22/%3E%3C/svg%3E")}
.mtc-ico-home{--mtc-ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.6%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 11l9-7 9 7%22/%3E%3Cpath d=%22M5 10v10h14V10%22/%3E%3Cpath d=%22M12 18s-3-1.8-3-4a1.6 1.6 0 0 1 3-.8 1.6 1.6 0 0 1 3 .8c0 2.2-3 4-3 4z%22/%3E%3C/svg%3E")}

/* Friend in Need panel and video */
.mtc-rounded, .mtc-video { overflow: hidden; }

/* Neighbourhood chips */
p.mtc-chip { margin: 0 !important; padding: 12px 22px; border: 1px solid #D6C8AE; border-radius: 999px; background: #FBF8F1; font-size: 15px; font-weight: 600; }

/* Office bearers */
.mtc-bearer:not(:last-child) { padding-bottom: 18px; border-bottom: 1px solid #343A46; }

/* Map */
.mtc-map { margin-top: 24px; height: 380px; border-radius: 18px; overflow: hidden; border: 1px solid #E3D8C3; }
.mtc-map iframe { border: 0; width: 100%; height: 100%; display: block; }

/* Diamond Jubilee */
.mtc-jubilee-video { margin: 0; }
.mtc-jubilee-video .wp-block-embed__wrapper { border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px rgba(28, 31, 38, .22); background: #1C1F26; }
.wp-block-image.mtc-jubilee-logo { margin: 0 0 4px; }
.wp-block-image.mtc-jubilee-logo img { border-radius: 50%; box-shadow: 0 0 0 6px #F6F1E7, 0 0 0 7px #C9A55A; }
