/* Духовенство и храмы благочиния. Colours, type and radii come from the theme «Благовест» tokens; fallbacks keep it readable elsewhere. */

.dc-icon { width: 1em; height: 1em; flex: none; }

/* ---------- Search bar ---------- */
.dc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 4px 0 24px; }
.dc-search { position: relative; flex: 1 1 320px; max-width: 460px; }
.dc-search > .dc-icon { position: absolute; top: 50%; left: 16px; width: 19px; height: 19px; color: var(--muted, #675d51); transform: translateY(-50%); pointer-events: none; }
.dc-search input { width: 100%; min-height: 48px; padding: 10px 48px 10px 46px; border: 1px solid var(--line, #e2d3b3); border-radius: 999px; color: var(--ink, #262019); background: #fff; font: inherit; font-size: 1rem; transition: border-color .2s ease, box-shadow .2s ease; -webkit-appearance: none; appearance: none; }
.dc-search input::-webkit-search-cancel-button { display: none; }
.dc-search input::placeholder { color: #978b7c; }
.dc-search input:hover { border-color: var(--gold, #c9a24f); }
.dc-search input:focus { border-color: var(--gold, #c9a24f); outline: none; box-shadow: 0 0 0 4px rgba(201, 162, 79, .22); }
.dc-search__clear { position: absolute; top: 50%; right: 6px; display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--muted, #675d51); background: transparent; transform: translateY(-50%); cursor: pointer; }
.dc-search__clear:hover, .dc-search__clear:focus-visible { color: var(--wine, #8e2b24); background: var(--cream, #f7efdf); }
.dc-search__clear .dc-icon { width: 17px; height: 17px; }
.dc-search__clear[hidden] { display: none; }
.dc-count { margin: 0; color: var(--muted, #675d51); font-size: .9rem; font-variant-numeric: tabular-nums; }
.dc-empty { margin: 8px 0 0; padding: 22px; border: 1px dashed var(--line, #e2d3b3); border-radius: var(--radius-sm, 12px); color: var(--muted, #675d51); text-align: center; }
.dc-empty[hidden], .dc-grid > [hidden] { display: none; }

/* ---------- Shared grid ---------- */
.dc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 22px 18px; margin: 0; padding: 0; list-style: none; }
.entry-content .dc-grid, .entry-content .dc-grid li { margin-left: 0; padding-left: 0; }
.dc-grid > li::before, .dc-grid > li::marker { content: none; }
.dc-placeholder { background: var(--sand, #efe2c6); }
/* Lists sit inside the theme .entry-content, whose images get margins and rounded corners. */
.entry-content .dc-grid img, .entry-content .dc-modal img { margin: 0; border-radius: 0; }

/* ---------- Clergy card ---------- */
.dc-person__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.dc-person__photo { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius, 18px); background: var(--sand, #efe2c6); box-shadow: 0 1px 0 var(--line-soft, #ece1c9); }
.dc-person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .7s var(--ease-out, ease); }
.dc-person__photo::after { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(38, 32, 25, .08); content: ""; pointer-events: none; }
.dc-person__body { display: grid; gap: 3px; padding: 14px 4px 0; }
.dc-person__san { color: var(--wine, #8e2b24); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.dc-person__name { color: var(--navy, #13304f); font-family: var(--serif, Georgia, serif); font-size: 1.12rem; font-weight: 700; line-height: 1.22; text-wrap: balance; transition: color .2s ease; }
.dc-person__position { margin-top: 4px; color: var(--muted, #675d51); font-size: .88rem; line-height: 1.4; hyphens: auto; }
.dc-person__link:hover .dc-person__photo img, .dc-person__link:focus-visible .dc-person__photo img { transform: scale(1.035); }
.dc-person__link:hover .dc-person__name, .dc-person__link:focus-visible .dc-person__name { color: var(--wine, #8e2b24); }
.dc-person__link:focus-visible { outline: 3px solid var(--gold, #c9a24f); outline-offset: 6px; border-radius: var(--radius, 18px); }

/* The dean opens the list: a wide dark card with the photo on the left. */
.dc-person--lead { grid-column: 1 / -1; }
.dc-person--lead .dc-person__link { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 0; overflow: hidden; border-radius: var(--radius-lg, 28px); color: var(--on-navy, #f6efe1); background: var(--navy, #13304f) radial-gradient(120% 140% at 100% 0%, rgba(201, 162, 79, .22), transparent 55%); box-shadow: var(--shadow, 0 18px 44px -18px rgba(19, 48, 79, .28)); }
.dc-person--lead .dc-person__photo { aspect-ratio: auto; min-height: 280px; border-radius: 0; box-shadow: none; }
.dc-person--lead .dc-person__photo::after { box-shadow: none; }
.dc-person--lead .dc-person__body { align-content: center; gap: 6px; padding: clamp(22px, 3vw, 40px); }
.dc-person--lead .dc-person__san { color: var(--gold-light, #e7c77c); }
.dc-person--lead .dc-person__name { color: var(--on-navy, #f6efe1); font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); line-height: 1.12; }
.dc-person--lead .dc-person__position { max-width: 36ch; color: var(--on-navy-muted, #c9d3de); font-size: 1rem; }
.dc-person__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; color: var(--gold-light, #e7c77c); font-size: .92rem; font-weight: 600; }
.dc-person__more .dc-icon { width: 18px; height: 18px; transition: transform .3s var(--ease-out, ease); }
.dc-person--lead .dc-person__link:hover .dc-person__name, .dc-person--lead .dc-person__link:focus-visible .dc-person__name { color: #fff; }
.dc-person--lead .dc-person__link:hover .dc-person__more .dc-icon { transform: translateX(4px); }
.dc-person--lead .dc-person__link:focus-visible { border-radius: var(--radius-lg, 28px); }

/* ---------- Church card ---------- */
.dc-grid--churches { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.dc-church__link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line-soft, #ece1c9); border-radius: var(--radius, 18px); color: inherit; background: #fff; text-decoration: none; transition: transform .35s var(--ease-out, ease), box-shadow .35s var(--ease-out, ease), border-color .2s ease; }
.dc-church__photo { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand, #efe2c6); }
.dc-church__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out, ease); }
.dc-church__body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 15px 18px 18px; }
.dc-church__place { color: var(--wine, #8e2b24); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.dc-church__title { color: var(--navy, #13304f); font-family: var(--serif, Georgia, serif); font-size: 1.1rem; font-weight: 700; line-height: 1.24; text-wrap: balance; }
.dc-church__address { color: var(--muted, #675d51); font-size: .86rem; line-height: 1.4; }
.dc-church__dependents { color: var(--ink, #262019); font-size: .84rem; line-height: 1.4; }
.dc-church__dependents span { display: block; color: var(--muted, #675d51); font-size: .74rem; }
.dc-church__body > :has(+ .dc-church__rector) { margin-bottom: 8px; }
.dc-church__rector { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft, #ece1c9); color: var(--ink, #262019); font-size: .86rem; line-height: 1.35; }
.dc-church__rector span { display: block; color: var(--muted, #675d51); font-size: .74rem; }
.dc-church__link:hover, .dc-church__link:focus-visible { border-color: var(--line, #e2d3b3); box-shadow: var(--shadow-soft, 0 10px 28px -14px rgba(38, 32, 25, .22)); transform: translateY(-3px); }
.dc-church__link:hover .dc-church__photo img { transform: scale(1.03); }
.dc-church__link:hover .dc-church__title { color: var(--wine, #8e2b24); }

/* ---------- Single pages: shared ---------- */
.dc-section { margin-top: clamp(30px, 4vw, 42px); }
.dc-section__title { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; color: var(--navy, #13304f); font-family: var(--serif, Georgia, serif); font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.dc-section__title::after { flex: 1; height: 1px; background: var(--line-soft, #ece1c9); content: ""; }
.dc-edit { margin: 32px 0 0; font-size: .9rem; }
.dc-profile__photo, .dc-temple__photo { position: relative; display: block; overflow: hidden; padding: 0; border: 1px solid var(--line, #e2d3b3); border-radius: var(--radius, 18px); background: var(--sand, #efe2c6); }
button.dc-profile__photo, button.dc-temple__photo { cursor: zoom-in; }
.dc-profile__photo img, .dc-temple__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out, ease); }
button.dc-profile__photo:hover img, button.dc-temple__photo:hover img { transform: scale(1.02); }

/* ---------- Clergy page ---------- */
.dc-profile__hero { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(22px, 3.4vw, 40px); align-items: center; }
.dc-profile__photo { aspect-ratio: 4 / 5; }
.dc-profile__photo img { object-position: 50% 22%; }
.dc-profile__head .entry-meta a { color: inherit; text-decoration: none; }
.dc-profile__head .entry-meta a:hover { text-decoration: underline; }
.dc-profile__name { margin: 10px 0 0; color: var(--navy, #13304f); font-family: var(--serif, Georgia, serif); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); font-weight: 700; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.dc-profile__position { max-width: 44ch; margin: 14px 0 0; color: var(--ink, #262019); font-size: 1.1rem; line-height: 1.45; }
.dc-profile__extra { display: grid; gap: 7px; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line-soft, #ece1c9); list-style: none; }
.dc-profile__extra li { position: relative; margin: 0; padding-left: 18px; color: var(--muted, #675d51); font-size: .95rem; line-height: 1.4; }
.dc-profile__extra li::before { position: absolute; top: .55em; left: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold, #c9a24f); content: ""; }

.dc-places { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.dc-places li { margin: 0; padding: 0; }
.dc-place__link { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 16px 10px 10px; border: 1px solid var(--line-soft, #ece1c9); border-radius: var(--radius, 18px); color: inherit; background: #fff; text-decoration: none; transition: border-color .2s ease, box-shadow .3s var(--ease-out, ease); }
a.dc-place__link:hover, a.dc-place__link:focus-visible { border-color: var(--line, #e2d3b3); box-shadow: var(--shadow-soft, 0 10px 28px -14px rgba(38, 32, 25, .22)); }
.dc-place__photo { display: block; overflow: hidden; width: 76px; aspect-ratio: 1; border-radius: var(--radius-sm, 12px); background: var(--sand, #efe2c6); }
.dc-place__photo img { width: 100%; height: 100%; object-fit: cover; }
.dc-place__body { display: grid; gap: 2px; }
.dc-place__role { color: var(--wine, #8e2b24); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.dc-place__title { color: var(--navy, #13304f); font-family: var(--serif, Georgia, serif); font-size: 1.1rem; font-weight: 700; line-height: 1.25; }
.dc-place__address { color: var(--muted, #675d51); font-size: .86rem; line-height: 1.35; }
.dc-place__arrow { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: var(--wine, #8e2b24); background: var(--cream, #f7efdf); transition: transform .3s var(--ease-out, ease); }
.dc-place__arrow .dc-icon { width: 18px; height: 18px; }
a.dc-place__link:hover .dc-place__arrow { transform: translateX(3px); }

.dc-facts { display: grid; margin: 0; }
.dc-fact { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 6px 24px; padding: 14px 0; border-bottom: 1px solid var(--line-soft, #ece1c9); }
.dc-fact:first-child { padding-top: 0; }
.dc-fact:last-child { border-bottom: 0; }
.dc-fact dt { display: flex; align-items: flex-start; gap: 10px; color: var(--wine, #8e2b24); font-size: .78rem; font-weight: 600; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; }
.dc-fact__icon { display: grid; flex: none; width: 30px; height: 30px; margin-top: -4px; place-items: center; border-radius: 50%; color: var(--navy, #13304f); background: var(--cream, #f7efdf); }
.dc-fact__icon .dc-icon { width: 16px; height: 16px; }
.dc-fact dd { margin: 0; color: var(--ink, #262019); font-size: 1rem; line-height: 1.55; }
.dc-fact dd p { margin: 0; }
.dc-fact dd p + p { margin-top: 8px; }

.dc-awards { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.dc-awards li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line-soft, #ece1c9); }
.dc-awards li:last-child { border-bottom: 0; }
.dc-awards__year { color: var(--gold-deep, #7f5e1c); font-family: var(--serif, Georgia, serif); font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dc-awards__name { color: var(--ink, #262019); line-height: 1.45; }

/* ---------- Church page ---------- */
/* History under a spoiler: clergy.js folds a long text to its beginning; without JS the whole text stays open. */
.dc-story.is-collapsed .dc-story__text { max-height: 15em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.dc-story__toggle { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; padding: 10px 18px; border: 1px solid var(--line, #e2d3b3); border-radius: 999px; background: var(--cream, #f7efdf); color: var(--navy, #13304f); font: 600 .95rem/1.2 var(--sans, sans-serif); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.dc-story__toggle[hidden] { display: none; }
.dc-story__toggle:hover, .dc-story__toggle:focus-visible { border-color: var(--navy, #13304f); background: var(--navy, #13304f); color: var(--on-navy, #f6efe1); }
.dc-story__toggle svg { width: 18px; height: 18px; transform: rotate(90deg); transition: transform .25s var(--ease-out, ease); }
.dc-story__toggle[aria-expanded="true"] svg { transform: rotate(-90deg); }
.dc-temple__founded { margin: 8px 0 0; color: var(--gold-deep, #8a6a26); font-family: var(--serif, Georgia, serif); font-size: 1.05rem; font-style: italic; }
/* Long church names such as «Богородицерождественская» break with a hyphen instead of widening the page on phones. */
.dc-temple h1 { overflow-wrap: break-word; hyphens: auto; }
.dc-temple__hero { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(22px, 3.4vw, 36px); align-items: start; margin-top: 24px; }
.dc-temple__photo { aspect-ratio: 4 / 3; }
.dc-contacts { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.dc-contacts li { display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 0; }
.dc-contacts__icon { display: grid; flex: none; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: var(--navy, #13304f); background: var(--cream, #f7efdf); }
.dc-contacts__icon .dc-icon { width: 19px; height: 19px; }
.dc-contacts__label { display: block; color: var(--muted, #675d51); font-size: .78rem; line-height: 1.4; }
.dc-contacts__value { display: block; color: var(--ink, #262019); font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
a.dc-contacts__value { color: var(--navy, #13304f); font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; }
a.dc-contacts__value:hover, a.dc-contacts__value:focus-visible { color: var(--wine, #8e2b24); text-decoration: underline; }
/* Actions: the route button takes the whole row, social links share the next one in equal pills of the same height. */
.dc-temple__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin-top: 22px; }
.dc-temple__actions .dc-temple__route { grid-column: 1 / -1; }
.dc-temple__actions .button, .dc-social { min-height: 48px; margin: 0; padding: 11px 20px; font-size: .95rem; line-height: 1.2; }
.dc-temple__actions .button .dc-icon { width: 18px; height: 18px; }
.dc-social { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line, #e2d3b3); border-radius: 999px; color: var(--navy, #13304f); background: #fff; font-weight: 600; text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.dc-map-section { scroll-margin-top: 76px; }
.dc-social .social-icon { width: 18px; height: 18px; }
.dc-social:hover, .dc-social:focus-visible { color: var(--wine, #8e2b24); border-color: var(--gold, #c9a24f); }

/* auto-fit: a single person (or two) stretches across the row instead of leaving empty columns. */
.dc-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.dc-people li { margin: 0; padding: 0; }
.dc-mini { display: flex; align-items: center; gap: 14px; height: 100%; padding: 10px 14px 10px 10px; border: 1px solid var(--line-soft, #ece1c9); border-radius: var(--radius, 18px); color: inherit; background: #fff; text-decoration: none; transition: border-color .2s ease, box-shadow .3s var(--ease-out, ease); }
.dc-mini:hover, .dc-mini:focus-visible { border-color: var(--line, #e2d3b3); box-shadow: var(--shadow-soft, 0 10px 28px -14px rgba(38, 32, 25, .22)); }
.dc-mini__photo { display: block; flex: none; overflow: hidden; width: 64px; height: 64px; border-radius: 50%; background: var(--sand, #efe2c6); }
.dc-mini__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.dc-mini__body { display: grid; gap: 2px; }
.dc-mini__role { color: var(--wine, #8e2b24); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.dc-mini__name { color: var(--navy, #13304f); font-family: var(--serif, Georgia, serif); font-size: 1rem; font-weight: 700; line-height: 1.25; }
.dc-mini:hover .dc-mini__name { color: var(--wine, #8e2b24); }

.dc-related { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dc-related li { margin: 0; padding: 0; }
.dc-related a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line, #e2d3b3); border-radius: 999px; color: var(--navy, #13304f); background: #fff; font-weight: 600; text-decoration: none; }
.dc-related a:hover, .dc-related a:focus-visible { color: var(--wine, #8e2b24); border-color: var(--gold, #c9a24f); }
.dc-related__place { color: var(--muted, #675d51); font-size: .82rem; font-weight: 500; }
.dc-related__place::before { margin-right: 6px; content: "·"; }
.dc-related .dc-icon { width: 18px; height: 18px; color: var(--gold-deep, #7f5e1c); }

.dc-map { overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line, #e2d3b3); border-radius: var(--radius, 18px); background: var(--sand, #efe2c6); }
.dc-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.dc-map { position: relative; }
.dc-map--theme, .dc-map.dc-map--theme { height: clamp(410px, 52vw, 460px); aspect-ratio: auto; }
.dc-map--theme .site-map { position: absolute; inset: 0; min-height: 0; }

/* ---------- Narrow screens ---------- */
/* Pop-up clergy card on the list page. The dialog covers the screen and scrolls; the box sits in the middle. */
.dc-modal-open { overflow: hidden; }
.dc-modal { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: clamp(16px, 4vh, 48px) 16px; overflow-y: auto; overscroll-behavior: contain; border: 0; background: transparent; color: var(--ink, #262019); }
.dc-modal::backdrop { background: rgba(10, 24, 41, .62); backdrop-filter: blur(3px); }
.dc-modal[open] .dc-modal__box { animation: dc-modal-in .32s var(--ease-out, ease) both; }
.dc-modal[open]::backdrop { animation: dc-fade-in .25s ease both; }
.dc-modal__box { position: relative; width: min(100%, 860px); margin: 0 auto; padding: clamp(22px, 4vw, 44px); border-radius: var(--radius-lg, 28px); background: var(--paper, #fffaf0); box-shadow: 0 30px 80px rgba(10, 24, 41, .35); }
.dc-modal__close { position: sticky; z-index: 2; top: 0; display: grid; width: 44px; height: 44px; margin: calc(clamp(22px, 4vw, 44px) * -1 + 12px) calc(clamp(22px, 4vw, 44px) * -1 + 12px) -32px auto; place-items: center; padding: 0; border: 1px solid var(--line, #e2d3b3); border-radius: 50%; background: var(--paper, #fffaf0); color: var(--navy, #13304f); cursor: pointer; transition: background .2s ease, color .2s ease; }
.dc-modal__close:hover, .dc-modal__close:focus-visible { background: var(--navy, #13304f); color: var(--on-navy, #f6efe1); }
.dc-modal__close svg { width: 20px; height: 20px; }
.dc-modal__status { margin: 0; padding: 80px 0; color: var(--muted, #675d51); text-align: center; }
.dc-profile--modal .dc-profile__head { padding-right: 36px; }
.dc-profile__page { margin: clamp(28px, 4vw, 38px) 0 0; }
.dc-profile__page .button { display: inline-flex; gap: 6px; align-items: center; }
.dc-profile__page svg { width: 18px; height: 18px; }
@keyframes dc-modal-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes dc-fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 980px) {
    .dc-temple__hero { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
}
@media (max-width: 700px) {
    /* One column on phones: each person is a row with the photo on the left, so names and positions stay readable. */
    .dc-grid { grid-template-columns: 1fr; gap: 12px; }
    .dc-person:not(.dc-person--lead) .dc-person__link { flex-direction: row; align-items: center; gap: 16px; padding: 10px 14px 10px 10px; border: 1px solid var(--line-soft, #ece1c9); border-radius: var(--radius, 18px); background: #fff; }
    .dc-person:not(.dc-person--lead) .dc-person__photo { flex: none; width: 104px; border-radius: var(--radius-sm, 12px); }
    .dc-person:not(.dc-person--lead) .dc-person__body { min-width: 0; padding: 0; }
    .dc-person__name { font-size: 1.08rem; }
    .dc-person__position { font-size: .86rem; }
    .dc-person--lead .dc-person__link { grid-template-columns: minmax(0, 132px) minmax(0, 1fr); border-radius: var(--radius, 18px); }
    .dc-person--lead .dc-person__photo { min-height: 190px; }
    .dc-person--lead .dc-person__body { padding: 16px; }
    .dc-person--lead .dc-person__name { font-size: 1.2rem; }
    .dc-person--lead .dc-person__position { font-size: .88rem; }
    .dc-church__link { flex-direction: row; }
    .dc-church__photo { flex: none; width: 104px; aspect-ratio: auto; }
    .dc-church__body { padding: 12px 14px; }
    .dc-church__title { font-size: 1rem; }
    .dc-profile__hero { grid-template-columns: 1fr; }
    .dc-profile__photo { width: min(62vw, 240px); }
    .dc-temple__hero { grid-template-columns: 1fr; }
    .dc-fact { grid-template-columns: 1fr; }
    .dc-place__link { grid-template-columns: 60px minmax(0, 1fr); padding-right: 14px; }
    .dc-place__photo { width: 60px; }
    .dc-place__arrow { display: none; }
    .dc-map { aspect-ratio: 4 / 3; }
}
@media (max-width: 380px) {
    .dc-person--lead .dc-person__link { grid-template-columns: 1fr; }
    .dc-person--lead .dc-person__photo { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
    .dc-modal[open] .dc-modal__box, .dc-modal[open]::backdrop { animation: none; }
    .dc-person__photo img, .dc-church__photo img, .dc-church__link, .dc-profile__photo img, .dc-temple__photo img { transition: none; }
}

/* Church gallery: the theme styles of the core gallery; the photo fills its cropped cell. */
.dc-gallery-section .entry-content > .dc-gallery { margin-top: 0; }
.dc-gallery figure.wp-block-image a { display: block; height: 100%; }
.dc-gallery figure.wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* «Престолы и святыни»: the feast of the main altar, side altars with their dates, shrines, the charter. */
.dc-altars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.dc-altars li { display: grid; align-content: start; gap: 6px; margin: 0; padding: 16px 18px; border: 1px solid var(--line-soft, #ece1c9); border-radius: var(--radius-sm, 14px); background: var(--paper, #fffaf1); }
.dc-altars li.dc-altars__main { grid-column: 1 / -1; padding: 20px 22px; border-color: transparent; color: var(--on-navy, #e9eef5); background: var(--navy, #13304f) radial-gradient(120% 160% at 100% 0%, rgba(201, 162, 79, .22), transparent 55%); }
.dc-altars__kind { color: var(--wine, #8e2b24); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dc-altars__main .dc-altars__kind { color: var(--gold-light, #e7c77c); }
.dc-altars__name { color: var(--navy, #13304f); font-family: var(--serif, Georgia, serif); font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.dc-altars__main .dc-altars__name { color: #fff; font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem); }
.dc-altars__date { display: inline-flex; align-items: center; gap: 7px; justify-self: start; margin-top: 4px; padding: 4px 11px 4px 9px; border-radius: 999px; color: var(--gold-deep, #7f5e1c); background: var(--cream, #f7efdf); font-size: .86rem; font-weight: 600; line-height: 1.3; }
.dc-altars__main .dc-altars__date { color: var(--navy, #13304f); background: var(--gold-light, #e7c77c); }
.dc-altars__date .dc-icon { flex: none; width: 16px; height: 16px; }
.dc-shrines { margin-top: 16px; padding: 18px 22px 20px; border-radius: var(--radius-sm, 14px); background: var(--cream, #f7efdf); }
.dc-shrines__title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--navy, #13304f); font-family: var(--serif, Georgia, serif); font-size: 1.1rem; }
.dc-shrines__title .dc-icon { width: 20px; height: 20px; color: var(--gold-deep, #7f5e1c); }
.dc-shrines ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.dc-shrines li { position: relative; margin: 0; padding-left: 20px; line-height: 1.45; }
.dc-shrines li::before { position: absolute; top: .55em; left: 2px; width: 7px; height: 7px; background: var(--gold, #c9a24f); transform: rotate(45deg); content: ""; }
.dc-charter { display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; gap: 14px; align-items: center; margin-top: 16px; padding: 14px 18px 14px 14px; border: 1px solid var(--line-soft, #ece1c9); border-radius: var(--radius-sm, 14px); color: var(--navy, #13304f); background: var(--paper, #fffaf1); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
.dc-charter:hover, .dc-charter:focus-visible { border-color: var(--gold, #c9a24f); box-shadow: var(--shadow-soft, 0 8px 24px rgba(19, 48, 79, .08)); }
.dc-charter__icon { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(201, 162, 79, .5); border-radius: 50%; color: var(--gold-deep, #7f5e1c); background: var(--cream, #f7efdf); }
.dc-charter__icon .dc-icon { width: 20px; height: 20px; }
.dc-charter__title { display: block; font-weight: 700; }
.dc-charter__note { display: block; color: var(--muted, #6b6457); font-size: .86rem; }
.dc-charter > .dc-icon { width: 18px; height: 18px; color: var(--gold-deep, #7f5e1c); }
@media (max-width: 640px) { .dc-shrines ul { grid-template-columns: minmax(0, 1fr); } }
