/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/manrope-1.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/manrope-2.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/manrope-3.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/manrope-4.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/manrope-5.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/manrope-6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Shared warm palette: bronze details echo the cross; darker accents keep text readable. */
:root{--site-header-height:4rem;--paper:#fff;--soft:#f8f5ef;--ink:#292622;--muted:#6c645a;--line:#e9e2d8;--accent:#76552f;--accent-strong:#5d4022;--bronze:#9a743c;--text:#514a42;--reading-ink:#3e3933;--surface:#fcfbf8;--surface-raised:#f4efe7;--surface-hover:#eee5d8;--line-strong:#d5c6b1;--line-hover:#ac9270;--sans:Manrope,'Segoe UI',Arial,sans-serif;--serif:Georgia,'Times New Roman',serif;--reader:var(--sans);--reader-size:22px;--width:1160px;color-scheme:light}*{box-sizing:border-box}html{scroll-padding-top:35px}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.7 var(--sans);-webkit-font-smoothing:antialiased}h1,h2,h3,p,figure,dl{margin:0}h1,h2,h3{line-height:1.16;letter-spacing:-.045em;font-weight:600;text-wrap:balance}h1{font-size:clamp(38px,4.5vw,64px)}h2{font-size:30px}h3{font-size:22px}a{color:inherit;text-decoration:none}a:hover{color:var(--accent)}img{display:block;max-width:100%;height:auto}button,input,select{font:inherit;color:inherit}button,summary{cursor:pointer}button,a{touch-action:manipulation}button:disabled{opacity:.35;cursor:default}a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:5px}[hidden]{display:none!important}::selection{background:var(--ink);color:var(--paper)}.frame,.shell{width:min(var(--width),calc(100% - 80px));margin-inline:auto}.reading-frame{width:min(740px,calc(100% - 48px));margin-inline:auto}.skip-link{position:fixed;left:20px;top:-100px;z-index:100;background:var(--ink);color:#fff;padding:12px 20px}.skip-link:focus{top:10px}.wordmark{display:inline-flex;align-items:center;gap:11px;font-size:23px;font-weight:650;line-height:1.3;letter-spacing:-.045em}.wordmark img{width:20px;height:26px;object-fit:contain}.site-top{height:var(--site-header-height);display:flex;justify-content:space-between;align-items:center;gap:30px}.site-top nav{display:flex;gap:32px;font-size:14px}.site-top nav a{position:relative;padding-block:12px}
.site-top nav a::after{content:"";position:absolute;inset-inline:0;bottom:6px;height:2px;border-radius:2px;background:var(--bronze);pointer-events:none;transform:scaleX(0);transform-origin:center;transition:transform .22s ease}
.site-top nav a:focus-visible::after{transform:scaleX(1)}
@media(hover:hover) and (pointer:fine){.site-top nav a:hover::after{transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){.site-top nav a::after{transition:none}}
/* Compact footer shares the page surface; translucent contact cards carry the accents. */
.site-bottom{padding:0;background:transparent;color:var(--muted);font-size:13px}
.site-bottom-inner{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-block:20px;border-top:1px solid var(--line)}
.site-bottom-contacts{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.site-bottom-contacts :is(a,button){display:inline-flex;align-items:center;gap:10px;min-height:44px;max-width:100%;padding:10px 14px;border:1px solid #76552f1f;border-radius:12px;background:#76552f0a;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:var(--text);font-size:14px;line-height:1.5;transition:background .18s,border-color .18s}
.site-bottom-contacts svg{flex:none;color:#4b3b2b}
.site-bottom-contacts :is(a,button):hover{color:var(--accent-strong);background:#76552f12;border-color:#76552f3d}
.site-bottom-contacts :is(a,button):hover span{text-decoration:underline;text-underline-offset:4px;text-decoration-color:currentColor}
.site-bottom-contacts :is(a,button):focus-visible{outline-color:var(--accent)}
.primary{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:14px 25px;background:var(--accent);color:#fff;border-radius:9px;font-size:15px;font-weight:600;line-height:1.5;gap:22px}.primary:hover{color:#fff;filter:brightness(.93)}.quiet-link{display:inline-block;color:var(--ink);font-size:14px;padding:10px 0;text-decoration:underline;text-underline-offset:5px;text-decoration-color:var(--line)}.quiet-link:hover{text-decoration-color:var(--accent)}.back{padding-block:20px 32px;font-size:13px;color:var(--muted)}.person-title h1{margin:12px 0 15px}.person-years{font-size:12px;color:var(--muted)}.person-title>p{font-size:21px;color:var(--muted)}.person-intro{font-size:19px;line-height:1.85;color:var(--muted)}.person-picture img{object-fit:contain;width:100%;height:auto}.person-picture figcaption{font-size:11px;line-height:1.7;color:var(--muted);margin-top:13px}.person-materials>h2{font-size:25px;margin-bottom:15px}.material-list>a{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 0;border-bottom:1px solid var(--line)}.material-list h3{font-size:21px;letter-spacing:-.025em;line-height:1.4}.material-list p{font-size:14px;color:var(--muted);line-height:1.7;margin-top:8px}.material-list>a>span{font-size:22px;font-weight:400;flex-shrink:0}.material-list>a:hover h3{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
/* Quiet reading primitives; each variant composes them differently. */
.read-back{font-size:13px;color:var(--muted);margin-bottom:30px}.article-heading{margin-bottom:35px}.article-heading h1{margin:14px 0 20px}.article-heading>.eyebrow{font-size:12px;color:var(--muted)}.article-heading>p:not(.eyebrow){font-size:18px;color:var(--muted);line-height:1.8}.read-controls{display:flex;align-items:start;justify-content:space-between;gap:25px;padding:14px 0;border-top:1px solid var(--line)}.reader-controls{display:flex;gap:3px;align-items:center;flex-shrink:0}.reader-controls button{background:transparent;border:0;border-radius:5px;padding:9px 10px;min-width:38px;min-height:40px;font-size:13px}.reader-controls button:hover{background:var(--soft)}.reader-controls .print-button{font-size:12px;margin-left:6px}.reader-contents,.other-sections{font-size:13px;line-height:1.75;color:var(--muted)}.reader-contents summary,.other-sections summary{min-height:42px;padding:10px 0;font-size:13px;font-weight:500;color:var(--ink)}.reader-contents ol{margin:10px 0 20px;padding-left:20px}.reader-contents li{padding-left:4px;margin:0 0 12px}.reader-contents a.active{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.reader-contents summary span{display:none}.other-sections{border-top:1px solid var(--line)}.other-sections nav a{display:block;padding:6px 0}.other-sections a[aria-current]{font-weight:600;color:var(--ink)}.reading-progress{height:2px;background:var(--line);margin-bottom:32px}.reading-progress span{height:2px;display:block;background:var(--accent);width:0}.reading-text,.prose{font:var(--reader-size)/1.9 var(--reader);overflow-wrap:anywhere}.reading-text p,.prose p{margin:0 0 1.25em}.reading-text h2,.prose h2{font:600 1.35em/1.4 var(--sans);margin:2.3em 0 .9em;scroll-margin-top:35px;letter-spacing:-.025em}.reading-text h3,.prose h3{font:600 1.1em/1.5 var(--sans);margin:1.8em 0 .7em}.reading-text h2:first-child{margin-top:0}.source-note{font:12px/1.9 var(--sans)!important;color:var(--muted);margin-bottom:22px!important;padding-left:15px;border-left:1px solid var(--line)}.article-source{border-top:1px solid var(--line);margin-top:50px;padding:25px 0;font-size:13px;color:var(--muted);line-height:1.9}.article-source p{margin:10px 0}.article-source a{text-decoration:underline;text-underline-offset:4px}.eyebrow{font-size:12px;font-weight:500;letter-spacing:0}.next-reading{display:grid;grid-template-columns:1fr 30px;gap:10px 20px;padding:25px 0;margin-bottom:25px;border-top:1px solid var(--line)}.next-reading .eyebrow{grid-column:1/-1;color:var(--muted)}.next-reading strong{font-size:22px;font-weight:600;line-height:1.4;letter-spacing:-.025em}
/* Archive pages retain every caption and link to its source. */
.breadcrumbs{display:flex;flex-wrap:wrap;gap:15px;font-size:12px;color:var(--muted);padding-block:20px 35px}.gallery-page .article-heading,.about-page .article-heading{max-width:var(--width);padding-bottom:20px}.gallery-page .article-heading h1,.about-page .article-heading h1{font-size:46px}.gallery-page .article-heading>p{max-width:780px}.gallery-wrap{padding-bottom:65px}.gallery-group{margin-bottom:50px}.gallery-group>h2{font-size:25px;font-weight:500;margin-bottom:25px}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:35px}.gallery-open{display:block;position:relative;background:var(--soft);border-radius:8px;padding:20px}.gallery-open img{width:100%;height:330px;object-fit:contain}.zoom-icon{position:absolute;bottom:14px;right:14px;display:grid;place-items:center;width:30px;height:30px;background:#fff;border-radius:50%;font-size:19px}.gallery-item figcaption{font-size:12px;color:var(--muted);line-height:1.8;margin-top:14px}.image-source{display:block;text-decoration:underline;text-underline-offset:3px;margin-top:6px}.gallery-note{font-size:13px;color:var(--muted)}.about-page .prose{max-width:760px;margin:0 auto 65px}.about-page .prose a{text-decoration:underline;text-underline-offset:4px}.about-page .source-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}.about-page .source-card{padding-block:20px}.about-page .about-body{padding-bottom:65px}
@media(max-width:1000px){.frame,.shell{width:calc(100% - 56px)}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.frame,.shell{width:calc(100% - 36px)}.reading-frame{width:calc(100% - 36px)}.site-top{gap:18px}.wordmark{font-size:21px;gap:8px}.wordmark img{width:16px;height:23px}.site-top nav{gap:17px;font-size:11px}.site-bottom{font-size:12px}.site-bottom-inner{align-items:flex-start;flex-direction:column;gap:14px;padding-block:18px}.site-bottom-contacts{align-items:flex-start;gap:10px;width:100%}h1{font-size:38px}.person-title h1{font-size:37px}.person-title>p{font-size:19px}.person-intro{font-size:17px;line-height:1.85}.person-materials>h2{font-size:23px}.material-list h3{font-size:20px}.material-list p{font-size:13px}.material-list>a{gap:15px;padding-block:20px}.read-back{margin-bottom:25px}.article-heading h1{font-size:38px}.article-heading>p:not(.eyebrow){font-size:17px}.article-heading>.eyebrow{font-size:11px}.read-controls{gap:10px}.reader-controls{gap:0}.reader-controls button{min-width:33px;padding:9px 8px}.reader-controls .print-button{margin-left:0}.reader-contents,.other-sections{font-size:13px}.reading-text,.prose{line-height:1.85}.reading-text h2{font-size:1.2em}.source-note{font-size:11px!important}.gallery-page .article-heading h1,.about-page .article-heading h1{font-size:37px}.gallery-grid{grid-template-columns:1fr}.gallery-open img{height:auto;max-height:500px}.gallery-group>h2{font-size:24px}.about-page .prose{max-width:calc(100% - 36px)}.about-page .source-grid{grid-template-columns:1fr}.back{padding-top:10px;padding-bottom:25px}}
@media print{.site-bottom{background:#fff;color:var(--ink)}.site-bottom-contacts :is(a,button),.site-bottom-contacts svg{color:var(--ink)}.site-top,.site-bottom,.reading-text{font:12pt/1.6 Georgia!important}body{background:#fff!important;color:#000!important}.read-names,.read-collection{display:block!important;width:100%!important}.read-names>aside{position:static!important;max-height:none!important}.read-focus{border:0!important;box-shadow:none!important;padding:0!important}.article-heading h1{font-size:28pt!important}}

/* Keep the person being read visible under the mobile wordmark. */
.wordmark-profile{display:none}
@media(max-width:700px){
  .wordmark-profile{display:block;margin-top:3px;position:relative;top:-1px;color:var(--accent);font-size:11px;font-weight:500;line-height:1.35;letter-spacing:0;white-space:nowrap}
}

.space-hero{text-align:center;padding:65px 0 70px}.space-hero h1{font-size:clamp(48px,5.6vw,77px);font-weight:650;line-height:1.1;letter-spacing:-.055em}.space-hero>p{font-size:19px;max-width:610px;margin:24px auto 32px;color:var(--muted)}.space-people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:45px;padding-block:15px 65px;max-width:1050px}.space-person{text-align:center;padding:15px 15px 25px;border-radius:12px}.space-person:hover{background:var(--soft)}.space-person>.catalog-portrait{width:180px;height:180px;overflow:hidden;border-radius:50%;margin:0 auto 24px}.catalog-portrait>img{width:100%;height:100%;object-fit:cover;transform:scale(var(--portrait-zoom,1));transform-origin:var(--portrait-origin,50% 50%)}.space-person h2{font-size:23px;line-height:1.3;letter-spacing:-.035em}.space-person p{font-size:13px;color:var(--muted);margin-top:8px}.space-person>span{display:block;font-size:12px;margin-top:21px;color:var(--accent)}.space-person b{font-weight:400;margin-left:10px}.profile-space{max-width:780px;text-align:center;padding-top:10px;padding-bottom:65px}.profile-space>.person-picture{margin:0 auto 30px;max-width:320px}.profile-space>.person-picture img{width:150px;height:150px;object-fit:cover;border-radius:50%;margin:auto}.profile-space>.person-picture figcaption{font-size:10px;margin:13px auto 0;max-width:300px}.profile-space h1{font-size:50px}.profile-space>.person-intro{max-width:650px;margin:28px auto 50px}.profile-space .person-materials{text-align:left}.profile-space .material-list>a{padding:23px 20px;border-radius:7px;border-bottom:0;background:var(--soft);margin-top:9px}.profile-space .material-list p{font-size:13px}.read-space{padding:25px 0 70px}.read-space .article-heading{text-align:center;margin-bottom:42px}.read-space .article-heading h1{font-size:55px}.read-space .article-heading>p{max-width:650px;margin-inline:auto}.read-space .read-back{text-align:center}.read-space .reader-contents{flex:1}.read-space .read-controls{position:relative}.read-space .reading-text{padding-top:5px}
@media(max-width:900px){.space-hero{padding:45px 0 50px}.space-people{gap:20px}.space-person h2{font-size:21px}}
@media(max-width:700px){.space-hero{padding:40px 0 44px}.space-hero h1{font-size:43px}.space-hero>p{font-size:16px;margin:22px auto 27px;max-width:310px}.space-people{display:block;padding-top:0;padding-bottom:40px}.space-person{display:grid;grid-template-columns:104px minmax(0,1fr);gap:5px 16px;text-align:left;padding:22px 5px}.space-person>.catalog-portrait{grid-column:1;grid-row:1/4;width:104px;height:104px;margin:0;align-self:center}.space-person h2{font-size:22px}.space-person p{margin:0;font-size:12px}.space-person>span{margin:8px 0 0;font-size:11px}.profile-space h1{font-size:37px}.profile-space>.person-picture img{width:120px;height:120px}.profile-space>.person-intro{margin-block:24px 40px}.profile-space .material-list>a{padding:20px 16px}.read-space{padding-top:15px}.read-space .article-heading h1{font-size:40px}.read-space .article-heading{margin-bottom:30px}}

/* Approved introductory copy replaces the short slogan and action button. */
.back-link{display:inline-flex;align-items:center;gap:7px;max-width:100%;min-height:44px;padding:10px 0;border-radius:3px;color:var(--muted);font-size:14px;font-weight:500;line-height:1.5}
.back-link svg{width:16px;height:16px;stroke-width:1.6;flex-shrink:0}
.back-link:hover{color:var(--accent)}
.back-link:hover span{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.back-link:focus-visible{outline-width:2px;outline-offset:4px}
@media(max-width:700px){.site-top{gap:12px}.site-top nav{font-size:13px;gap:16px;white-space:nowrap}}
@media(max-width:360px){.site-top{gap:6px}.site-top .wordmark{font-size:19px;gap:6px}.site-top nav{font-size:12px;gap:10px}}
@media(max-width:299px){:root{--site-header-height:6rem}.site-top{flex-direction:column;justify-content:center;gap:0}}
.space-hero{padding:38px 0 54px}
.space-hero h1{max-width:1040px;margin-inline:auto;font-size:clamp(38px,4.7vw,64px);letter-spacing:-.045em;text-wrap:balance}
.home-introduction{max-width:820px;margin:24px auto 0;font-size:17px;line-height:1.8;text-align:center;text-wrap:pretty;color:var(--reading-ink)}
.home-intro-rest{margin-top:12px}
.home-intro-rest p+p{margin-top:12px}
.home-introduction strong{font-weight:700;color:var(--ink)}
.home-intro-toggle{display:inline-flex;align-items:center;gap:11px;min-height:44px;margin-top:3px;padding:8px 0;border:0;border-radius:3px;background:none;color:var(--accent);font:inherit;font-size:14px;font-weight:600;line-height:1.5;cursor:pointer}
.home-intro-toggle:hover span{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.home-intro-toggle:focus-visible{outline-width:2px;outline-offset:4px}
.home-intro-toggle[aria-expanded="true"] .disclosure-chevron{transform:rotate(225deg);margin-top:4px}
.space-people{padding-top:12px}
.editor-note,.download-box{font-size:16px;line-height:1.8;padding:20px;margin-bottom:26px;background:var(--soft);border-radius:7px}
.download-box a{display:inline-block;text-decoration:underline;text-underline-offset:4px;margin:12px 16px 0 0}
.download-box h2{font-size:23px;margin-bottom:10px}
.about-grid>aside{max-width:760px;margin:0 auto 40px}
.about-grid>aside .caption{font-size:12px;color:var(--muted);margin-top:10px}
@media(max-width:700px){.space-hero{padding:22px 0 32px}.space-hero h1{font-size:36px;line-height:1.15;letter-spacing:-.04em}.home-introduction{margin-top:20px;font-size:16px;line-height:1.7}}

/* An editorial grid gives the archive story and FAQ a shared visual rhythm. */
.home-information{padding-block:10px 84px}
.home-about,.home-faq{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.5fr);gap:clamp(32px,4vw,64px);padding:48px}
.home-about{background:var(--soft);border:1px solid var(--line);border-radius:24px}
.home-section-heading{min-width:0}
.home-section-heading h2{font-size:clamp(28px,2.6vw,34px);font-weight:650;line-height:1.25;letter-spacing:-.04em;text-wrap:balance;margin:0}
.home-section-label{display:flex;align-items:center;gap:12px;margin:0 0 24px;color:var(--accent);font-size:13px;font-weight:650;letter-spacing:.04em}
.home-section-label:before{content:"";width:28px;height:2px;background:var(--bronze);flex-shrink:0}
.home-about-body,.home-faq-body{min-width:0}
.home-copy,.faq-answer{font-size:16px;line-height:1.85;color:var(--text);overflow-wrap:break-word}
.home-copy p+p,.faq-answer p+p{margin-top:18px}
.home-copy h3{font-size:22px;font-weight:650;line-height:1.4;letter-spacing:-.025em;color:var(--ink);margin:32px 0 12px;text-wrap:balance}
.home-copy a,.faq-answer a{color:#245cac;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.home-copy a:hover,.faq-answer a:hover{color:#163e79;text-decoration-thickness:2px}
.home-collection-invite{margin-top:28px;padding-top:24px;border-top:1px solid var(--line-strong)}
.home-copy .home-collection-invite h3{margin:0 0 10px;font-size:21px;line-height:1.4}
.home-collection-invite p{font-size:15px;line-height:1.75}
.home-collection-invite .site-bottom-contacts{margin-top:18px}
.home-collection-invite .site-bottom-contacts a{color:var(--text);text-decoration:none}
.home-collection-invite .site-bottom-contacts a:hover{color:var(--accent-strong)}
.home-more-button{display:flex;align-items:center;justify-content:center;gap:14px;min-height:48px;max-width:100%;padding:11px 20px;margin:26px 0 0;border:1px solid var(--line-strong);border-radius:999px;background:transparent;color:var(--accent);font:inherit;font-size:14px;font-weight:650;line-height:1.5;cursor:pointer;transition:background .18s,border-color .18s}
.home-more-button:hover{background:var(--surface-hover);border-color:var(--line-hover)}
.disclosure-chevron{width:7px;height:7px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin-top:-4px;flex-shrink:0}
.home-more-button[aria-expanded="true"] .disclosure-chevron{transform:rotate(225deg);margin-top:4px}
.home-faq{margin-top:28px;padding-block:48px 0}
.home-faq .home-section-heading:before{content:"";display:block;width:28px;height:2px;margin:5px 0 24px;background:var(--bronze)}
.home-section-hint{margin-top:20px;font-size:14px;line-height:1.75;color:var(--muted)}
.faq-list{border:1px solid var(--line);border-radius:18px;background:#fff;overflow:hidden}
.faq-item{scroll-margin-top:24px;border-radius:0;transition:background .18s}
.faq-list>.faq-item+.faq-item,.faq-list>div>.faq-item{border-top:1px solid var(--line)}
.faq-item[open]{background:var(--soft)}
.faq-item>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:84px;padding:23px 24px;cursor:pointer;font-size:16px;font-weight:650;line-height:1.5;letter-spacing:-.015em}
.faq-item>summary>h3{display:flex;align-items:center;justify-content:space-between;gap:inherit;flex:1;min-width:0;margin:0;font:inherit;letter-spacing:inherit;text-wrap:initial}
.faq-item>summary::-webkit-details-marker{display:none}
.faq-item>summary:hover{color:var(--accent)}
.faq-item>summary:focus-visible{outline-offset:-5px;border-radius:12px}
.faq-chevron{position:relative;width:30px;height:30px;border-radius:50%;background:var(--surface-raised);color:var(--accent);flex-shrink:0;transition:background .18s}
.faq-chevron:before,.faq-chevron:after{content:"";position:absolute;inset:50% auto auto 50%;width:10px;height:1.5px;border-radius:1px;background:currentColor;transform:translate(-50%,-50%)}
.faq-chevron:after{transform:translate(-50%,-50%) rotate(90deg)}
.faq-item[open] .faq-chevron{background:var(--surface-hover)}
.faq-item[open] .faq-chevron:after{display:none}
.faq-answer{padding:0 24px 25px;font-size:16px;line-height:1.85}
.home-faq-body>.home-more-button{margin-top:20px}
@media(max-width:1000px){.home-about,.home-faq{padding-inline:32px;gap:32px;grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr)}.home-section-heading h2{font-size:28px}}
@media(max-width:800px){.home-about,.home-faq{grid-template-columns:1fr;gap:28px}.home-section-heading h2{max-width:540px;font-size:30px;text-wrap:initial}.home-about{padding-block:32px}.home-section-label{margin-bottom:18px}.home-faq .home-section-heading:before{margin-bottom:20px}.home-section-hint{margin-top:14px}.home-section-hint br{display:none}}
@media(max-width:500px){.home-information{padding-block:8px 48px}.home-about{padding:26px 22px;border-radius:18px}.home-faq{padding:36px 0 0;margin-top:14px;gap:24px}.home-section-heading h2{font-size:27px;line-height:1.3}.home-copy,.faq-answer{font-size:16px;line-height:1.8}.home-copy h3{font-size:21px}.home-section-label{font-size:12px}.faq-item>summary{padding:20px 18px;min-height:80px;gap:14px;font-size:16px}.faq-answer{padding:0 18px 22px}.faq-chevron{width:28px;height:28px}.home-more-button{padding-inline:18px}.home-faq-body>.home-more-button{margin-inline:auto}}
@media(prefers-reduced-motion:reduce){.home-more-button,.faq-item,.faq-chevron{transition:none}}
@media print{#vstup-povnistiu[hidden],#pro-proiekt-dokladnishe[hidden],#bilshe-zapytan[hidden]{display:block!important}.home-intro-toggle,.home-more-button,.home-section-hint{display:none!important}.home-introduction{background:none;border:0;padding:0}.home-about,.home-faq{display:block;padding:20px 0;background:none;border:0}.home-section-heading{margin-bottom:20px}.faq-item{break-inside:avoid}}

/* A wider white reading column across all elders' long-form materials. */
.read-space.reading-frame{width:min(880px,calc(100% - 64px))}
.read-space .reading-text{line-height:1.85;color:var(--reading-ink)}
.read-space .reading-text h2{font-weight:700;line-height:1.35;margin-top:2em}
.read-space .article-heading h1{font-size:clamp(36px,4.2vw,52px);font-weight:700}
@media(max-width:700px){.read-space.reading-frame{width:calc(100% - 36px)}.read-space .reading-text{line-height:1.8}}

/* Catalog names and verified dates / places of burial. */
.space-people{max-width:1120px;column-gap:32px}
.space-person h2{font-size:25px;font-weight:700;line-height:1.3;text-wrap:balance}
.space-person h2{transition:color .16s ease}
.space-person:hover h2,.space-person:focus-visible h2{color:#9a511f}
@media(prefers-reduced-motion:reduce){.space-person h2{transition:none}}
.space-person .catalog-name{font-size:14px;font-weight:650;line-height:1.5;color:var(--text);margin-top:9px}
.space-person .catalog-meta{font-size:13px;font-weight:400;line-height:1.6;color:var(--muted);margin-top:7px;text-wrap:balance}
.space-person>span{margin-top:18px}
@media(min-width:701px) and (max-width:1199px){.space-people{column-gap:20px}.space-person h2{font-size:23px;min-height:2.6em}}
@media(max-width:700px){.space-person h2{font-size:23px}.space-person .catalog-name{font-size:13px;margin-top:1px}.space-person .catalog-meta{font-size:12px;margin-top:3px;text-wrap:initial}.space-person>.catalog-portrait{grid-row:1/5}.space-person>span{margin-top:8px}}

/* Shared clipboard confirmation and manual-copy fallback. */
.story-copy-control{position:relative;display:inline-flex;max-width:100%}
.story-copy-status{position:absolute;z-index:3;bottom:calc(100% + 10px);left:0;display:flex;align-items:center;gap:7px;width:max-content;max-width:min(280px,calc(100vw - 64px));padding:9px 12px;border:1px solid #bed9c4;border-radius:9px;background:#edf7ef;color:#2c623b;box-shadow:0 4px 14px #254a2e12;font-size:13px;font-weight:550;line-height:1.5;pointer-events:none;animation:copy-feedback-in .16s ease-out}
.story-copy-status::after{content:"";position:absolute;left:25px;bottom:-5px;width:8px;height:8px;background:inherit;border-right:inherit;border-bottom:inherit;transform:rotate(45deg)}
.story-copy-status[data-state="success"]{font-size:14px}
@media(max-width:760px){.story-copy-status[data-state="success"]{font-size:15px}}
.story-copy-status[data-state="success"]::before{content:"✓";font-size:15px;font-weight:700}
.story-copy-status[data-state="manual"]{background:var(--soft);border-color:var(--line-strong);color:var(--accent-strong)}
.story-copy-status:empty{display:none}
@keyframes copy-feedback-in{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
.story-copy-fallback{display:block;flex-basis:100%;font-size:13px;line-height:1.5;color:var(--muted)}
.story-copy-fallback[hidden]{display:none}
.story-copy-fallback input{display:block;width:100%;margin-top:8px;font:inherit;border:1px solid var(--line-strong);border-radius:6px;padding:12px;color:var(--ink);background:#fff}
@media(prefers-reduced-motion:reduce){.story-copy-status{animation:none}}

/* White reading surface, natural portrait proportions and quiet raised controls. */
/* Readable Church Slavonic initial derived from Fedorovsk; license beside the font. */
@font-face{font-family:'Spovidnyky Ustav Initial';src:url('../fonts/ustav-initial-m.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+041C}
.profile-detail,.profile-detail-page .material-breadcrumbs.shell,.profile-detail-page .site-top.frame{--width:1080px}
.profile-detail{padding-bottom:20px}
/* A gentle 3:2 frame trims about 3% from each vertical edge. */
.profile-cover{width:min(860px,100%);aspect-ratio:3/2;margin:0 auto;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:var(--soft);box-shadow:0 8px 28px #4938200a}
.profile-cover>img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.profile-heading{max-width:820px;margin:26px auto 32px;text-align:center}
.profile-heading h1{font-size:clamp(34px,4.1vw,50px);font-weight:750;color:var(--ink);line-height:1.15;letter-spacing:-.045em;text-wrap:balance}
.profile-identity{display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:4px 11px;margin-top:13px;color:var(--text);font-size:19px;font-weight:550;line-height:1.6}
.profile-description{max-width:680px;margin:16px auto 0;font-size:18px;line-height:1.75;color:var(--text);text-wrap:balance}
.profile-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0 0 28px}
.profile-facts>div{padding:24px 26px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:0 3px 12px #49382005}
.profile-facts dt{font-size:14px;font-weight:550;color:var(--muted);margin-bottom:9px}
.profile-facts dd{margin:0;font-size:21px;font-weight:650;line-height:1.45;color:var(--ink);letter-spacing:-.02em}
.profile-facts dd span{display:block;margin-top:8px;font-size:15px;font-weight:400;color:var(--text);line-height:1.7;letter-spacing:0}
.profile-author-note{display:grid;grid-template-columns:36px minmax(0,1fr);gap:20px;padding:28px 34px;margin:0 0 36px;border:1px solid var(--line);border-radius:18px;background:var(--soft);box-shadow:0 4px 20px #49382004}
.profile-note-mark{font:72px/.95 Georgia,serif;color:var(--bronze);user-select:none}
.profile-author-note .profile-note-label{margin:3px 0 14px;font-size:14px;font-weight:700;line-height:1.5;letter-spacing:.04em;color:var(--accent);text-wrap:balance}
.profile-author-note p{font-size:17px;line-height:1.85;color:var(--reading-ink)}
.profile-author-note p:not(.profile-note-label)+p{margin-top:14px}
.profile-note-sources{margin-top:16px;font-size:13px;line-height:1.7;color:var(--muted)}
.profile-note-sources summary{width:fit-content;padding:5px 0;min-height:32px}
.profile-note-sources ul{margin:10px 0 0;padding-left:20px}
.profile-note-sources a{color:#245cac;text-decoration:underline;text-underline-offset:3px}
.profile-sections{scroll-margin-top:20px}
.profile-tabs{display:flex;align-items:stretch;width:min(100%,1100px);margin-inline:auto;gap:5px;padding:7px;border:1px solid var(--line);border-radius:17px;background:var(--surface-raised);box-shadow:0 4px 18px #49382006}
.profile-tabs a{flex:1 0 auto;display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:12px 13px;border:1px solid transparent;border-radius:11px;font-size:15px;font-weight:600;line-height:1.5;color:var(--text);white-space:nowrap;transition:background .15s,color .15s,box-shadow .15s}
.profile-tabs a:hover{background:var(--surface-hover);color:var(--accent-strong)}
.profile-tabs a[aria-selected="true"]{background:#fff;color:var(--accent-strong);border-color:var(--line-strong);box-shadow:0 2px 7px #49382012}
.profile-tabs a:focus-visible{outline-offset:-3px}
.profile-tabs-enhanced .profile-tabs{position:sticky;top:12px;z-index:10}
.profile-panels{margin-top:24px;border:1px solid var(--line);border-radius:20px;box-shadow:0 6px 28px #49382005;background:#fff}
.profile-panel{padding:40px 44px 38px;scroll-margin-top:100px;min-height:230px}

.profile-panel:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;border-radius:18px}
.profile-panel h2{max-width:900px;margin:0 auto 24px;font-size:32px;font-weight:700;line-height:1.3;letter-spacing:-.035em}
.profile-panel h3{font-size:24px;font-weight:650;line-height:1.45;letter-spacing:-.025em;margin-bottom:16px}
.profile-reading{max-width:900px;margin-inline:auto;font-size:20px;line-height:1.85;color:var(--reading-ink)}
.profile-reading p+p{margin-top:22px}
.profile-biography>p:first-child:after{content:"";display:table;clear:both}
.profile-biography>p:first-child:first-letter{float:left;font-family:'Spovidnyky Ustav Initial',Georgia,serif;font-size:62px;font-weight:400;line-height:1;margin:6px 12px 0 0;color:var(--accent)}
.profile-text-link{display:inline-flex;align-items:baseline;gap:10px;margin-top:26px;font-size:16px;font-weight:600;line-height:1.7;color:#245cac;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
.profile-text-link:hover{color:#163e79}
.profile-reading .profile-source{font-size:14px;line-height:1.8;color:var(--muted);margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}
.profile-section-intro,.profile-status{max-width:900px;margin-inline:auto;font-size:18px;line-height:1.85;color:var(--text)}
.profile-status{padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
.profile-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 18px;margin:24px auto 0;max-width:960px;align-items:start}
.profile-photo-grid>figure{min-width:0}
.profile-archive-photo{display:block;position:relative;aspect-ratio:1;overflow:hidden;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
.profile-archive-photo img{width:100%;height:100%;object-fit:cover;object-position:center}
.profile-photo-grid figcaption{font-size:14px;color:var(--text);line-height:1.65;margin-top:10px;overflow-wrap:break-word}
.profile-photo-grid figcaption a{display:table;margin:3px 0 0;padding:3px 0;color:#245cac;font-size:13px;text-decoration:underline;text-underline-offset:3px}
@media(min-width:701px) and (max-width:1000px){.profile-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.profile-panel .profile-subheading{margin-top:36px}
.profile-event{max-width:900px;margin-inline:auto;font-size:20px;line-height:1.85;color:var(--reading-ink)}
.profile-event-date{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-bottom:18px;font-size:16px;font-weight:600;color:var(--accent)}
.profile-event-date span{font-weight:400;color:var(--muted)}
.profile-event h3{color:var(--ink)}
.profile-address{color:var(--text);margin-bottom:20px}
.profile-map-link{display:inline-flex;align-items:center;gap:16px;margin-top:26px;min-height:48px;border:1px solid var(--line-strong);border-radius:999px;padding:11px 20px;font-size:16px;font-weight:600;line-height:1.5;color:var(--accent);background:var(--soft)}
.profile-map-link:hover{background:var(--surface-hover);border-color:var(--line-hover)}
@media(max-width:1050px){.profile-tabs{gap:3px}.profile-tabs a{font-size:14px;padding-inline:10px}.profile-facts>div{padding:22px 20px}.profile-facts dd{font-size:19px}.profile-panel{padding:34px 32px}}
@media(min-width:701px) and (max-width:900px){.profile-tabs{flex-wrap:wrap}.profile-tabs a{flex:1 1 22%}}
@media(max-width:700px){.profile-detail{padding-bottom:16px}.profile-cover{max-width:480px;border-radius:16px}.profile-heading{margin:23px auto 26px}.profile-heading h1{font-size:36px}.profile-identity{font-size:17px;gap:4px 8px}.profile-identity>span[aria-hidden]{display:none}.profile-identity>span{flex-basis:100%}.profile-description{font-size:17px;line-height:1.75;margin-top:13px}.profile-facts{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:22px}.profile-facts>div{padding:20px 18px;border-radius:14px}.profile-facts>div:last-child{grid-column:1/-1}.profile-facts dt{font-size:13px}.profile-facts dd{font-size:18px}.profile-facts dd span{font-size:14px}.profile-author-note{display:block;position:relative;padding:24px 20px;margin-bottom:26px;border-radius:15px}.profile-note-mark{position:absolute;left:20px;top:20px;font-size:46px}.profile-author-note p{font-size:16px;line-height:1.8}.profile-author-note .profile-note-label{font-size:13px;margin-top:0;padding-left:34px}.profile-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:6px;border-radius:15px}.profile-tabs a{white-space:normal;min-height:49px;font-size:14px;padding:9px 10px}.profile-tabs a:last-child{grid-column:1/-1}.profile-tabs-enhanced .profile-tabs{position:static}.profile-panels{margin-top:18px;border-radius:16px}.profile-panel{padding:28px 23px;scroll-margin-top:20px}
.profile-panel h2{font-size:28px;margin-bottom:20px}.profile-panel h3{font-size:22px}.profile-reading,.profile-event{font-size:18px;line-height:1.85}.profile-reading p+p{margin-top:20px}.profile-biography>p:first-child:first-letter{font-size:54px;margin-top:6px;margin-right:10px}.profile-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}.profile-photo-grid img{height:100%;max-height:none}.profile-section-intro,.profile-status{font-size:17px;line-height:1.8}.profile-status{padding:18px}.profile-text-link,.profile-map-link{font-size:15px}}
@media(max-width:370px){.profile-heading h1{font-size:32px}.profile-identity>span[aria-hidden]{display:none}.profile-identity>span{flex-basis:100%}.profile-facts{grid-template-columns:1fr}.profile-facts>div:last-child{grid-column:auto}.profile-author-note{display:block;padding:23px 20px}.profile-panel{padding:25px 18px}}
@media(prefers-reduced-motion:reduce){.profile-tabs a{transition:none}}
@media print{.profile-tabs,.profile-note-sources{display:none!important}.profile-panel[hidden]{display:block!important}.profile-panel{min-height:0;padding:20px 0}.profile-cover{max-width:300px}.profile-facts{break-inside:avoid}.profile-author-note,.profile-panels,.profile-facts>div{box-shadow:none}.profile-note-mark{display:none}.profile-author-note{display:block}.profile-detail{padding-bottom:0}}

/* Compact square previews; the viewer retains each complete original frame. */
.profile-video-section,.profile-photo-section{max-width:960px;margin-inline:auto}
.profile-panel#foto-ta-video>h2{max-width:960px}
.profile-photo-section .profile-section-intro{max-width:none}
.profile-video-section+.profile-photo-section{margin-top:36px;padding-top:32px;border-top:1px solid var(--line)}
.profile-photo-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:12px}
.profile-photo-heading h3{margin:0}
.profile-photo-heading h2{margin:0}
.profile-photo-heading>span{font-size:13px;color:var(--muted);white-space:nowrap}
.profile-video-section .profile-status{max-width:none}
.profile-recording{width:min(100%,640px);margin:0 0 28px}
.profile-recording:last-child{margin-bottom:0}
.profile-recording h4{margin:0 0 8px;font-size:22px;line-height:1.4;font-weight:600}
.profile-recording-description{margin:0 0 18px;color:var(--muted);font-size:15px;line-height:1.7;white-space:pre-line}
.profile-recording-player{position:relative}
.profile-recording video{display:block;width:100%;height:auto;aspect-ratio:4/3;border-radius:14px;background:#211e1a}
.profile-recording video:focus-visible{outline:2px solid var(--accent-strong);outline-offset:4px}
.profile-recording-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:clamp(64px,12vw,84px);height:clamp(64px,12vw,84px);padding:0;border:1px solid #ffffffb3;border-radius:50%;background:#303030a6;color:#fff;box-shadow:0 4px 24px #0004;cursor:pointer;transition:opacity .2s,background .2s}
.profile-recording-play[hidden]{display:none}
.profile-recording-play svg{width:42%;height:42%}
.profile-recording-play .recording-pause-icon,.profile-recording-player.is-playing .recording-play-icon{display:none}
.profile-recording-player.is-playing .recording-pause-icon{display:block}
.profile-recording-player.is-playing .profile-recording-play{opacity:0}
.profile-recording-player.is-playing .profile-recording-play:focus-visible{opacity:1}
@media (hover: hover) and (pointer: fine) {
  .profile-recording-player.is-playing:hover .profile-recording-play{opacity:1}
}
.profile-recording video:fullscreen{width:100%;height:100%;object-fit:contain;border-radius:0}
.profile-recording-play:hover{background:#303030d9}
.profile-recording-play:focus-visible{outline:3px solid #fff;outline-offset:5px}
.profile-recording-transcript{margin-top:12px;font-size:14px;line-height:1.75;color:var(--reading-ink)}
.profile-recording-transcript summary{width:fit-content;min-height:44px;display:list-item;padding:10px 0;color:var(--accent-strong);cursor:pointer}
.profile-recording-transcript p{margin:10px 0 0}
.gallery-open-mark{position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;color:var(--accent-strong);background:#fffffff0;box-shadow:0 2px 12px #49382018}
.gallery-open-mark svg{width:16px;height:16px}
.profile-archive-photo:hover{border-color:var(--line-hover)}
@media(max-width:700px){.profile-video-section+.profile-photo-section{margin-top:28px;padding-top:25px}.profile-photo-grid figcaption{font-size:13px;margin-top:8px}.profile-archive-photo{border-radius:10px}.gallery-open-mark{width:26px;height:26px;right:7px;bottom:7px}.gallery-open-mark svg{width:14px;height:14px}}

/* The entire profile reads as one page; both navigation levels follow the reader. */
html:has(.profile-detail-page){scroll-behavior:smooth}
.profile-detail-page .profile-tabs{position:sticky;top:72px;z-index:30;flex-wrap:wrap;box-shadow:0 10px 24px #49382012}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 .profile-detail-page .profile-tabs{
  background:linear-gradient(135deg,#ffffff5c 0%,#ffffff1f 48%,#dfcba81f 100%),rgba(244,239,231,.78);
  -webkit-backdrop-filter:blur(20px) saturate(120%);
  backdrop-filter:blur(20px) saturate(120%);
  border-color:rgba(213,198,177,.55);
  box-shadow:0 10px 24px #49382012,inset 0 1px 0 #ffffffc7,inset 0 -1px 0 #d6c4a333;
 }
}

.profile-detail-page .profile-tabs a{flex:1 0 auto;min-height:48px}
.profile-detail-page .profile-tabs a[aria-current="location"]{background:#fff;color:var(--accent-strong);border-color:var(--line-strong);box-shadow:0 2px 7px #49382012}
.profile-detail-page .profile-panels{overflow:clip}
.profile-detail-page .profile-panel{min-height:0;scroll-margin-top:148px}
.profile-detail-page .profile-panel+.profile-panel{border-top:1px solid var(--line)}
.profile-detail-page .profile-panel>h2{max-width:960px}
.profile-detail-page #biohrafiia{padding-inline:20px}
.profile-detail-page #biohrafiia>h2{max-width:900px;margin-bottom:10px}
.profile-biography-layout{display:block;max-width:900px;margin-inline:auto}
.profile-detail-page .profile-biography-layout{display:block;max-width:900px}
.profile-detail-page .profile-biography-prose{width:100%;max-width:none}
.profile-biography-layout .profile-biography-contents{position:static;margin:0 0 30px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.profile-biography-contents>summary{display:flex;align-items:center;gap:10px;width:fit-content;min-height:44px;padding:8px 0;list-style:none;cursor:pointer;font-size:14px;font-weight:550;line-height:1.5;color:var(--accent-strong)}
.profile-biography-contents>summary::-webkit-details-marker{display:none}
.profile-biography-contents>summary:hover{color:var(--ink)}
.profile-biography-contents>summary svg{width:18px;height:18px;transition:transform .15s}
.profile-biography-contents[open]>summary svg{transform:rotate(180deg)}
.profile-biography-contents>summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:3px}
.profile-biography-layout .profile-biography-contents nav{max-height:none;overflow:visible;padding:5px 0 18px;border-bottom:1px solid var(--line)}
.profile-biography-contents ol{list-style:none;margin:0;padding:0}
.profile-biography-contents ol ol{display:block!important;margin:3px 0 8px 13px;padding-left:7px;border-left:1px solid var(--line-strong)}
.profile-biography-contents ol ol a{font-size:13px;font-weight:500;padding:8px}
.profile-biography-contents a.is-current-parent{color:var(--accent-strong);font-weight:700}
.profile-biography-contents a{display:block;padding:9px 12px;border-radius:9px;color:var(--text);font-size:14px;font-weight:550;line-height:1.5;transition:background .18s,color .18s}
.profile-biography-contents a:hover,.profile-biography-contents a[aria-current="location"]{background:var(--surface-hover);color:var(--accent-strong)}
.profile-biography-contents a[aria-current="location"]{font-weight:700}
.profile-biography-prose{--reading-ink:#2f2b26;min-width:0;font-size:18px;line-height:1.85;color:var(--reading-ink)}
.profile-biography-chapter{scroll-margin-top:158px}
.profile-biography-chapter+.profile-biography-chapter{margin-top:37px}
.profile-biography-chapter h3{margin:0 0 14px!important;color:var(--ink);font-size:23px!important}
.profile-biography-subsection h4{margin:22px 0 12px;color:var(--ink);font-family:inherit;font-size:20px;font-weight:650;line-height:1.4;letter-spacing:-.02em}
.profile-biography-subsection:first-of-type h4{margin-top:0}
.profile-biography-subsection+.profile-biography-subsection{margin-top:30px}
.profile-biography-chapter [id]{scroll-margin-top:var(--profile-anchor-offset,158px)}
/* The root scroll container already supplies 35px of the anchor offset. */
.profile-biography-prose :is(h2,h3,h4,h5,h6)[id]{scroll-margin-top:calc(var(--profile-anchor-offset,158px) - 35px)}
.profile-biography-chapter [id]:focus{outline:none}
.profile-biography-chapter:first-child .profile-biography-subsection:first-of-type>p:first-of-type:first-letter{float:left;font-family:'Spovidnyky Ustav Initial',Georgia,serif;font-size:56px;font-weight:400;line-height:1;margin:5px 12px 0 0;color:var(--accent)}
.profile-biography-chapter p{margin:0 0 15px}
.profile-biography-chapter:first-child>p:first-of-type:first-letter{float:left;font-family:'Spovidnyky Ustav Initial',Georgia,serif;font-size:56px;font-weight:400;line-height:1;margin:5px 12px 0 0;color:var(--accent)}
.profile-photo-more{max-width:960px;margin:24px auto 0}
.profile-photo-more>summary{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:12px 24px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);color:var(--accent-strong);font-size:15px;font-weight:700;list-style:none}
.profile-photo-more>summary::-webkit-details-marker{display:none}
.profile-photo-more>summary:hover{background:var(--surface-hover)}
.profile-photo-more>summary .profile-photo-more-hide,.profile-photo-more[open]>summary .profile-photo-more-show{display:none}
.profile-photo-more[open]>summary .profile-photo-more-hide{display:inline}
.profile-photo-more[open]>summary span[aria-hidden]{transform:rotate(180deg)}
.profile-photo-more .profile-photo-grid{margin-top:22px}
.profile-photo-more[open]{display:flex;flex-direction:column}
.profile-photo-more[open]>summary{order:1;margin-top:22px}
.profile-photo-more[open] .profile-photo-grid{margin-top:0}
.profile-credits{max-width:920px;margin:28px auto 0;padding:19px 22px;border-top:1px solid var(--line);color:var(--muted);font-size:13px;line-height:1.8;text-align:center}
.profile-to-top{position:fixed;right:max(22px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));z-index:38;display:flex;align-items:center;gap:7px;padding:11px 17px;border:1px solid var(--line-strong);border-radius:999px;background:#fffefa;color:var(--accent-strong);box-shadow:0 7px 26px #49382020;font-size:14px;font-weight:700;cursor:pointer}
.profile-to-top:hover{background:var(--surface-hover)}
.profile-to-top span{font-size:20px;line-height:1}

@media(max-width:900px){.profile-biography-layout{grid-template-columns:184px minmax(0,1fr);gap:24px}.profile-biography-contents a{font-size:13px}.profile-detail-page .profile-tabs a{font-size:14px}}
@media(max-width:700px){.profile-detail-page .profile-tabs{display:flex;top:62px;gap:2px;padding:5px;border-radius:12px}.profile-detail-page .profile-tabs a{white-space:nowrap;min-height:36px;padding:6px 8px;font-size:13px}.profile-detail-page .profile-tabs a:last-child{grid-column:auto}.profile-detail-page .profile-panel{scroll-margin-top:116px}.profile-biography-layout{display:block}.profile-biography-contents{position:static;margin:0 0 28px;padding:15px}.profile-biography-contents>span{padding-left:8px}.profile-biography-contents nav{max-height:170px}.profile-biography-contents ol{display:grid;grid-template-columns:1fr 1fr;gap:3px}.profile-biography-contents a{padding:8px;font-size:13px}.profile-biography-chapter{scroll-margin-top:120px}.profile-biography-prose{font-size:18px}.profile-biography-chapter h3{font-size:21px!important}.profile-biography-chapter+.profile-biography-chapter{margin-top:30px}.profile-credits{margin-top:24px;padding-inline:5px;text-align:left}.profile-to-top{right:12px;bottom:max(12px,env(safe-area-inset-bottom));padding:10px 14px}}
@media(max-width:370px){.profile-detail-page .profile-tabs a{font-size:12px}.profile-biography-contents ol{grid-template-columns:1fr}.profile-biography-contents nav{max-height:190px}}
@media(prefers-reduced-motion:reduce){html:has(.profile-detail-page){scroll-behavior:auto}.profile-detail-page .site-top,.profile-biography-contents a{transition:none}}
@media print{.profile-detail-page .site-top,.profile-detail-page .profile-tabs,.profile-to-top{position:static!important}.profile-to-top{display:none!important}.profile-biography-layout{display:block}.profile-biography-contents{display:none}.profile-panel+.profile-panel{break-before:page}}

/* Archdeacon Michael: sourced testimonies and comfortable browsing. */
.testimonies{max-width:960px;margin-inline:auto;color:var(--ink)}
.testimony-intro{position:relative;overflow:hidden;padding:clamp(24px,4vw,46px);border:1px solid #ded4bf;border-radius:24px;background:linear-gradient(125deg,#f9f5ec 0%,#fffdf8 72%);box-shadow:0 12px 38px #4938200a}
.testimony-intro:after{content:"";position:absolute;right:-86px;top:-92px;width:280px;height:280px;border:1px solid #dbcfb8;border-radius:50%;pointer-events:none}
.testimony-intro-label{display:flex;align-items:center;gap:9px;margin-bottom:14px;color:var(--accent-strong);font-size:12px;font-weight:750;letter-spacing:.1em;text-transform:uppercase}
.testimony-intro-label span{color:var(--bronze);font-size:18px}
.testimony-intro h3{position:relative;max-width:700px;margin:0 0 18px!important;font-family:Georgia,serif;font-size:clamp(29px,4vw,42px)!important;font-weight:500!important;line-height:1.17!important;letter-spacing:-.04em!important}
.testimony-intro>p{position:relative;max-width:780px;margin:0 0 14px;color:var(--reading-ink);font-size:17px;line-height:1.8}
.testimony-intro-contact{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 26px;align-items:center;margin-top:27px;padding:21px 23px;border:1px solid #d8c8a8;border-radius:16px;background:#fffdfa}
.testimony-intro-contact strong{font-size:19px;line-height:1.4}
.testimony-intro-contact>span{grid-column:1;color:var(--text);font-size:15px;line-height:1.6}
.testimony-contact-links{display:flex;flex-wrap:wrap;gap:8px}
.testimony-intro-contact .testimony-contact-links{grid-column:2;grid-row:1/3;justify-content:flex-end}
.testimony-contact-links a{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:42px;padding:8px 15px;border:1px solid var(--line-strong);border-radius:999px;color:var(--accent-strong);background:#fff;font-size:14px;font-weight:700;line-height:1.4;text-decoration:none;white-space:nowrap}
.testimony-contact-links a:hover{border-color:var(--accent);background:var(--surface-hover)}
.testimony-list-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin:52px 0 20px}
.testimony-list-heading>div>span{display:block;margin-bottom:5px;color:var(--accent);font-size:12px;font-weight:750;letter-spacing:.1em;text-transform:uppercase}
.testimonies .testimony-list-heading h3{margin:0;font-size:31px;line-height:1.2}
.testimony-list-heading>p{max-width:370px;color:var(--text);font-size:15px;line-height:1.65}
.testimony-filters{display:flex;gap:8px;overflow-x:auto;margin:0 -2px 13px;padding:2px 2px 10px;scrollbar-width:thin}
.testimony-filters button{flex:0 0 auto;min-height:42px;padding:8px 16px;border:1px solid var(--line-strong);border-radius:999px;color:var(--text);background:#fff;font-family:inherit;font-size:14px;font-weight:600;line-height:1.4;white-space:nowrap;cursor:pointer;transition:background .18s,color .18s,border-color .18s}
.testimony-filters button:hover{border-color:var(--accent)}
.testimony-filters button[aria-pressed="true"]{border-color:var(--accent-strong);color:#fff;background:var(--accent-strong)}
.testimony-result{min-height:24px;margin:2px 0 15px;color:var(--muted);font-size:13px;line-height:1.5}
.testimony-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;align-items:stretch}
.testimony-card{display:flex;flex-direction:column;min-width:0;min-height:255px;padding:24px;border:1px solid var(--line);border-radius:19px;background:#fff;box-shadow:0 4px 16px #49382008;transition:transform .18s,box-shadow .18s,border-color .18s}
.testimony-card:hover{transform:translateY(-2px);border-color:var(--line-strong);box-shadow:0 12px 28px #49382013}
.testimony-card[hidden]{display:none!important}
.testimony-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}
.testimony-category{display:inline-flex;align-items:center;min-height:28px;padding:4px 10px;border-radius:999px;background:#f4efe4;color:var(--accent-strong);font-size:11px;font-weight:700;line-height:1.3;letter-spacing:.03em}
.testimony-number{color:#948778;font-size:12px;font-weight:700;letter-spacing:.08em;white-space:nowrap}
.testimonies .testimony-card .testimony-title{margin:0 0 10px;font-size:21px;line-height:1.3;letter-spacing:-.025em}
.testimony-card>p{margin:0 0 22px;color:var(--text);font-size:15px;line-height:1.73}
.testimony-card:has(.testimony-full[open]){grid-column:1/-1}
.testimony-full{margin:0 0 20px}
.testimony-full>summary{display:inline-flex;align-items:center;gap:9px;min-height:38px;color:var(--accent-strong);font-size:14px;font-weight:700;line-height:1.4;list-style:none;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.testimony-full>summary::-webkit-details-marker{display:none}
.testimony-full[open]>summary span{transform:rotate(180deg)}
.testimony-full-prose{max-width:760px;margin:13px 0 5px;padding:20px 24px;border-left:2px solid var(--bronze);border-radius:0 10px 10px 0;background:#fbf8f1;color:var(--reading-ink);font-size:16px;line-height:1.85}
.testimony-full-prose p+p{margin-top:15px}
.testimony-card-bottom{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:10px 16px;margin-top:auto;padding-top:17px;border-top:1px solid var(--line);font-size:13px;line-height:1.5}
.testimony-card-bottom>span{color:var(--muted)}
.testimony-card-bottom a,.testimony-memory a{display:inline-flex;gap:6px;align-items:center;color:#245cac;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.testimony-more{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:52px;margin:20px 0 0;padding:10px 20px;border:1px solid var(--line-strong);border-radius:13px;color:var(--accent-strong);background:#fff;font-family:inherit;font-size:15px;font-weight:700;line-height:1.5;cursor:pointer}
.testimony-more:hover{background:var(--surface-hover)}
.testimony-more[hidden]{display:none!important}
.testimony-memory{margin-top:36px;padding:22px 25px;border-left:3px solid var(--bronze);border-radius:0 13px 13px 0;background:var(--soft)}
.testimony-memory>span{display:block;margin-bottom:6px;color:var(--accent);font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.testimonies .testimony-memory h3{margin:0 0 8px;font-size:20px}
.testimony-memory p{margin:0 0 8px;color:var(--text);font-size:15px;line-height:1.75}
.testimony-memory a{font-size:13px}
.testimony-outro{display:grid;grid-template-columns:48px minmax(0,1fr);gap:19px;margin-top:38px;padding:31px 32px;border:1px solid #d7c5a1;border-radius:20px;background:#f7f1e5}
.testimony-outro-mark{display:grid;place-items:center;width:43px;height:43px;border-radius:50%;color:#fff;background:var(--accent-strong);font-size:20px}
.testimonies .testimony-outro h3{margin:2px 0 10px;font-size:23px}
.testimony-outro p{margin:0 0 18px;color:var(--reading-ink);font-size:16px;line-height:1.75}
.testimony-outro p a{color:#245cac;text-decoration:underline;text-underline-offset:3px}
@media(max-width:800px){.testimony-intro-contact{grid-template-columns:1fr}.testimony-intro-contact .testimony-contact-links{grid-column:1;grid-row:auto;justify-content:flex-start;margin-top:8px}.testimony-list-heading{display:block}.testimony-list-heading>p{max-width:600px;margin-top:9px}}
@media(max-width:650px){.testimony-intro{padding:25px 21px;border-radius:18px}.testimony-intro h3{font-size:30px!important}.testimony-intro>p{font-size:16px;line-height:1.75}.testimony-intro-contact{padding:17px;margin-top:21px}.testimony-intro-contact strong{font-size:18px}.testimony-contact-links a{font-size:13px}.testimony-list-heading{margin-top:38px}.testimonies .testimony-list-heading h3{font-size:26px}.testimony-grid{grid-template-columns:1fr;gap:12px}.testimony-card{min-height:0;padding:21px}.testimony-card-top{margin-bottom:17px}.testimony-full-prose{padding:16px;font-size:15px}.testimony-outro{display:block;padding:24px 20px}.testimony-outro-mark{margin-bottom:12px}.testimony-memory{padding:20px}}
@media(prefers-reduced-motion:reduce){.testimony-card,.testimony-filters button{transition:none}}
@media print{.testimony-filters,.testimony-more{display:none!important}.testimony-card[hidden]{display:block!important}.testimony-grid{display:block}.testimony-card{break-inside:avoid;margin:0 0 12px;box-shadow:none}}

/* Quiet illustrated event cards and a practical route to the skete. */
.profile-events,.profile-visit{max-width:960px;margin-inline:auto}
.profile-events>.profile-section-intro,.profile-visit>.profile-section-intro{max-width:800px;margin:0 0 24px}
.profile-event-list{display:grid;gap:16px}
.profile-event-card{display:grid;grid-template-columns:minmax(180px,30%) minmax(0,1fr);overflow:hidden;border:1px solid var(--line);border-radius:19px;background:#fffdf9;box-shadow:0 6px 22px #49382009}
.profile-event-image{display:block;min-height:230px;overflow:hidden;background:#e9e4d9}
.profile-event-image img{display:block;width:100%;height:100%;object-fit:cover}
.profile-event-content{display:flex;flex-direction:column;align-items:flex-start;padding:26px 28px 23px;min-width:0}
.profile-event-date{display:inline-flex;align-items:center;min-height:28px;margin:0 0 14px!important;padding:4px 10px;border-radius:999px;background:#f4efe4;color:var(--accent-strong);font-size:13px;font-weight:700;line-height:1.4}
.profile-event-content .profile-event-title{font-weight:650;letter-spacing:-.025em;text-wrap:balance;margin:0 0 11px!important;color:var(--ink);font-size:23px;line-height:1.3}
.profile-event-content p{margin:0 0 17px;color:var(--text);font-size:16px;line-height:1.7}
.profile-event-source{display:inline-flex;align-items:center;gap:8px;margin-top:auto;color:#245cac;font-size:14px;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.profile-event-source:hover{color:#163e79}
.profile-visit-grid{--visit-visual-height:380px;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:17px;align-items:stretch}
.profile-visit-map-card,.profile-visit-photo{min-width:0;overflow:hidden;margin:0;border:1px solid var(--line);border-radius:19px;background:#fffdf9;box-shadow:0 6px 22px #49382009}
.profile-visit-map-card{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:var(--visit-visual-height) auto;align-content:start}
.profile-visit-map-card iframe{grid-area:1/1;display:block;width:100%;height:100%;border:0;background:#eee9dc}
.profile-map-toolbar{grid-area:1/1;position:relative;z-index:1;align-self:end;justify-self:end;margin:0 16px 92px;max-width:calc(100% - 32px)}
.profile-map-toolbar a{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:9px 13px;border:1px solid #d5c6b180;border-radius:10px;background:#fffffff5;color:var(--accent-strong);box-shadow:0 2px 10px #4938201f;font-size:13px;font-weight:600;line-height:1.4;text-decoration:none}
.profile-map-toolbar a:hover{background:var(--accent-strong);border-color:var(--accent-strong);color:#fff}
.profile-map-toolbar a:focus-visible,.profile-visit-routes a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.profile-visit-map-info{padding:23px 26px 26px}
.profile-visit-eyebrow,.profile-visit-photo figcaption>span{display:block;margin:0 0 7px;color:var(--accent);font-size:12px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}
.profile-visit-map-info h3{margin:0 0 2px!important;font-size:23px}
.profile-visit-map-info>p{margin:0;color:var(--text);font-size:16px;line-height:1.6}
.profile-visit-coordinates{display:block;margin:7px 0 17px;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}
.profile-visit-routes{display:flex;flex-wrap:wrap;gap:8px}
.profile-visit-map-info>.profile-route-label{margin:0 0 10px;font-size:14px;color:var(--muted)}
.profile-visit-routes a{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:8px 13px;border:1px solid var(--line-strong);border-radius:999px;background:#fff;color:var(--accent-strong);font-size:14px;font-weight:700;line-height:1.3;text-decoration:none}
.profile-visit-routes a:hover,.profile-visit-routes a:focus-visible{background:var(--accent-strong);border-color:var(--accent-strong);color:#fff;box-shadow:0 3px 12px #4938201b}
.profile-visit-routes a:hover{transform:translateY(-1px)}
.profile-visit-credit{display:inline-block;margin-top:15px;color:#245cac;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.profile-visit-photo{display:flex;flex-direction:column}
.profile-visit-photo img{display:block;width:100%;height:var(--visit-visual-height);object-fit:cover;object-position:50% 45%;background:var(--soft)}
.profile-visit-photo figcaption{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:23px 25px;color:var(--text);font-size:15px;line-height:1.65}
.profile-visit-photo figcaption>strong{color:var(--ink);font-size:20px;line-height:1.35}
.profile-visit-photo figcaption>a{margin-top:7px;color:#245cac;font-size:12px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:700px){.profile-event-card{grid-template-columns:1fr}.profile-event-image{height:220px;min-height:0}.profile-event-content{padding:21px}.profile-event-content .profile-event-title{font-size:21px}.profile-event-content p{font-size:15px}.profile-visit-grid{--visit-visual-height:300px;grid-template-columns:1fr}.profile-map-toolbar{margin-inline:12px;max-width:calc(100% - 24px)}.profile-visit-photo img{height:auto;aspect-ratio:1/1}.profile-visit-map-info,.profile-visit-photo figcaption{padding:21px}.profile-visit-routes a{font-size:13px}}
@media(max-width:370px){.profile-event-image{height:190px}.profile-visit-grid{--visit-visual-height:280px}}
@media(prefers-reduced-motion:reduce){.profile-visit-routes a:hover{transform:none}}
@media print{.profile-visit-grid,.profile-visit-map-card{display:block}.profile-visit-map-card iframe,.profile-map-toolbar{display:none}.profile-visit-photo{margin-top:16px}.profile-event-card,.profile-visit-map-card,.profile-visit-photo{box-shadow:none;break-inside:avoid}}

/* Keep both navigation levels clear of the actual header height, including wrapping on phones. */
.profile-detail-page .profile-tabs{top:calc(var(--profile-header-height,var(--site-header-height)) + 8px)}
.profile-biography-contents{top:var(--profile-anchor-offset,156px)}
.profile-detail-page .profile-panel{scroll-margin-top:var(--profile-anchor-offset,148px)}
.profile-visit-photo-open.gallery-open{display:block;padding:0;border-radius:0;cursor:zoom-in}
@media(max-width:900px){.profile-detail-page .profile-biography-layout{grid-template-columns:174px minmax(0,1fr);gap:22px}}
@media(max-width:700px){.profile-detail-page #biohrafiia{padding-inline:16px}.profile-detail-page .profile-biography-layout{display:block}.profile-biography-contents ol{display:block}.profile-biography-contents nav{max-height:230px}.profile-biography-contents{padding:15px 10px}.profile-biography-subsection h4{font-size:19px}}
.profile-closing{width:min(100%,var(--width));margin:44px auto 0;font-size:16px;line-height:1.8;color:var(--text)}
.profile-closing h2{font-size:30px;line-height:1.25;margin:0 0 22px;color:var(--ink);scroll-margin-top:100px}
.profile-closing p+p{margin-top:16px}
.profile-closing-eyebrow{display:block;margin-bottom:16px;color:var(--accent);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.profile-sources{padding:0 0 30px;font-size:14px;line-height:1.75;color:var(--muted)}
.profile-closing .profile-sources h2{font-size:16px;line-height:1.5;letter-spacing:0;margin:0 0 10px;color:inherit}
.profile-closing .profile-sources p+p{margin-top:10px}
.profile-closing .profile-contribution{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:42px;width:100%;max-width:none;margin:0 0 30px;padding:42px;border:0;border-radius:20px;background:#443426;color:#f0e6d9;box-shadow:none;text-align:left}
.profile-contribution .profile-closing-eyebrow{color:#d7bc91}
.profile-closing .profile-contribution h2{color:#fffaf2;max-width:570px}
.profile-contribution-copy p{font-size:16px;line-height:1.8}
.profile-contribution-copy strong{color:#fffaf2;font-weight:700}
.profile-contribution-contacts{align-self:center;min-width:0;padding:25px;border:1px solid #d4b98c40;border-radius:14px;background:#ffffff08}
.profile-closing .profile-contribution .profile-contribution-contacts h3{margin:0 0 9px!important;color:#fffaf2;font-size:19px!important;line-height:1.4}
.profile-contribution-contacts>p{margin-bottom:20px;font-size:14px;line-height:1.65;color:#dacbbb}
.profile-contribution .invite-contacts{flex-direction:column;gap:10px}
.profile-contribution .invite-contact{width:100%;background:#fffaf2;border-color:#fffaf2}
.profile-contribution .invite-contact:hover{background:#efe2cd;border-color:#efe2cd}
.profile-contribution .story-copy-fallback{color:#f0e6d9}
.profile-about-portal{display:grid;grid-template-columns:1fr 1.4fr;gap:64px;padding:38px 0 20px;border-top:1px solid var(--line)}
.profile-about-portal h2{max-width:360px;font-size:27px}
.profile-about-links{display:flex;flex-wrap:wrap;gap:12px 24px;margin-top:22px;font-size:14px}
.profile-about-links a{color:var(--accent-strong);text-decoration:underline;text-underline-offset:4px}
@media(max-width:900px){.profile-about-portal{grid-template-columns:1fr;gap:28px}.profile-closing .profile-contribution{grid-template-columns:1fr;gap:28px;padding:32px}.profile-contribution-contacts{max-width:520px;width:100%}.profile-about-portal h2{max-width:none}}
@media(max-width:700px){.profile-closing{margin-top:28px}.profile-closing h2{font-size:26px}.profile-sources{padding-bottom:24px}.profile-closing .profile-contribution{padding:25px 21px;margin-bottom:24px;border-radius:15px}.profile-contribution-contacts{padding:20px 16px}.profile-contribution .invite-contact{font-size:14px;padding:12px}.profile-about-portal{padding-top:30px}.profile-about-links{gap:12px 18px}}

/* One swipeable row; profile.js keeps the current reading section in view. */
@media screen and (max-width:700px){
  .profile-detail-page .profile-tabs{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-padding-inline:5px;scrollbar-width:none}
  .profile-detail-page .profile-tabs::-webkit-scrollbar{display:none}
  .profile-detail-page .profile-tabs a{flex:0 0 auto;min-height:44px;padding-inline:12px}
}

/* Native disclosures keep all fifteen answers in HTML and work without JavaScript. */
.profile-faq{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr);gap:clamp(28px,5vw,64px);padding:48px 0 54px;border-top:1px solid var(--line);scroll-margin-top:var(--profile-anchor-offset,148px)}
.profile-faq>header>p{max-width:320px;color:var(--muted);font-size:15px;line-height:1.75}
.profile-faq-body{min-width:0}
.profile-faq .faq-item>summary>h3{font:inherit;letter-spacing:inherit;text-wrap:initial}
.profile-faq-more{margin-top:18px}
.profile-faq-more>.home-more-button{display:flex;align-items:center;justify-content:center;gap:14px;min-height:48px;width:fit-content;max-width:100%;margin:0;padding:12px 20px;border:1px solid var(--line-strong);border-radius:12px;color:var(--accent-strong);background:var(--paper);font-size:14px;font-weight:650;line-height:1.5;cursor:pointer}
.profile-faq-more>.home-more-button:hover{background:var(--soft)}
.profile-faq-more>.home-more-button[aria-expanded="true"]{margin-top:18px}
@media print{.profile-faq-more>.faq-list[hidden]{display:block!important}.profile-faq-more>.home-more-button{display:none!important}}
.profile-related{padding:42px 0 48px;border-top:1px solid var(--line)}
.profile-related>h2{text-align:center}
.profile-related-grid{display:grid;gap:32px;max-width:850px;margin:32px auto 0}
@media(width > 700px){
 .profile-related-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .profile-related-grid>.space-person{grid-column:span 2}
 .profile-related-grid>.space-person:nth-child(odd):last-child{grid-column:2 / span 2}
}
.profile-related .space-person .catalog-title{margin:0;color:var(--text);font-size:25px;font-weight:700;line-height:1.3;letter-spacing:-.035em;text-wrap:balance;transition:color .16s ease}
.profile-related .space-person:hover .catalog-title,.profile-related .space-person:focus-visible .catalog-title{color:#9a511f}
.profile-related .space-person .catalog-name{margin-top:9px}
.profile-related .space-person .catalog-meta{margin-top:7px}
@media(max-width:800px){.profile-faq{grid-template-columns:1fr;gap:24px;padding:36px 0 40px}.profile-faq>header>p{max-width:none}.profile-faq h2{max-width:560px}.profile-related-grid{gap:20px}.profile-related .space-person .catalog-title{font-size:23px}}
@media(max-width:700px){.profile-faq .faq-item>summary{padding:18px;min-height:76px;font-size:16px}.profile-faq .faq-answer{padding:0 18px 22px}.profile-faq-more>.home-more-button{margin-inline:auto}.profile-related{padding:32px 0}.profile-related>h2{text-align:left}.profile-related-grid{grid-template-columns:1fr;gap:8px;margin-top:12px}.profile-related .space-person .catalog-title{font-size:22px;text-wrap:initial}.profile-related .space-person .catalog-name,.profile-related .space-person .catalog-meta{margin-top:0}}
@media(prefers-reduced-motion:reduce){.profile-related .space-person .catalog-title{transition:none}}

/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */

.pswp {
  --pswp-bg: #000;
  --pswp-placeholder-bg: #222;
  

  --pswp-root-z-index: 100000;
  
  --pswp-preloader-color: rgba(79, 79, 79, 0.4);
  --pswp-preloader-color-secondary: rgba(255, 255, 255, 0.9);
  
  /* defined via js:
  --pswp-transition-duration: 333ms; */
  
  --pswp-icon-color: #fff;
  --pswp-icon-color-secondary: #4f4f4f;
  --pswp-icon-stroke-color: #4f4f4f;
  --pswp-icon-stroke-width: 2px;

  --pswp-error-text-color: var(--pswp-icon-color);
}


/*
	Styles for basic PhotoSwipe (pswp) functionality (sliding area, open/close transitions)
*/

.pswp {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: var(--pswp-root-z-index);
	display: none;
	touch-action: none;
	outline: 0;
	opacity: 0.003;
	contain: layout style size;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Prevents focus outline on the root element,
  (it may be focused initially) */
.pswp:focus {
  outline: 0;
}

.pswp * {
  box-sizing: border-box;
}

.pswp img {
  max-width: none;
}

.pswp--open {
	display: block;
}

.pswp,
.pswp__bg {
	transform: translateZ(0);
	will-change: opacity;
}

.pswp__bg {
  opacity: 0.005;
	background: var(--pswp-bg);
}

.pswp,
.pswp__scroll-wrap {
	overflow: hidden;
}

.pswp__scroll-wrap,
.pswp__bg,
.pswp__container,
.pswp__item,
.pswp__content,
.pswp__img,
.pswp__zoom-wrap {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.pswp__img,
.pswp__zoom-wrap {
	width: auto;
	height: auto;
}

.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img {
	cursor: -webkit-zoom-in;
	cursor: -moz-zoom-in;
	cursor: zoom-in;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img {
	cursor: move;
	cursor: -webkit-grab;
	cursor: -moz-grab;
	cursor: grab;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active {
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
  cursor: grabbing;
}

/* :active to override grabbing cursor */
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,
.pswp__img {
	cursor: -webkit-zoom-out;
	cursor: -moz-zoom-out;
	cursor: zoom-out;
}


/* Prevent selection and tap highlights */
.pswp__container,
.pswp__img,
.pswp__button,
.pswp__counter {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.pswp__item {
	/* z-index for fade transition */
	z-index: 1;
	overflow: hidden;
}

.pswp__hidden {
	display: none !important;
}

/* Allow to click through pswp__content element, but not its children */
.pswp__content {
  pointer-events: none;
}
.pswp__content > * {
  pointer-events: auto;
}


/*

  PhotoSwipe UI

*/

/*
	Error message appears when image is not loaded
	(JS option errorMsg controls markup)
*/
.pswp__error-msg-container {
  display: grid;
}
.pswp__error-msg {
	margin: auto;
	font-size: 1em;
	line-height: 1;
	color: var(--pswp-error-text-color);
}

/*
class pswp__hide-on-close is applied to elements that
should hide (for example fade out) when PhotoSwipe is closed
and show (for example fade in) when PhotoSwipe is opened
 */
.pswp .pswp__hide-on-close {
	opacity: 0.005;
	will-change: opacity;
	transition: opacity var(--pswp-transition-duration) cubic-bezier(0.4, 0, 0.22, 1);
	z-index: 10; /* always overlap slide content */
	pointer-events: none; /* hidden elements should not be clickable */
}

/* class pswp--ui-visible is added when opening or closing transition starts */
.pswp--ui-visible .pswp__hide-on-close {
	opacity: 1;
	pointer-events: auto;
}

/* <button> styles, including css reset */
.pswp__button {
	position: relative;
	display: block;
	width: 50px;
	height: 60px;
	padding: 0;
	margin: 0;
	overflow: hidden;
	cursor: pointer;
	background: none;
	border: 0;
	box-shadow: none;
	opacity: 0.85;
	-webkit-appearance: none;
	-webkit-touch-callout: none;
}

.pswp__button:hover,
.pswp__button:active,
.pswp__button:focus {
  transition: none;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  opacity: 1;
}

.pswp__button:disabled {
  opacity: 0.3;
  cursor: auto;
}

.pswp__icn {
  fill: var(--pswp-icon-color);
  color: var(--pswp-icon-color-secondary);
}

.pswp__icn {
  position: absolute;
  top: 14px;
  left: 9px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  pointer-events: none;
}

.pswp__icn-shadow {
  stroke: var(--pswp-icon-stroke-color);
  stroke-width: var(--pswp-icon-stroke-width);
  fill: none;
}

.pswp__icn:focus {
	outline: 0;
}

/*
	div element that matches size of large image,
	large image loads on top of it,
	used when msrc is not provided
*/
div.pswp__img--placeholder,
.pswp__img--with-bg {
	background: var(--pswp-placeholder-bg);
}

.pswp__top-bar {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 60px;
	display: flex;
  flex-direction: row;
  justify-content: flex-end;
	z-index: 10;

	/* allow events to pass through top bar itself */
	pointer-events: none !important;
}
.pswp__top-bar > * {
  pointer-events: auto;
  /* this makes transition significantly more smooth,
     even though inner elements are not animated */
  will-change: opacity;
}


/*

  Close button

*/
.pswp__button--close {
  margin-right: 6px;
}


/*

  Arrow buttons

*/
.pswp__button--arrow {
  position: absolute;
  top: 0;
  width: 75px;
  height: 100px;
  top: 50%;
  margin-top: -50px;
}

.pswp__button--arrow:disabled {
  display: none;
  cursor: default;
}

.pswp__button--arrow .pswp__icn {
  top: 50%;
  margin-top: -30px;
  width: 60px;
  height: 60px;
  background: none;
  border-radius: 0;
}

.pswp--one-slide .pswp__button--arrow {
  display: none;
}

/* hide arrows on touch screens */
.pswp--touch .pswp__button--arrow {
  visibility: hidden;
}

/* show arrows only after mouse was used */
.pswp--has_mouse .pswp__button--arrow {
  visibility: visible;
}

.pswp__button--arrow--prev {
  right: auto;
  left: 0px;
}

.pswp__button--arrow--next {
  right: 0px;
}
.pswp__button--arrow--next .pswp__icn {
  left: auto;
  right: 14px;
  /* flip horizontally */
  transform: scale(-1, 1);
}

/*

  Zoom button

*/
.pswp__button--zoom {
  display: none;
}

.pswp--zoom-allowed .pswp__button--zoom {
  display: block;
}

/* "+" => "-" */
.pswp--zoomed-in .pswp__zoom-icn-bar-v {
  display: none;
}


/*

  Loading indicator

*/
.pswp__preloader {
  position: relative;
  overflow: hidden;
  width: 50px;
  height: 60px;
  margin-right: auto;
}

.pswp__preloader .pswp__icn {
  opacity: 0;
  transition: opacity 0.2s linear;
  animation: pswp-clockwise 600ms linear infinite;
}

.pswp__preloader--active .pswp__icn {
  opacity: 0.85;
}

@keyframes pswp-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/*

  "1 of 10" counter

*/
.pswp__counter {
  height: 30px;
  margin-top: 15px;
  margin-inline-start: 20px;
  font-size: 14px;
  line-height: 30px;
  color: var(--pswp-icon-color);
  text-shadow: 1px 1px 3px var(--pswp-icon-color-secondary);
  opacity: 0.85;
}

.pswp--one-slide .pswp__counter {
  display: none;
}


/* Full-window viewing with a separate caption and thumbnail strip. */
.gallery-is-open{overflow:hidden}
.gallery-group[data-media-kind="photos"] .gallery-open{padding:0;aspect-ratio:3/2}
.gallery-group[data-media-kind="photos"] .gallery-open img{width:100%;height:100%;max-height:none;object-fit:cover}
.archive-gallery-host{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;overflow:hidden;background:#201e1b;color:#fff}
.archive-gallery-host::backdrop{background:#201e1b}
.gallery-open{cursor:zoom-in}
.archive-viewer{--pswp-bg:#201e1b;--pswp-icon-color:#fff;--pswp-icon-color-secondary:#201e1b;--pswp-icon-stroke-color:#201e1b;--pswp-icon-stroke-width:1px;color:#fff;font-family:var(--sans);font-size:15px}
.archive-viewer .pswp__top-bar{padding:4px 12px;align-items:center;height:54px}
.archive-viewer .pswp__counter{height:auto;margin:0 0 0 8px;color:#e8e0d5;font-size:15px;font-weight:500;line-height:44px;text-shadow:none;opacity:1}
.archive-viewer .pswp__button{width:46px;height:46px;border-radius:50%;margin:0 3px;color:#fff;opacity:1;transition:background .15s}
.archive-viewer .pswp__button:hover{background:#ffffff16;color:#fff}
.archive-viewer .pswp__button:disabled{opacity:.3}
.archive-viewer .pswp__button:focus-visible,.archive-viewer-thumbnail:focus-visible{outline:2px solid #e9cfa6;outline-offset:3px}
.archive-viewer .pswp__button .pswp__icn{position:absolute;left:7px;top:7px;width:32px;height:32px}
.archive-viewer .pswp__button--arrow{position:absolute;top:calc(50% - 65px);width:50px;height:50px;margin:0;border:1px solid #ffffff24;background:#ffffff0c}
.archive-viewer .pswp__button--arrow .pswp__icn{left:9px;top:9px;margin-top:0;right:auto}
.archive-viewer .pswp__button--original .pswp__icn{color:#fff}
.archive-viewer.pswp--touch .pswp__button--arrow{visibility:visible}
.archive-viewer .pswp__button--arrow--prev{left:22px}
.archive-viewer .pswp__button--arrow--next{right:22px}
.archive-viewer .pswp__img{border-radius:3px}
.archive-viewer .pswp__archive-footer{position:absolute;z-index:5;inset:auto 0 0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:3px 16px max(6px,env(safe-area-inset-bottom));background:linear-gradient(#201e1b00,#201e1bee 24%);pointer-events:none}
.archive-viewer-caption{max-width:100%;max-height:58px;overflow:auto;overflow-wrap:anywhere;margin:0;text-align:center;font-size:15px;line-height:1.45;color:#f3eee7;pointer-events:auto;overscroll-behavior:contain;transform:translate(var(--caption-offset-x,0px),var(--caption-offset,0px))}
.archive-viewer-thumbnails{position:relative;display:flex;align-items:center;gap:8px;max-width:100%;padding:3px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#776b5c transparent;pointer-events:auto;overscroll-behavior:contain}
.archive-viewer-thumbnail{flex:0 0 54px;width:54px;height:44px;padding:3px;border:1px solid #ffffff30;border-radius:8px;background:#ffffff0a;opacity:.55;cursor:pointer;transition:opacity .15s,border-color .15s}
.archive-viewer-thumbnail img{display:block;width:100%;height:100%;object-fit:contain;border-radius:4px}
.archive-viewer-thumbnail:hover{opacity:1}
.archive-viewer-thumbnail[aria-current="true"]{opacity:1;border-color:#d9bb91;background:#d9bb9118}
@media(max-width:700px){.archive-viewer .pswp__top-bar{padding-inline:8px}.archive-viewer .pswp__button--arrow{display:block;top:auto;bottom:calc(54px + max(6px,env(safe-area-inset-bottom)));width:42px;height:42px;z-index:7;background:#28241f}.archive-viewer .pswp__button--arrow .pswp__icn{left:5px;top:5px}.archive-viewer .pswp__button--arrow--prev{left:12px}.archive-viewer .pswp__button--arrow--next{right:12px}.archive-viewer .pswp__archive-footer{padding-inline:12px}.archive-viewer-caption{max-width:calc(100% - 100px);font-size:13px;max-height:64px;min-height:44px;display:flex;align-items:center;justify-content:center}.archive-viewer-thumbnails{max-width:calc(100% - 24px)}}
@media(max-height:500px){.archive-viewer-thumbnails{display:none}.archive-viewer .pswp__archive-footer{padding-bottom:max(4px,env(safe-area-inset-bottom))}.archive-viewer-caption{min-height:0;max-height:54px;font-size:13px}.archive-viewer .pswp__button--arrow{top:calc(50% - 25px);bottom:auto}}
@media(prefers-reduced-motion:reduce){.archive-viewer .pswp__button,.archive-viewer-thumbnail{transition:none}}
@media print{.archive-viewer{display:none!important}}
.archive-viewer--single .archive-viewer-caption{max-width:100%}

.profile-notice{width:min(520px,calc(100% - 32px));max-width:none;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:36px;border:1px solid var(--line-strong);border-radius:24px;background:#fffdf9;color:var(--ink);box-shadow:0 24px 90px #30271b33;overflow-y:auto;overscroll-behavior:contain}
.profile-notice::backdrop{background:#28241e66;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.profile-notice-dismiss{position:absolute;top:14px;right:14px}
.profile-notice-close{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--surface-raised);color:var(--text)}
.profile-notice-close:hover{background:var(--surface-hover)}
.profile-notice-mark{display:grid;place-items:center;width:56px;height:56px;margin-bottom:20px;border:1px solid var(--line);border-radius:16px;background:var(--soft);color:var(--bronze)}
.profile-notice-status{margin-bottom:8px;font-size:13px;font-weight:650;color:var(--accent)}
.profile-notice h2{margin:0 0 20px;font-size:30px;font-weight:700;line-height:1.25;letter-spacing:-.035em;text-wrap:balance}
.profile-notice-copy{font-size:16px;line-height:1.75;color:var(--text)}
.profile-notice-copy p+p{margin-top:16px}
.profile-notice-date{padding:15px 18px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
.profile-notice-date strong{font-weight:650;color:var(--accent-strong)}
.profile-notice-button{display:block;width:100%;min-height:48px;margin-top:26px;padding:10px 20px;border:1px solid var(--line-strong);border-radius:12px;background:#fff;color:var(--accent-strong);font-weight:650}
.profile-notice-button:hover{background:var(--surface-hover);border-color:var(--line-hover)}
html:has(.profile-notice[open]){overflow:hidden}
@media(max-width:500px){.profile-notice{width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:28px 24px;border-radius:20px}.profile-notice h2{font-size:27px}.profile-notice-mark{margin-bottom:18px}.profile-notice-copy{font-size:15px}.profile-notice-date{padding:13px 14px}.profile-notice-button{margin-top:22px}}
@media print{.profile-notice{display:none!important}}

.reading-card-title { font-weight: 700; }

/* Two shelves in the same reader: correspondence and spiritual guidance. */
.profile-panel:is(#lysty, #nastanovy) > :is(h2, .book-cards, .guidance-sections) {
  width: min(100%, 960px);
  max-width: 960px;
  margin-inline: auto;
}
.book-cards .book-intro { max-width: 62ch; margin: 0; color: var(--text); line-height: 1.65; }
.book-cards .testimony-list-heading { margin: 0 0 1.3rem; }
.book-cards .testimony-grid { align-items: stretch; gap: 14px; }
.book-cards .testimony-card { border-radius: 12px; box-shadow: none; }
.book-cards .testimony-open { padding: 1.2rem 1.35rem; gap: 1rem; border-radius: inherit; }
.book-cards .testimony-open:focus-visible { outline-offset: -3px; }
.book-cards .testimony-card :is(.testimony-title, .reading-card-title) { margin: 0; line-height: 1.36; font-size: 1.22rem; }
.book-cards .book-action { color: var(--accent-strong); font-size: .86rem; font-weight: 600; }
.book-action > span { margin-inline-start: .25rem; }
.book-letter .testimony-card { background: #fcfaf6; border-color: #e3dbce; }
.book-letter .testimony-open:hover { background: #f6f1e8; }
.book-letter .testimony-row-copy .testimony-title { display: flex; align-items: center; gap: .65rem; }
.book-letter .testimony-row-copy .testimony-title::before {
  content: ''; flex: 0 0 1.12rem; height: 1rem; background: center / contain no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20' fill='none' stroke='%23907956' stroke-width='1.5'%3E%3Crect x='1.5' y='2' width='21' height='16' rx='2'/%3E%3Cpath d='m2.5 3.5 9.5 7 9.5-7'/%3E%3C/svg%3E");
}
.book-letter .letter-excerpt { margin: .65rem 0 0; color: #594f44; font-size: .96rem; line-height: 1.58; }
.letter-photo-intro { margin: 0 0 32px; }
.letter-photo-intro .mk-photos { margin: 0; }
.letter-photo-intro .mk-photo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin: 0; }
.letter-photo-intro .mk-photo-grid figure { margin: 0; min-width: 0; }
.letter-photo-intro .mk-photo-grid figcaption { font-size: 14px; line-height: 1.65; margin-top: 10px; text-align: center; }
@media(max-width:650px){
 .letter-photo-intro { margin-bottom: 26px; }
 .letter-photo-intro .mk-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
 .letter-photo-intro .mk-photo-grid figcaption { font-size: 13px; line-height: 1.6; }
}
.book-guidance .testimony-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.book-guidance .testimony-card { border-top: 2px solid #b6a081; }
.book-guidance .testimony-open { min-height: 8.2rem; }
.story-reader-prose .mk-verse { white-space: pre-line; }
.story-reader-prose :is(.mk-ref, .mk-edition) { color: #675d52; font-size: .85em; }
@media (max-width: 900px) {
  .book-guidance .testimony-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .book-cards .testimony-grid { grid-template-columns: 1fr; gap: .75rem; }
  .book-cards .testimony-open { min-height: 0; padding: 1rem 1.1rem; gap: .75rem; }
  .book-cards .testimony-list-heading { gap: .45rem; }
}

.profile-panel#spohady > :is(h2, .book-cards, .memory-encounters) {
  width: min(100%, 960px);
  max-width: 960px;
  margin-inline: auto;
}
#spohady .book-cards + .book-cards, .memory-encounters { margin-top: clamp(2.25rem, 5vw, 3.75rem); }
#spohady .testimony-list-heading h3, .memory-encounters h3 { margin: 0 0 .5rem; }
#spohady .book-cards .testimony-row-copy .reading-card-title {
  margin: 0; color: var(--text); font-size: 1.17rem; line-height: 1.4;
}
.book-personal-memory .testimony-card { background: #f8f5ef; border-top: 2px solid #ac926b; }
.book-personal-memory .testimony-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.book-recollection .testimony-card { background: #fffdfa; }
.memory-encounters > p { margin: 0 0 1.3rem; line-height: 1.6; }
.memory-encounter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
/* Light paper cards with a rounded upper-left corner and a toothed lower edge. */
.memory-encounter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  gap: 12px;
  padding: 22px 28px;
  border: 0;
  border-radius: 50px 0 0 0;
  background: #f6f3eb;
  color: #2d2b26;
  text-decoration: none;
  overflow-wrap: break-word;
  transition: background-color .18s ease;
}
.memory-encounter::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 6px;
  background:
    linear-gradient(135deg, transparent 50%, var(--paper, #fff) 50%) 0 0 / 10px 10px repeat-x,
    linear-gradient(225deg, transparent 50%, var(--paper, #fff) 50%) 0 0 / 10px 10px repeat-x;
  pointer-events: none;
}
.memory-encounter:hover, .memory-encounter:focus-visible {
  background: #efeadf;
  text-decoration: none;
}
.memory-encounter:focus-visible { outline: 2px solid #8b6d43; outline-offset: 3px; }
.memory-encounter-quote {
  display: block;
  height: 32px;
  color: #bba981;
  font: 80px/.7 var(--serif);
}
.memory-encounter .memory-encounter-title {
  margin: 0;
  color: var(--text);
  font: 700 1.17rem/1.4 var(--sans);
  letter-spacing: normal;
  text-wrap: pretty;
}
.memory-encounter:hover .memory-encounter-title, .memory-encounter:focus-visible .memory-encounter-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.memory-encounter p { margin: 8px 0 0; color: #70685b; font-size: 14px; line-height: 1.8; }
.memory-encounter .memory-encounter-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
  color: #7b6849;
  font-size: 14px;
  font-weight: 600;
}
.memory-encounter-action > span { font-size: 22px; line-height: 1; }
@media (max-width: 650px) {
  .memory-encounter-grid, .book-personal-memory .testimony-grid { grid-template-columns: 1fr; }
  .memory-encounter-grid { gap: 16px; }
  .memory-encounter { padding: 20px 24px; gap: 10px; border-top-left-radius: 42px; }
  .memory-encounter-quote { height: 30px; font-size: 68px; }
}

:is(.profile-detail-page,.profile-subpage) .site-top{position:sticky;top:0;z-index:35;background:#fffefaed;backdrop-filter:blur(18px);border-bottom:1px solid transparent;transition:border-color .2s,box-shadow .2s}
:is(.profile-detail-page,.profile-subpage).profile-scrolled .site-top{border-color:var(--line);box-shadow:0 8px 24px #4938200c}

/* Align the full-width header contents with the profile breadcrumbs. */
:is(.profile-detail-page,.profile-subpage) .site-top.frame{
  --width:1080px;
  width:100%;
  max-width:none;
  margin-inline:0;
  padding-inline:max(40px,calc((100% - var(--width))/2));
}
@media(max-width:1000px){
  :is(.profile-detail-page,.profile-subpage) .site-top.frame{padding-inline:28px}
}
@media(max-width:700px){
  :is(.profile-detail-page,.profile-subpage) .site-top.frame{padding-inline:18px}
}

/* The homepage portrait identifies the current profile while reading. */
.header-profile-return{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:11px;min-height:46px;padding:4px 10px;border:0;border-radius:999px;background:transparent;color:var(--ink);font:650 15px/1.35 var(--sans);white-space:nowrap;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .2s,background .2s}
.header-profile-return>.catalog-portrait{flex:none;width:38px;height:38px;margin:0;overflow:hidden;border-radius:50%}
.profile-scrolled .header-profile-return{visibility:visible;opacity:1;pointer-events:auto}
.header-profile-return:hover{background:var(--soft);color:var(--accent-strong)}
@media(min-width:701px) and (max-width:1000px){
  .header-profile-return{gap:8px;padding-inline:6px;font-size:13px}
  .header-profile-return>.catalog-portrait{width:32px;height:32px}
}
@media(max-width:700px){.header-profile-return{display:none}}
@media(prefers-reduced-motion:reduce){.header-profile-return{transition:none}}
@media print{.header-profile-return{display:none}.profile-subpage .site-top{position:static}}
@media(prefers-reduced-motion:reduce){:is(.profile-detail-page,.profile-subpage) .site-top{transition:none}}

@media screen{
  html:has(.profile-subpage){scroll-padding-top:calc(var(--site-header-height) + 12px)}
  .profile-subpage .reading-rail{top:calc(var(--site-header-height) + 20px)}
}
.profile-subpage .mobile-credit{display:none}
@media screen and (max-width:700px){
  .profile-subpage .desktop-credit{display:none}
  .profile-subpage .mobile-credit{display:inline-flex;align-items:center;min-height:44px;color:inherit}
}

/* The approved portrait-and-name layout, shared by every main profile. */
.profile-detail-page:not(.profile-preview-page) .back{--width:1080px;padding:11px 0 14px}
.profile-detail-page:not(.profile-preview-page) .back-link{font-size:13px;font-weight:400;min-height:34px;padding:7px 0;gap:6px}
.profile-detail-page:not(.profile-preview-page) .back-link svg{width:14px;height:14px}
.profile-hero-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:48px;padding:0 0 26px;margin:0 auto 32px}
.profile-hero-split .profile-cover{width:100%;aspect-ratio:3/2;border-radius:17px}
.profile-hero-split .profile-heading{margin:0;text-align:left;max-width:none;min-width:0}
.profile-hero-split .profile-heading h1{max-width:470px;font-size:clamp(34px,3.7vw,48px);font-weight:750;line-height:1.15;text-wrap:balance}
.profile-hero-split .profile-identity{font-size:18px;font-weight:600;justify-content:flex-start;gap:6px 10px;margin-top:20px}
.profile-hero-split .profile-identity>span{flex-basis:100%}
.profile-hero-split .profile-identity>span[aria-hidden]{display:none}
.profile-hero-split .profile-identity>span:last-child{font-weight:500;color:var(--muted);font-size:17px}
.profile-hero-split .profile-description{font-size:17px;line-height:1.75;margin:22px 0 0;max-width:430px;text-wrap:pretty}
.profile-materials-overview{margin-top:36px;padding:32px;border:1px solid var(--line);border-radius:20px;background:#fff}
.profile-materials-overview h2{font-size:30px;margin-bottom:20px;line-height:1.3}
.profile-materials-overview .material-list>a{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:22px 0;border-bottom:1px solid var(--line)}
.profile-materials-overview .material-list>a:first-child{padding-top:0}
.profile-materials-overview .material-list>a:last-child{padding-bottom:0;border-bottom:0}
.profile-materials-overview .material-list h3{font-size:21px;line-height:1.4}
.profile-materials-overview .material-list p{font-size:16px;line-height:1.7;margin-top:6px;color:var(--text)}
.profile-materials-overview .material-list>a>span{color:var(--accent)}
.profile-portrait-caption{font-size:13px;line-height:1.7;color:var(--muted);margin-top:26px}
@media(min-width:701px) and (max-width:950px){
 .profile-hero-split{gap:30px}
 .profile-hero-split .profile-heading h1{font-size:36px}
 .profile-hero-split .profile-identity{font-size:16px}
 .profile-hero-split .profile-description{font-size:16px;margin-top:15px}
}
@media(max-width:700px){
 .profile-detail-page:not(.profile-preview-page) .back{padding:7px 0 12px}
 .profile-hero-split{display:flex;flex-direction:column;gap:23px;padding:0;margin-bottom:26px}
 .profile-hero-split .profile-heading{order:-1;text-align:center}
 .profile-hero-split .profile-heading h1{max-width:none;font-size:34px}
 .profile-hero-split .profile-identity{justify-content:center;font-size:16px;margin-top:10px;gap:2px 8px}
 .profile-hero-split .profile-description{font-size:16px;line-height:1.75;margin:15px auto 0;max-width:430px;text-wrap:balance}
 .profile-hero-split .profile-cover{width:min(390px,100%);border-radius:14px}
 .profile-materials-overview{padding:24px 20px}
 .profile-materials-overview h2{font-size:26px}
 .profile-materials-overview .material-list h3{font-size:20px}
}
@media(max-width:370px){.profile-hero-split .profile-heading h1{font-size:30px}}
@media print{.profile-hero-split{display:block}.profile-hero-split .profile-cover{max-width:300px}}

/* Compact story cards outside, complete story inside the reader. */
/* Lay out distant library cards when they approach the viewport. Their text
   and links remain searchable and available to assistive technology. */
.profile-detail-page .testimony-card{content-visibility:auto;contain-intrinsic-size:auto 260px}
.profile-detail-page .testimony-card:focus-within{content-visibility:visible}
@media print{.profile-detail-page .testimony-card{content-visibility:visible}}
.profile-panel#svidchennia-dopomohy{--testimony-width:960px}
.profile-panel#svidchennia-dopomohy>h2{width:min(100%,var(--testimony-width));max-width:none;margin:0 auto 14px}
.testimonies-minimal{width:min(100%,var(--testimony-width,960px));max-width:none;margin-inline:auto}
.testimony-brief{max-width:760px;color:var(--text);font-size:17px;line-height:1.75;margin:0 0 26px}
.testimony-brief>p{margin:0}
.testimonies-minimal .testimony-list-heading{margin:0 0 20px;display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:10px 24px;scroll-margin-top:var(--profile-anchor-offset,160px)}
.testimonies-minimal .testimony-list-heading h3{font-size:22px;margin:0}
.testimonies-minimal .testimony-section-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 24px;margin:0 0 14px}
.profile-panel .testimony-section-heading h2{max-width:none;margin:0}
.testimonies-minimal .testimony-filters{flex-wrap:wrap;overflow:visible;gap:12px;margin:0 0 28px;padding:0}
.testimonies-minimal .testimony-filters button{font-size:13px;font-weight:500;min-height:40px;padding:8px 12px;border-color:transparent;background:var(--soft)}
.testimonies-minimal .testimony-filters button[aria-pressed="true"]{background:var(--accent-strong);color:#fff}
.testimonies-minimal .testimony-result{margin:0;font-size:13px;line-height:1.5;color:var(--muted);white-space:nowrap}
.testimony-section-heading .testimony-result{margin-left:auto}
.testimonies-minimal .testimony-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;border:0}
.testimonies-minimal .testimony-card{display:block;min-height:0;padding:0;border:1px solid var(--line);border-radius:18px;box-shadow:0 4px 18px #49382008;transition:border-color .18s,box-shadow .18s;background:#fff;scroll-margin-top:160px}
.testimonies-minimal .testimony-card:hover{transform:none;border-color:var(--line-strong);box-shadow:0 8px 26px #49382012}
.testimony-open{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;height:100%;gap:21px;padding:24px;color:var(--ink);border-radius:17px;text-decoration:none}
.testimony-open:hover{background:#fffdf9}
.testimony-open:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.testimony-row-copy{min-width:0}
.testimonies-minimal .testimony-category{display:block;width:fit-content;min-height:0;padding:4px 10px;margin:0 0 16px;border-radius:7px;background:var(--soft);color:var(--accent);font-size:12px;line-height:1.5;letter-spacing:0;font-weight:500}
.testimonies-minimal .testimony-card .testimony-title{font-size:21px;font-weight:650;line-height:1.4;margin:0 0 10px;letter-spacing:-.02em;text-wrap:pretty}
.testimonies-minimal .testimony-author{font-size:14px;line-height:1.55;color:var(--muted);margin:0}
.testimony-read-label{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;border-top:1px solid var(--line);padding-top:14px;color:var(--accent-strong);font-size:14px;font-weight:550}
.testimony-read-label>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--soft);font-size:18px}
.testimonies-minimal .testimony-more{width:fit-content;min-width:230px;min-height:44px;margin:24px auto 0;font-size:14px;font-weight:550;border-radius:10px}
.testimony-invitation{display:grid;grid-template-columns:minmax(0,1fr) 246px;column-gap:32px;row-gap:10px;max-width:800px;margin:56px auto 0;padding:4px 0 4px 27px;border:0;border-left:3px solid #b69a6d;border-radius:0;background:transparent}
.testimony-invitation h3:not(.invite-title){grid-column:1;font-size:23px!important;font-weight:650;line-height:1.3;margin:0!important;color:var(--ink)}
.testimony-invitation>p{grid-column:1;margin:0!important;max-width:460px;font-size:16px!important;line-height:1.65;color:var(--text)}
.testimony-invitation-actions{grid-column:2;grid-row:1 / 3;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;margin:0}
.testimony-invitation .testimony-contact{display:inline-flex;align-items:center;justify-content:flex-start;gap:11px;min-height:44px;padding:7px 10px;border:0;border-radius:7px;background:transparent;color:#624a2c;font:inherit;font-size:15px;line-height:1.35;font-weight:550;text-align:left;text-decoration:none;cursor:pointer;transition:background .15s,color .15s}
.testimony-contact svg{flex:none;width:19px;height:19px}
.testimony-contact small{display:block;margin-top:3px;font-size:12px;font-weight:400;color:var(--muted)}
.testimony-invitation a.testimony-contact{text-decoration:underline;text-underline-offset:4px;text-decoration-color:#c5b398;text-decoration-thickness:1px}
.testimony-invitation .testimony-contact:hover{background:#f5f0e8;color:#4c331c;text-decoration-color:currentColor}
.testimony-invitation .testimony-contact:focus-visible{outline:2px solid var(--accent-strong);outline-offset:3px}
.testimony-invitation .story-copy-fallback{grid-column:1 / -1;margin-top:14px}
@media(max-width:760px){.testimony-invitation{grid-template-columns:minmax(0,1fr);max-width:620px;margin-top:44px;padding-left:23px}.testimony-invitation-actions{grid-column:1;grid-row:auto;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px 18px;margin:6px 0 0 -10px}}
@media(max-width:540px){.testimony-invitation{margin-top:36px;padding-left:19px}.testimony-invitation h3:not(.invite-title){font-size:21px!important}.testimony-invitation-actions{flex-direction:column;align-items:flex-start;gap:6px}.testimony-invitation .story-copy-control{max-width:100%}.testimony-invitation .testimony-contact{max-width:100%;font-size:14px}}
html.testimony-reading,html.testimony-reading body{overflow:hidden}
html:has(.testimonies-minimal){scrollbar-gutter:stable}
.story-dialog{width:min(800px,calc(100% - 40px));max-width:none;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);margin:auto;padding:0;border:1px solid #e9e2d8;border-radius:20px;background:#fff;color:var(--ink);box-shadow:0 24px 100px #211b1940;overflow-y:auto;overscroll-behavior:contain}
.story-dialog{scrollbar-width:thin;scrollbar-color:#b9afa0 transparent}
.story-dialog::-webkit-scrollbar{width:8px}
.story-dialog::-webkit-scrollbar-track{background:transparent;margin-block:14px}
.story-dialog::-webkit-scrollbar-thumb{min-height:40px;border:2px solid transparent;border-radius:999px;background:#b9afa0;background-clip:padding-box}
.story-dialog::-webkit-scrollbar-thumb:hover{background-color:#968772}
.story-dialog::backdrop{background:#28241e66;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.story-dialog-bar{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 18px 10px 34px;background:#fff;border-bottom:1px solid var(--line);font-size:13px;line-height:1.45;color:var(--muted)}
.story-close{display:grid;place-items:center;width:44px;height:44px;flex:none;border:0;border-radius:50%;background:var(--soft);color:var(--ink);cursor:pointer}
.story-close:hover{background:var(--surface-hover)}
.story-close svg{width:22px;height:22px}
.story-reader{padding:38px 48px 30px}
.story-reader-heading{margin-bottom:30px}
.story-reader-category{font-size:13px;line-height:1.6;color:var(--accent);margin:0 0 13px}
.story-reader-heading h1,.testimonies .story-reader-heading h2{max-width:none;margin:0 0 16px;font-size:clamp(27px,3vw,36px);line-height:1.22;font-weight:650;letter-spacing:-.035em;color:var(--ink);text-wrap:balance}
.story-reader-heading h2:focus{outline:none}
.story-reader-author{font-size:15px;line-height:1.65;color:var(--muted);margin:0}
.story-reader-prose{font-size:19px;line-height:1.85;color:var(--reading-ink);overflow-wrap:anywhere}
.story-reader-prose p{margin:0}
.story-reader-prose p+p{margin-top:20px}
.story-reader-footer{display:flex;align-items:center;flex-wrap:wrap;gap:16px 24px;border-top:1px solid var(--line);padding-top:26px;margin-top:36px}
.story-copy{font-family:inherit;font-size:14px;font-weight:550;line-height:1.5;min-height:44px;padding:10px 16px;border:1px solid var(--line-strong);border-radius:9px;background:var(--soft);color:var(--accent-strong);cursor:pointer}
.story-copy:hover{background:var(--surface-hover)}
.story-page-link{display:inline-flex;align-items:center;gap:12px;max-width:100%;min-height:44px;font-size:14px;line-height:1.7;color:var(--accent-strong);text-decoration:none}
.story-page-label{min-width:0;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.story-page-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid var(--line-strong);border-radius:50%;background:var(--surface);color:var(--accent)}
.story-page-icon svg{display:block;width:16px;height:16px}
.story-page-link:hover .story-page-icon{border-color:var(--line-hover);background:var(--soft)}
.story-page{--width:800px;padding:20px 0 70px}
.story-back{display:inline-block;padding:12px 0;margin-bottom:18px;color:var(--muted);font-size:14px;line-height:1.6}
.story-back:hover{color:var(--accent);text-decoration:underline;text-underline-offset:4px}
.story-standalone{padding:30px 48px;border:1px solid var(--line);border-radius:20px;background:#fff}
.story-source{margin-top:32px;font-size:13px;line-height:1.8;color:var(--muted)}
/* Selected layout: three quiet cards, clear titles and softly highlighted topics. */
.testimonies-minimal.testimonies-tiles .testimony-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.testimonies-minimal.testimonies-tiles .testimony-card{border:1px solid #e9e4dc;border-top:2px solid #d7c6ad;border-radius:10px;background:#faf8f4;box-shadow:none;overflow:hidden}
.testimonies-minimal.testimonies-tiles .testimony-card:hover{border-color:#d7c6ad;box-shadow:none}
.testimonies-minimal.testimonies-tiles .testimony-open{padding:20px;min-height:218px;gap:20px;border-radius:9px}
.testimonies-minimal.testimonies-tiles .testimony-open:hover{background:#f4eee4}
.testimonies-minimal.testimonies-tiles .testimony-category{padding:5px 10px;margin:0 0 16px;border-radius:8px;background:#eee8de;color:var(--accent-strong);font-size:12px;line-height:1.5;font-weight:500}
.testimonies-minimal.testimonies-tiles .testimony-card .testimony-title{font-size:21px;font-weight:700;line-height:1.4;margin:0 0 12px}
.testimonies-minimal.testimonies-tiles .testimony-open:hover .testimony-title{color:#80552b}
.testimonies-minimal.testimonies-tiles .testimony-author{font-size:13px;line-height:1.6}
.testimonies-minimal.testimonies-tiles .testimony-read-label{padding:0;border:0;font-size:13px;font-weight:500;color:#756650}
.testimonies-minimal.testimonies-tiles .testimony-read-label>span{width:28px;height:28px;border-radius:50%;background:#fff;border:1px solid #e4dbce;font-size:17px}
@media(max-width:900px){.testimonies-minimal.testimonies-tiles .testimony-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
 .testimony-brief{font-size:16px;margin-bottom:22px}
 .testimonies-minimal .testimony-list-heading h3{font-size:21px}
 .testimonies-minimal .testimony-grid{grid-template-columns:1fr;gap:12px}
 .testimony-open{padding:21px;gap:18px}
 .testimonies-minimal .testimony-card .testimony-title{font-size:19px}
 .testimony-read-label{font-size:14px}
 .testimonies-minimal .testimony-filters button{font-size:12px;padding:8px 10px}
 .testimonies-minimal.testimonies-tiles .testimony-grid{grid-template-columns:1fr;gap:12px}
 .testimonies-minimal.testimonies-tiles .testimony-open{padding:20px;min-height:0;gap:18px}
 .testimonies-minimal.testimonies-tiles .testimony-card .testimony-title{font-size:20px}
 .story-dialog{width:calc(100% - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);border-radius:15px}
 .story-dialog-bar{padding:8px 12px 8px 20px;font-size:12px}
 .story-reader{padding:28px 22px 24px}
 .story-reader-heading h1,.testimonies .story-reader-heading h2{font-size:28px;line-height:1.25}
 .story-reader-prose{font-size:18px;line-height:1.8}
 .story-reader-footer{align-items:flex-start;flex-direction:column;gap:18px;margin-top:28px}
 .story-page{padding-top:10px}
 .story-standalone{padding:28px 20px;border-radius:14px}
}
@media(prefers-reduced-motion:reduce){.testimonies-minimal .testimony-card{transition:none}}
@media print{.story-dialog-bar,.story-reader-footer,.story-back{display:none!important}.story-standalone{border:0;padding:0}.story-dialog[open]{position:absolute;width:100%;max-height:none;overflow:visible;border:0;box-shadow:none}.story-dialog[open]::backdrop{background:#fff}}

/* The same quiet reader as testimonies, with an event date and photograph. */
.profile-panel#podii>h2{width:min(100%,960px);max-width:none;margin-inline:auto}
.profile-event-content .profile-event-title a{color:inherit;text-decoration:none}
.profile-event-content .profile-event-title a:hover{color:var(--accent-strong)}
.profile-event-read{display:inline-flex;align-items:center;gap:10px;min-height:44px;margin-top:auto;font-size:14px;font-weight:600;color:var(--accent-strong);text-decoration:underline;text-underline-offset:4px}
.profile-event-read:hover{color:var(--accent)}
.profile-events-toggle{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;margin:24px 0 0;padding:12px 20px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);color:var(--accent-strong);font-size:15px;font-weight:700;line-height:1.5;cursor:pointer}
.profile-events-toggle:hover{background:var(--surface-hover)}
.profile-events-count{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;padding:2px 8px;border-radius:999px;background:var(--surface-raised);font-size:13px}
.profile-events-toggle[aria-expanded="true"]>span[aria-hidden]{transform:rotate(180deg)}
@media print{.profile-event-card[hidden]{display:grid!important}.profile-events-toggle{display:none!important}}
html.event-reading,html.event-reading body{overflow:hidden}
.event-reader-date{display:block;margin:0 0 15px;font-size:14px;line-height:1.6;color:var(--accent)}
.event-reader .story-reader-heading h2,.event-reader .story-reader-heading h1{max-width:none;margin:0;font-size:clamp(27px,3vw,36px);font-weight:650;line-height:1.25;letter-spacing:-.035em;text-wrap:pretty}
.event-gallery{margin:0 0 30px}
.event-gallery-heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:5px 16px;margin-bottom:14px;font-size:13px;color:var(--muted)}
.event-gallery-heading>span:first-child{color:var(--ink);font-size:16px;font-weight:600}
.event-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 12px}
.event-gallery-item{min-width:0;margin:0}
.event-gallery-photo{display:block;position:relative;width:100%;margin-inline:auto;padding:0;overflow:hidden;border:0;border-radius:12px;background:transparent;color:var(--accent-strong)}
.event-gallery-photo img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;max-height:none;padding:0}
.event-gallery-photo:hover{box-shadow:0 3px 12px #49382012}
.event-photo-zoom{position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#fffffff0;box-shadow:0 1px 6px #49382015}
.event-photo-zoom svg{width:17px;height:17px}
.event-gallery-item figcaption{margin-top:9px;font-size:12px;line-height:1.6;color:var(--muted)}
.event-photo-demo{display:block;margin-bottom:2px;font-size:11px;color:var(--accent)}
.event-gallery-demo-note{margin:0 0 15px;font-size:12px;line-height:1.6;color:var(--muted)}
.event-gallery-grid:has(>.event-gallery-item:only-child){grid-template-columns:1fr}
.event-gallery-item:only-child .event-gallery-photo img{aspect-ratio:auto;object-fit:contain}
.event-photo-credit{width:fit-content;max-width:100%;margin:18px 0 0;padding:10px 14px;border:1px solid #e6e6e2;border-radius:10px;background:#f2f2f0;font-size:12px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.event-photo-credit a{color:var(--accent-strong);text-decoration:underline;text-underline-offset:3px}
.event-prose+.event-gallery{margin-top:32px}
.event-prose{font-size:19px;line-height:1.85;color:var(--reading-ink);overflow-wrap:anywhere}
.event-prose p{margin:0}
.event-prose p+p{margin-top:20px}
.event-prose a{color:#245cac;text-decoration:underline;text-underline-offset:3px}
.event-dialog .event-reader-content{min-width:0}
.event-videos{margin-top:36px;padding-top:28px;border-top:1px solid var(--line)}
.event-videos>.event-videos-title{margin:0 0 24px;font-size:24px;font-weight:600;line-height:1.35}
.event-video{width:min(100%,568px);margin:0 auto 32px}
.event-video:last-child{margin-bottom:0}
.event-video .event-video-title{margin:0 0 8px;font-size:20px;font-weight:600;line-height:1.4;letter-spacing:-.045em;text-wrap:balance}
.event-dialog .event-video-title{letter-spacing:-.025em}
.event-video-description{margin:0 0 14px;font-size:14px;line-height:1.7;color:var(--muted)}
.event-video video{display:block;width:100%;height:auto;aspect-ratio:568/320;border-radius:12px;background:#211e1a}
.event-video-transcript{margin-top:14px;font-size:14px;line-height:1.75;color:var(--reading-ink)}
.event-video-transcript summary{width:fit-content;min-height:36px;padding:5px 0;color:var(--accent-strong);cursor:pointer}
.event-video-transcript p{margin:10px 0 0}
@media(max-width:650px){.event-reader .story-reader-heading h2,.event-reader .story-reader-heading h1{font-size:27px}.event-prose{font-size:18px;line-height:1.8}.event-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.event-gallery{margin-bottom:24px}}
@media(max-width:450px){.event-gallery-grid{grid-template-columns:1fr}.event-gallery-heading{display:block}.event-gallery-heading>span{display:block}.event-gallery-heading>span+span{margin-top:4px}}

/* Put navigation in the outside margin, keeping a generous, unboxed reading area. */
.profile-wide-reading{--reading-rail:180px;--reading-gap:44px;--biography-measure:880px}
.profile-wide-reading .profile-sections{position:relative;left:50%;transform:translateX(-50%);width:min(1480px,calc(100vw - 64px));max-width:none}
.profile-wide-reading .profile-panels{border:0;border-radius:0;box-shadow:none;overflow:visible;background:transparent;margin-top:12px}
.profile-wide-reading .profile-panel{padding:40px 0}
.profile-wide-reading #biohrafiia{width:100%;max-width:calc(var(--reading-rail) + var(--reading-gap) + var(--biography-measure));margin-inline:auto;padding-inline:0}
.profile-wide-reading #biohrafiia>h2,.profile-wide-reading .profile-biography-heading{max-width:var(--biography-measure);margin:0 0 28px calc(var(--reading-rail) + var(--reading-gap))}
.profile-biography-heading{display:flex;align-items:center;justify-content:space-between;gap:14px 28px;flex-wrap:wrap}
.profile-biography-heading h2{margin:0}
.biography-font-controls{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:14px;line-height:1.4}
.biography-font-controls[hidden]{display:none}
.biography-font-buttons{display:flex;gap:2px;padding:3px;background:var(--soft);border-radius:10px}
.biography-font-buttons button{min-width:42px;min-height:42px;padding:6px;background:transparent;border:0;border-radius:7px;color:var(--ink);font:500 17px/1 var(--sans);cursor:pointer}
.biography-font-buttons button:hover:not(:disabled){background:white;box-shadow:0 1px 4px #33281714}
.biography-font-buttons button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.biography-font-buttons button:disabled{opacity:.35;cursor:default}
.biography-font-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.profile-wide-reading .profile-biography-layout{display:grid;grid-template-columns:var(--reading-rail) minmax(0,1fr);gap:var(--reading-gap);max-width:none}
.profile-wide-reading .profile-biography-prose{max-width:var(--biography-measure);margin:0;font-size:var(--biography-font-size,18px);line-height:1.85}
.profile-wide-reading .profile-biography-chapter h3{font-size:25px!important;font-weight:650}
.profile-wide-reading #bio-zhyttievyi-shliakh{display:block;height:0}
.profile-wide-reading .profile-biography-subsection h4{font-size:24px;margin-top:26px}
.profile-wide-reading .profile-biography-layout .profile-biography-contents{position:sticky;top:var(--profile-anchor-offset,160px);align-self:start;margin:0;padding:0;border:0;background:none;box-shadow:none}
.profile-wide-reading .profile-biography-contents>summary{padding:0 0 16px;min-height:0;color:var(--muted);font-size:12px;line-height:1.5}
.profile-wide-reading .profile-biography-layout .profile-biography-contents nav{max-height:calc(100dvh - var(--profile-anchor-offset,160px) - 70px);overflow-y:auto;border:0;padding:0 6px 0 0;scrollbar-width:thin}
.profile-wide-reading .profile-biography-contents a{padding:9px 0;font-size:14px;font-weight:500;line-height:1.6;border-radius:0;background:none}
.profile-wide-reading .profile-biography-contents ol ol{margin:3px 0 8px 0;padding-left:13px}
.profile-wide-reading .profile-biography-contents ol ol a{padding:7px 0;font-size:13px}
.profile-wide-reading .profile-biography-contents a[aria-current],.profile-wide-reading .profile-biography-contents a.is-current-parent{color:var(--accent-strong);font-weight:650;background:none}
.profile-wide-reading .profile-biography-contents a[aria-current]{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.profile-wide-reading .profile-biography-contents a:hover{background:none;color:var(--accent);text-decoration:underline;text-underline-offset:4px}
.reader-wide-page{--reading-rail:180px;--reading-gap:44px}
.reader-wide-page .reading-wide{width:min(1480px,calc(100% - 64px))}
.reading-wide .article-heading,.reading-wide .material-breadcrumbs,.reading-wide .read-back{max-width:1080px;margin-left:calc(var(--reading-rail) + var(--reading-gap));text-align:left}
.reading-wide .article-heading>p{max-width:800px;margin-left:0}
.reading-columns{display:grid;grid-template-columns:var(--reading-rail) minmax(0,1fr);gap:var(--reading-gap)}
.reading-body{width:100%;max-width:1080px;min-width:0}
.reading-rail{position:sticky;align-self:start;top:28px;min-width:0}
.reading-wide .reader-contents summary{font-size:12px;color:var(--muted);min-height:44px;padding:10px 0}
.reading-wide .reader-contents nav{max-height:calc(100dvh - 100px);overflow-y:auto;scrollbar-width:thin}
.reading-wide .reader-contents ol{list-style:none;margin:4px 0 0;padding:0 7px 0 0}
.reading-wide .reader-contents li{padding:0;margin:0 0 4px}
.reading-wide .reader-contents a{display:block;padding:9px 0;font-size:14px;line-height:1.6}
.reading-wide .read-controls{border:0;padding:0 0 12px;justify-content:flex-end}
.reading-wide .reading-progress{margin-bottom:28px}
.reading-wide .reading-text{color:var(--reading-ink)}
/* Gold behind the selected heading only; no change to line wrapping or spacing. */
.reading-heading-mark{border-radius:5px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.reading-heading-mark.is-highlighted{animation:reading-heading-highlight 2s ease-out}
@keyframes reading-heading-highlight{
  0%,100%{background-color:transparent;box-shadow:0 0 0 .18em transparent}
  12%,65%{background-color:#f5e6b5;box-shadow:0 0 0 .18em #f5e6b5}
}
@media(prefers-reduced-motion:reduce){
 .reading-heading-mark.is-highlighted{animation:none;background-color:#f5e6b5;box-shadow:0 0 0 .18em #f5e6b5}
}
@media(max-width:1099px){
 .profile-wide-reading .profile-sections{width:100%;left:auto;transform:none}
 .profile-wide-reading #biohrafiia{max-width:var(--biography-measure)}
 .profile-wide-reading .profile-biography-layout{display:block}
 .profile-wide-reading #biohrafiia>h2,.profile-wide-reading .profile-biography-heading{margin:0 0 10px}
 .profile-wide-reading .profile-biography-layout .profile-biography-contents{position:static;margin:0 0 26px}
 .profile-wide-reading .profile-biography-contents>summary{min-height:44px;padding:8px 0;font-size:14px;color:var(--accent-strong)}
 .profile-wide-reading .profile-biography-layout .profile-biography-contents nav{max-height:300px;padding-bottom:14px;border-bottom:1px solid var(--line)}
 .reader-wide-page .reading-wide{width:min(960px,calc(100% - 56px))}
 .reading-wide .article-heading,.reading-wide .material-breadcrumbs,.reading-wide .read-back{margin-left:0}
 .reading-columns{display:block}
 .reading-rail{position:static;margin-bottom:14px}
 .reading-wide .reader-contents nav{max-height:300px}
 .reading-wide .reader-contents summary{font-size:14px}
}
@media(max-width:700px){
 .profile-wide-reading .profile-panel{padding:30px 0}
 .profile-wide-reading .profile-biography-prose{font-size:var(--biography-font-size,17px);line-height:1.8}
 .profile-biography-heading{align-items:flex-start;gap:12px}
 .biography-font-controls{font-size:13px;gap:10px}
 .profile-wide-reading .profile-biography-chapter h3{font-size:22px!important}
 .profile-wide-reading .profile-biography-subsection h4{font-size:21px}
 .reader-wide-page .reading-wide{width:calc(100% - 36px)}
 .reading-wide .article-heading h1{font-size:36px}
}
@media print{
 .profile-wide-reading .profile-sections{width:100%;left:auto;transform:none}
 .profile-wide-reading .profile-biography-layout,.reading-columns{display:block}
 .profile-wide-reading #biohrafiia>h2,.profile-wide-reading .profile-biography-heading,.reading-wide .article-heading,.reading-wide .read-back{margin-left:0}
 .biography-font-controls{display:none}
 .reading-rail,.profile-wide-reading .profile-biography-contents{display:none}
 .reader-wide-page .reading-wide{width:100%}
}

/* A continuous life story with quieter period markers and nested navigation. */
.biography-continuous .biography-anchor-alias{display:block;height:0;overflow:hidden}
.biography-continuous .profile-biography-chapter{margin:0;padding:0;border:0}
.biography-continuous .profile-biography-chapter+.profile-biography-chapter,
.biography-continuous #biohrafiia-prodovzhennia>.profile-biography-chapter{margin-top:64px}
.biography-continuous .biography-period-heading{border-top:1px solid var(--line);padding-top:28px;margin-bottom:30px}
.biography-continuous>.profile-biography-chapter:first-child .biography-period-heading{border:0;padding:0}
.biography-continuous .biography-period-years{margin:0 0 8px;font:500 13px/1.5 var(--sans);letter-spacing:.04em;color:var(--accent)}
.profile-wide-reading .biography-continuous .biography-period-heading h3{font-size:28px!important;line-height:1.3;margin:0;font-weight:650}
.profile-wide-reading .biography-continuous .profile-biography-subsection h4{font-size:23px;line-height:1.4;font-weight:600;margin:38px 0 18px}
.profile-wide-reading .biography-continuous .profile-biography-subsection:first-of-type h4{margin-top:0}
.biography-continuous .profile-biography-subsection>p{margin:0 0 1.15em}
/* A dated collection of church awards, with the original descriptions intact. */
.biography-continuous .biography-awards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;list-style:none;margin:24px 0 32px;padding:0}
.biography-awards .biography-award{--award-bg:#f5eee2;--award-line:#e9ddc8;--award-ink:#806339;min-width:0;margin:0;padding:24px 20px;border:1px solid var(--award-line);border-radius:20px;background:var(--award-bg)}
.biography-award:nth-child(4n+2){--award-bg:#edf2ed;--award-line:#dce5da;--award-ink:#526e56}
.biography-award:nth-child(4n+3){--award-bg:#f5ece8;--award-line:#eadbd4;--award-ink:#895f50}
.biography-award:nth-child(4n+4){--award-bg:#edf0f5;--award-line:#dce2eb;--award-ink:#5b6c82}
.biography-award-heading{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.biography-award-heading>div{min-width:0}
.biography-award-heading .biography-award-title{margin:0 0 5px;color:var(--award-ink);font:650 21px/1.3 var(--sans)}
.biography-award-heading time{display:block;color:#6a6055;font-size:13px;line-height:1.5;white-space:nowrap;font-variant-numeric:tabular-nums}
.biography-award-medallion{position:relative;display:grid;place-items:center;flex:0 0 72px;width:72px;height:72px;overflow:hidden;border:3px solid #fffcf5;border-radius:50%;background:#fffcf5b3;color:var(--award-ink);box-shadow:0 2px 6px #44351f0d}
.biography-award-medallion svg{width:34px;height:38px}
.biography-awards .biography-award-description{margin:0;color:var(--reading-ink);font-size:calc(var(--biography-font-size,18px) - 2px);line-height:1.7;overflow-wrap:break-word}
.biography-monastery .biography-award-heading{margin-bottom:18px}
.biography-monastery .biography-monastery-date{margin:0;color:var(--award-ink);font:600 17px/1.5 var(--sans)}
.biography-monastery .biography-monastery-name{margin:0 0 14px;color:var(--award-ink);font:650 20px/1.45 var(--sans);overflow-wrap:break-word}
.biography-monastery .biography-award-medallion svg{width:38px;height:38px}
@media(min-width:1100px) and (max-width:1240px),(min-width:561px) and (max-width:800px){
 .biography-continuous .biography-awards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
 .biography-continuous .biography-awards{grid-template-columns:minmax(0,1fr);gap:14px}
 .biography-awards .biography-award{padding:22px;border-radius:18px}
 .biography-awards .biography-award-description{font-size:var(--biography-font-size,17px)}
}
@media print{.biography-awards .biography-award{break-inside:avoid}}

.biography-continuous .biography-pause{width:48px;margin:30px auto;border:0;border-top:1px solid var(--line)}
.biography-continuous .biography-farewell-quote{position:relative;margin:32px 0 42px;padding:34px 62px 30px 78px;border-left:4px solid #94573d;border-radius:0 16px 16px 0;background:#f7f2ec}
.biography-farewell-quote .biography-quote-mark{position:absolute;top:16px;left:20px;color:#94573d;font:88px/1 Georgia,serif;pointer-events:none}
.biography-farewell-quote .biography-quote-mark-end{top:calc(100% - .38em);left:auto;right:-42px;bottom:auto}
.biography-farewell-quote blockquote{position:relative;margin:0;padding:0;border:0}
.biography-farewell-quote blockquote p{margin:0;color:#49372b;font-size:calc(var(--biography-font-size,18px) + 8px);font-weight:650;line-height:1.55}
.biography-farewell-quote figcaption{display:grid;gap:3px;margin-top:22px;color:#75614f;font-size:14px;line-height:1.6}
.biography-farewell-quote figcaption strong{color:#70472f;font-size:15px;font-weight:700}
.biography-continuous .biography-more-control{display:flex;justify-content:center;margin:30px 0 0;padding-top:22px;border-top:1px solid var(--line)}
.biography-more{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:48px;padding:12px 24px;border:1px solid #d5c8b4;border-radius:12px;background:var(--soft);color:var(--accent-strong);font:600 16px/1.5 var(--sans);cursor:pointer;transition:background .2s,color .2s}
.biography-more:hover{background:var(--accent-strong);color:white}
.biography-more:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.biography-continuous [hidden]{display:none!important}
.profile-wide-reading .profile-biography-contents ol{display:block}
.profile-wide-reading .profile-biography-contents>nav>ol>li{margin-bottom:16px}
.profile-wide-reading .profile-biography-contents>nav>ol>li>a{font-weight:600}
.profile-wide-reading .profile-biography-contents ol ol{border-left:1px solid var(--line);padding-left:12px}
@media(max-width:700px){
 .biography-continuous .biography-farewell-quote{margin:26px 0 34px;padding:58px 24px 30px;border-radius:0 12px 12px 0}
 .biography-farewell-quote .biography-quote-mark{top:8px;left:18px;font-size:72px}
 .biography-farewell-quote .biography-quote-mark-end{top:calc(100% - .38em);left:auto;right:-12px;bottom:auto}
 .biography-farewell-quote blockquote{padding-right:24px}
 .biography-farewell-quote blockquote p{font-size:calc(var(--biography-font-size,17px) + 5px)}
 .profile-wide-reading .biography-continuous .biography-period-heading h3{font-size:25px!important}
 .profile-wide-reading .biography-continuous .profile-biography-subsection h4{font-size:21px}
 .biography-continuous .profile-biography-chapter+.profile-biography-chapter,
 .biography-continuous #biohrafiia-prodovzhennia>.profile-biography-chapter{margin-top:46px}
 .biography-more{width:100%;font-size:15px}
}
@media print{
 .biography-continuous #biohrafiia-prodovzhennia[hidden]{display:block!important}
 .biography-continuous .biography-more-control{display:none}
}

/* Story invitations and their design comparison pages. */
.invitation-preview-page .invitation-preview-shell{width:min(1120px,calc(100% - 64px));margin:14px auto 64px}
.invite-review-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}
.invite-review-header p{font-size:12px;color:#777168;margin:0 0 8px}
.invite-review-header h1{font-size:27px;line-height:1.25;letter-spacing:-.025em;margin:0}
.invite-review-header>a{font-size:13px;color:#716149;text-decoration:underline;text-underline-offset:4px}
.invite-review-nav{display:flex;flex-wrap:wrap;gap:8px;padding:12px;border:1px solid #e7e2da;border-radius:13px;background:#faf9f6}
.invite-review-nav a{display:flex;align-items:center;gap:8px;min-height:42px;padding:9px 14px;border:1px solid transparent;border-radius:8px;color:#62594d;font-size:14px}
.invite-review-nav a>span{font-size:12px;color:#8c8172}
.invite-review-nav a:hover{background:#eee8df}
.invite-review-nav a[aria-current]{border-color:#d3c5af;background:#fff;color:#594329;font-weight:650;box-shadow:0 2px 6px #4a361509}
.invite-review-description{font-size:14px;color:#777168;margin:14px 0 30px}
.invite-context h2{font-size:21px;margin:0 0 16px;letter-spacing:-.02em}
.invite-context-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.invite-context-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:20px 22px;border:1px solid #e9e5dd;border-top:2px solid #d6cab5;border-radius:12px;background:#f9f8f5;color:#292723}
.invite-context-card>span:first-child{font-size:11px;color:#796952;background:#efebe3;padding:4px 8px;border-radius:6px;margin-bottom:12px}
.invite-context-card h3{font-size:18px;font-weight:650;line-height:1.4;margin:0 0 8px;letter-spacing:-.015em}
.invite-context-card p{font-size:12px;line-height:1.5;color:#777168;margin:0 0 14px}
.invite-context-card .invite-context-read{font-size:12px;color:#786143;margin-top:auto}
.invite-context-card:hover h3{color:#855322}
:is(.invitation-preview-page,.testimonies) .testimony-invitation{display:block;width:100%;max-width:none;padding:0;margin:44px auto;border:0;border-radius:0;background:none;box-shadow:none}
:is(.invitation-preview-page,.testimonies) .invite-copy .invite-title{font-size:26px;font-weight:650;line-height:1.25;letter-spacing:-.025em;margin:0 0 13px;color:inherit}
:is(.invitation-preview-page,.testimonies) .invite-copy p{font-size:16px;line-height:1.65;margin:0;color:inherit}
.invite-eyebrow{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase;font-weight:600;margin-bottom:15px;color:#8c6c3e}
.invite-contacts{display:flex;gap:12px;align-items:stretch;min-width:0}
.invite-contact{display:flex;align-items:center;gap:12px;padding:12px 16px;border:1px solid #ded3c2;border-radius:10px;background:#fff;color:#60482c;font-family:inherit;font-size:15px;font-weight:550;line-height:1.4;text-align:left;cursor:pointer;transition:background .16s,border-color .16s,color .16s;min-height:60px}
.invite-contact svg{flex:none}
.invite-contact small{display:block;font-size:11px;line-height:1.5;font-weight:400;margin-top:2px;color:#70685e}
.invite-contact:hover{background:#f3eee5;border-color:#a88b60;color:#4b3119}
.invite-contact:focus-visible,.invite-review-nav a:focus-visible,.invite-context-card:focus-visible{outline:3px solid #ad854b;outline-offset:4px}
.invite-following-section{padding-top:28px;border-top:1px solid #ebe6df}
.invite-following-section>span{color:#91897e;font-size:11px}
.invite-following-section h2{font-size:28px;line-height:1.3;margin:6px 0 0}
:is(.invitation-preview-page,.testimonies) .story-copy-fallback{width:100%;grid-column:1/-1;font-size:14px;margin-top:16px}
:is(.invitation-preview-page,.testimonies) .story-copy-fallback[hidden]{display:none}
:is(.invitation-preview-page,.testimonies) .story-copy-fallback input{width:100%;padding:10px;margin-top:8px;border:1px solid #d3c5af;border-radius:7px;background:#fff;color:#292723}

/* 1: a low horizontal invitation, smaller than the story cards. */
.invitation-preview-page .invite-design-1{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:28px;border-top:1px solid #ddd2c1;border-bottom:1px solid #ddd2c1;padding:24px 0}
.invite-design-1 .invite-eyebrow{display:none}
.invitation-preview-page .invite-design-1 .invite-title{font-size:22px;margin-bottom:7px}
.invitation-preview-page .invite-design-1 p{font-size:14px;max-width:460px}
.invite-design-1 .invite-contact{font-size:13px;min-height:52px;padding:9px 12px;border-radius:8px}
.invite-design-1 .invite-contact svg{width:18px;height:18px}
.invite-design-1 .invite-contacts{gap:8px}
.invite-design-1 .invite-contact small{font-size:10px}

/* 2: centered, editorial, open white space and a warm serif heading. */
.invitation-preview-page .invite-design-2{max-width:780px;text-align:center;padding:8px 24px 16px}
.invite-design-2 .invite-ornament{display:block;color:#af8750;font-size:23px;margin-bottom:20px}
.invite-design-2 .invite-eyebrow{display:none}
.invitation-preview-page .invite-design-2 .invite-title{font-family:Georgia,'Times New Roman',serif;font-size:40px;line-height:1.2;font-weight:400;color:#60452d;margin-bottom:18px;letter-spacing:-.03em}
.invitation-preview-page .invite-design-2 p{max-width:570px;margin-inline:auto;font-size:16px;color:#736b61}
.invite-design-2 .invite-contacts{justify-content:center;margin-top:24px;gap:28px}
.invite-design-2 .invite-contact{background:none;border:0;border-radius:0;border-bottom:1px solid #c9b79c;padding:10px 2px;min-height:48px;font-size:15px}
.invite-design-2 .invite-contact small{display:none}
.invite-design-2 .invite-contact:hover{color:#9a5a24;border-color:#9a5a24}

/* 3: contrasting two-part panel, without matching the testimony cards. */
:is(.invitation-preview-page,.testimonies) .invite-design-3{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:36px;align-items:center;background:#453629;border-radius:18px;padding:36px;color:#fffaf2}
.invite-design-3 .invite-eyebrow{color:#dec19a}
:is(.invitation-preview-page,.testimonies) .invite-design-3 .invite-title{font-size:32px;max-width:370px}
:is(.invitation-preview-page,.testimonies) .invite-design-3 .invite-copy p{font-size:16px;color:#e1d7c9;max-width:440px}
.invite-design-3 .invite-contact-panel{background:#fffaf2;padding:23px;border-radius:12px}
.invite-design-3 .invite-channel-label{font-size:12px;line-height:1.4;margin:0 0 14px;color:#796952}
.invite-design-3 .invite-contacts{flex-direction:column;gap:10px}
.invite-design-3 .story-copy-control,.invite-design-3 .invite-contact{width:100%}
.invite-design-3 .invite-contact{overflow-wrap:anywhere;text-decoration:none;border-color:#e8dece;background:transparent;min-height:56px}
.invite-design-3 .invite-contact:hover{background:#f0e6d6;border-color:#ba9c70}

/* 4: a compact blue note; icon, short copy, stacked contact actions. */
.invitation-preview-page .invite-design-4{display:grid;grid-template-columns:50px minmax(0,1fr) auto;align-items:center;gap:22px;max-width:980px;background:#eff5f8;border:1px solid #dbe6ec;border-radius:14px;padding:28px;color:#2c4553}
.invite-design-4 .invite-letter-icon{display:grid;place-items:center;align-self:start;width:50px;height:50px;border-radius:50%;background:#dfeaf0;color:#507286}
.invite-design-4 .invite-eyebrow{display:none}
.invitation-preview-page .invite-design-4 .invite-title{font-size:24px;max-width:300px}
.invitation-preview-page .invite-design-4 p{font-size:14px;max-width:360px;color:#586d79}
.invite-design-4 .invite-contacts{flex-direction:column;gap:6px;border-left:1px solid #d2e0e8;padding-left:24px}
.invite-design-4 .invite-contact{border:0;background:none;border-radius:7px;min-height:48px;padding:7px 9px;font-size:14px;color:#365b70}
.invite-design-4 .invite-contact small{font-size:10px;color:#657e8c}
.invite-design-4 .invite-contact:hover{background:#dfeaf0;color:#173e56}

/* 5: a letter on a light sand surface, with two independent contact tiles. */
.invitation-preview-page .invite-design-5{max-width:930px;padding:25px;background:#f1ece2;border-radius:5px}
.invite-design-5 .invite-paper{background:#fffdf8;border:1px solid #e4d9c6;padding:28px 40px 34px;box-shadow:0 7px 18px #5b42270a}
.invite-design-5 .invite-letter-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid #e6ddce;margin-bottom:25px;color:#937347;font-size:12px}
.invite-design-5 .invite-eyebrow{display:none}
.invitation-preview-page .invite-design-5 .invite-title{font-family:Georgia,'Times New Roman',serif;font-size:31px;font-weight:400;line-height:1.3;color:#59442e}
.invitation-preview-page .invite-design-5 p{font-size:16px;max-width:650px;color:#706559}
.invite-design-5 .invite-contacts{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:25px}
.invite-design-5 .story-copy-control,.invite-design-5 .invite-contact{width:100%}
.invite-design-5 .invite-contact{background:#f5f0e6;border:0;border-radius:4px;min-height:72px;padding:14px 18px}
.invite-design-5 .invite-contact:hover{background:#ece2cf}

@media(max-width:1000px){
 .invitation-preview-page .invite-design-1{grid-template-columns:1fr;gap:18px}
 .invitation-preview-page .invite-design-1 p{max-width:650px}
 .invite-design-1 .invite-contacts{gap:16px}
 .invitation-preview-page .invite-design-4{grid-template-columns:50px minmax(0,1fr);gap:18px}
 .invite-design-4 .invite-contacts{grid-column:2;flex-direction:row;border:0;padding:0;gap:16px}
 .invitation-preview-page .invite-design-4 p{max-width:600px}
}
@media(max-width:700px){
 .invitation-preview-page .invitation-preview-shell{width:calc(100% - 32px);margin-top:8px}
 .invite-review-header{align-items:flex-start;gap:14px}
 .invite-review-header h1{font-size:22px}
 .invite-review-header p{font-size:11px}
 .invite-review-header>a{font-size:12px;max-width:90px;flex:none}
 .invite-review-nav{padding:7px;gap:4px}
 .invite-review-nav a{padding:8px 10px;font-size:12px}
 .invite-review-description{font-size:13px;margin-bottom:24px}
 .invite-context-grid{grid-template-columns:1fr}
 .invite-context-card{padding:16px 18px}
 .invite-context-card:not(:first-child){display:none}
 :is(.invitation-preview-page,.testimonies) .testimony-invitation{margin-block:32px}
 .invite-contacts{flex-direction:column;gap:8px;align-items:stretch}
 .story-copy-control>.invite-contact{width:100%}
 .invite-contact{width:100%;min-height:52px;font-size:14px}
 .invitation-preview-page .invite-design-1{padding:20px 0}
 .invite-design-1 .invite-contacts{display:grid;grid-template-columns:1fr 1fr;gap:7px}
 .invite-design-1 .invite-contact{font-size:12px;padding:9px 6px;gap:7px}
 .invite-design-1 .invite-contact svg{display:none}
 .invitation-preview-page .invite-design-2{padding:6px 6px 14px}
 .invitation-preview-page .invite-design-2 .invite-title{font-size:33px}
 .invite-design-2 .invite-contacts{align-items:center;gap:8px}
 .invite-design-2 .invite-contact{width:auto;justify-content:center}
 :is(.invitation-preview-page,.testimonies) .invite-design-3{grid-template-columns:1fr;gap:24px;padding:25px;border-radius:14px}
 :is(.invitation-preview-page,.testimonies) .invite-design-3 .invite-title{font-size:28px}
 .invite-design-3 .invite-contact-panel{padding:18px}
 .invitation-preview-page .invite-design-4{grid-template-columns:1fr;padding:23px;gap:16px}
 .invite-design-4 .invite-letter-icon{width:43px;height:43px}
 .invite-design-4 .invite-contacts{grid-column:auto;flex-direction:column;border-top:1px solid #d2e0e8;padding-top:12px;gap:4px}
 .invitation-preview-page .invite-design-5{padding:12px}
 .invite-design-5 .invite-paper{padding:20px}
 .invitation-preview-page .invite-design-5 .invite-title{font-size:28px}
 .invite-design-5 .invite-contacts{grid-template-columns:1fr;gap:8px}
 .invite-design-5 .invite-contact{min-height:62px}
}
@media(prefers-reduced-motion:reduce){.invite-contact{transition:none}}

.testimonies .invite-design-3{margin-bottom:0}
.testimonies .invite-copy .invite-title{scroll-margin-top:var(--profile-anchor-offset,160px)}
@media(max-width:380px){.invite-design-3 .invite-contact-panel{padding:12px}.invite-design-3 .invite-contact{gap:8px;padding-inline:10px}}

.mk-reader {max-width:76ch;margin:2em auto;color:inherit;line-height:1.65}
.mk-reader h3,.mk-reader h4{line-height:1.3;margin:1.5em 0 .65em}
.mk-reader .mk-intro,.mk-reader .mk-ref,.mk-reader .mk-edition,.mk-reader .mk-figure figcaption{font-size:.88em;color:#605647}
.mk-chapter{border-bottom:1px solid #dfd9cf;scroll-margin-top:9rem}
.mk-chapter>summary{padding:.95em .12em;cursor:pointer;font-size:1.05em;font-weight:650;line-height:1.36;text-align:left;color:#32291f}
.mk-chapter>summary:hover,.mk-chapter>summary:focus-visible{color:#81511e}
.mk-reader .mk-text{margin:0 0 1.35em;overflow-wrap:anywhere}
.mk-reader .mk-text p{font-size:inherit;line-height:1.72;margin:.85em 0}
.mk-reader .mk-text .mk-verse{white-space:pre-line}
.mk-reader .mk-text .mk-ref{font-size:.83em;margin:.3em 0 1.25em}
.mk-ref a{text-decoration:underline;text-underline-offset:.14em}
.mk-reader .mk-text .mk-edition{font-size:.85em;border-inline-start:2px solid #c6b18d;padding-inline-start:.8em;margin:1em 0}
.mk-reader .mk-figure{margin:1.6em auto;width:min(100%,31rem);text-align:left}
.mk-reader .mk-figure img{height:auto;max-width:100%;width:100%;display:block;border-radius:.45em}
.mk-reader .mk-figure figcaption{margin:.5em 0}
@media print{.mk-chapter>summary{font-weight:bold}.mk-figure{break-inside:avoid}}

.mk-photos {margin:1.7em 0 2em}
.mk-photo-grid {display:grid;grid-template-columns:repeat(var(--frames,1),minmax(0,1fr));gap:clamp(.7rem,2vw,1.3rem);align-items:start}
.mk-photo-grid figure {margin:0;min-width:0;scroll-margin-top:12rem}
.mk-photo-grid a {display:block;padding:0;background:transparent;border-radius:.55rem;overflow:hidden;cursor:zoom-in}
.mk-photo-grid img {display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.mk-photo-grid figure:only-child.portrait {width:min(100%,26rem);justify-self:center}
.mk-photo-grid .portrait img {width:auto;max-width:100%;max-height:33rem;margin-inline:auto}
.mk-photo-grid[data-photo-layout="landscape"]>figure {width:100%;min-width:0}
.mk-photo-grid[data-photo-layout="landscape"]>figure>a {width:100%;max-width:none;aspect-ratio:var(--photo-row-ratio,3/2)}
.mk-photo-grid[data-photo-layout="landscape"]>figure>a>img {width:100%;height:100%;max-width:none;max-height:none;margin:0;object-fit:cover;object-position:var(--photo-position,50% 25%)}
.mk-photo-grid figcaption {margin:.45rem 0 0;color:#514739;font:400 .89rem/1.48 system-ui,sans-serif}
.mk-photo-grid figure:target {outline:2px solid #b49460;outline-offset:4px;border-radius:.35rem}
.mk-scan {margin:.65rem 0 0;color:#645849;font-size:.86rem}
.mk-scan summary {cursor:pointer}
.mk-scan a,.mk-archive a {text-decoration:underline;text-underline-offset:.18em}
.mk-archive {margin:2.4rem 0;line-height:1.55}
.mk-archive h3 {scroll-margin-top:12rem}
.mk-archive ul {padding-inline-start:1.3em;list-style:disc}
.mk-archive li {margin:.42em 0}
@media(max-width:36rem){.mk-photo-grid{grid-template-columns:minmax(0,1fr);row-gap:1.2rem}.mk-photo-grid .portrait img{max-height:27rem}}

/* The profile and the full reader share the same quotation cards. */
.guidance-intro { margin: 0 0 30px; color: var(--text); line-height: 1.65; }
.guidance-quotes { margin-bottom: 42px; scroll-margin-top: var(--profile-anchor-offset, 148px); }
.guidance-quotes-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.guidance-quotes-heading h3 { margin: 0; scroll-margin-top: var(--profile-anchor-offset, 148px); }
.guidance-quotes-heading .guidance-quotes-count { flex-shrink: 0; margin: 0; color: var(--muted); font-size: 13px; }
.guidance-quotes-prose .guidance-quote-list { margin-left: 34px; }
.guidance-quotes-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 22px; }
.guidance-quotes-more { min-width: 220px; min-height: 48px; padding: 11px 26px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--soft); color: var(--accent-strong); font-size: 15px; font-weight: 650; }
.guidance-quotes-more:hover { background: var(--surface-hover); border-color: var(--line-hover); }
.guidance-quotes-collapse { min-height: 44px; padding: 8px 4px; border: 0; background: transparent; color: var(--accent-strong); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.guidance-sections .book-guidance .testimony-list-heading h3 { margin: 0; }
:is(.story-reader-prose, .guidance-quotes-prose) .guidance-language-note {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  margin: 0 0 28px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  box-shadow: 0 4px 20px #49382004;
  break-inside: avoid;
}
.guidance-language-mark {
  color: var(--bronze);
  font: 58px/.95 Georgia, serif;
  user-select: none;
}
:is(.story-reader-prose, .guidance-quotes-prose) .guidance-language-note p {
  margin: 0;
  color: var(--reading-ink);
  font-size: 16px;
  line-height: 1.8;
}
:is(.story-reader-prose, .guidance-quotes-prose) .guidance-language-note .guidance-language-label {
  margin: 2px 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
}
:is(.story-reader-prose, .guidance-quotes-prose) .guidance-quote-list {
  display: grid;
  gap: 12px;
}
:is(.story-reader-prose, .guidance-quotes-prose) .guidance-quote {
  display: flex;
  align-items: center;
  position: relative;
  margin: 0;
  min-height: 92px;
  padding: 17px 24px 17px 78px;
  border: 0;
  border-radius: 11px;
  background: #342a24;
  color: #fff3df;
  font: 500 22px/1.65 var(--sans);
  break-inside: avoid;
}
.guidance-quote-text { min-width: 0; }
.guidance-quote-portrait {
  position: absolute;
  left: -34px;
  top: 50%;
  transform: translateY(-50%);
  width: 78px;
  height: 78px;
  overflow: hidden;
  border: 3px solid #f0dfc5;
  border-radius: 50%;
  background: #e8ded0;
  box-shadow: 0 2px 8px #211b1920;
}
:is(.story-reader-prose, .guidance-quotes-prose) .guidance-quote-portrait img {
  position: absolute;
  left: var(--guidance-photo-left);
  top: var(--guidance-photo-top);
  width: var(--guidance-photo-width);
  max-width: none;
  height: auto;
  margin: 0;
}
:is(.story-reader-prose, .guidance-quotes-prose) .guidance-quote p {
  display: inline;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}
.guidance-quote-mark {
  position: absolute;
  top: 14px;
  left: 52px;
  color: #dbb07b;
  font: 44px/1 Georgia, serif;
  pointer-events: none;
  user-select: none;
}
:is(.story-reader-prose, .guidance-quotes-prose) .guidance-quote-list .guidance-quote-break {
  margin: 0;
  padding: 3px 0;
  color: #796348;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  letter-spacing: .2em;
}
@media(max-width:600px) {
  .guidance-intro { margin-bottom: 24px; }
  .guidance-quotes { margin-bottom: 34px; }
  .guidance-quotes-heading { flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
  .guidance-quotes-heading h3 { flex-basis: 100%; }
  .guidance-quotes-prose .guidance-quote-list { margin-left: 17px; }
  :is(.story-reader-prose, .guidance-quotes-prose) .guidance-language-note {
    display: block;
    position: relative;
    padding: 18px;
    margin-bottom: 22px;
    border-radius: 14px;
  }
  .guidance-language-mark { position: absolute; top: 16px; left: 18px; font-size: 42px; }
  :is(.story-reader-prose, .guidance-quotes-prose) .guidance-language-note .guidance-language-label { padding-left: 30px; margin-top: 0; }
  :is(.story-reader-prose, .guidance-quotes-prose) .guidance-language-note p { font-size: 15px; line-height: 1.75; }
  :is(.story-reader-prose, .guidance-quotes-prose) .guidance-quote-list { gap: 11px; }
  :is(.story-reader-prose, .guidance-quotes-prose) .guidance-quote {
    min-height: 78px;
    padding: 14px 16px 14px 66px;
    border-radius: 10px;
    font-size: 21px;
  }
  .guidance-quote-portrait { width: 58px; height: 58px; left: -17px; border-width: 2px; }
  .guidance-quote-mark { top: 12px; left: 44px; font-size: 32px; }
}
@media print {
  .guidance-quotes-prose .guidance-quote[hidden] { display: flex !important; }
  .guidance-quotes-prose .guidance-quote-break[hidden] { display: block !important; }
  .guidance-quotes-actions, .guidance-quotes-count { display: none !important; }
  :is(.story-reader-prose, .guidance-quotes-prose) .guidance-quote { background: #fff; color: #342a24; border: 1px solid #d6c5ad; }
  :is(.story-reader-prose, .guidance-quotes-prose) .guidance-quote-list { margin-left: 34px; }
}

:is(.biography-continuous,.story-reader-prose,.prose.reading-text) .biography-recollection{
 margin:24px 0 32px;padding:24px 30px 26px;
 border:1px solid #e2d7c5;border-left:3px solid #b39669;border-radius:16px;
 background:#f7f3eb;color:#494239;
}
.profile-biography-prose .biography-recollection{color:var(--reading-ink)}
.biography-recollection-mark{
 display:block;height:27px;margin-bottom:12px;color:#a88a5c;
 font:46px/1 Georgia,serif;pointer-events:none;user-select:none;
}
.biography-recollection>blockquote{margin:0;padding:0;border:0;font:inherit;color:inherit}
.biography-recollection-mark:empty::before{content:'“'}
.biography-recollection>:is(blockquote,.recollection-account) p{margin:0;font:inherit;color:inherit}
.biography-recollection>:is(blockquote,.recollection-account) p+p{margin-top:1em}
.biography-recollection>figcaption{
 margin-top:22px;padding-top:16px;border-top:1px solid #ded1bb;
 font:650 var(--biography-font-size,18px)/1.6 var(--sans);color:#675135;text-align:left;
}
.story-reader-prose>.biography-recollection:first-child{margin-top:0}
.story-reader-heading:has(+.story-reader-prose>.biography-recollection:first-child>figcaption) .story-reader-author{display:none}
@media(max-width:600px){
 :is(.biography-continuous,.story-reader-prose,.prose.reading-text) .biography-recollection{margin:20px 0 28px;padding:18px 17px 20px;border-radius:12px}
 .biography-recollection>figcaption{margin-top:18px;padding-top:14px;font-size:var(--biography-font-size,17px)}
}
@media print{:is(.biography-continuous,.story-reader-prose,.prose.reading-text) .biography-recollection{background:#fff}}

/* Keep chapter spacing when a completed reveal control precedes the chapter. */
.biography-continuous[data-biography-progressive] > .profile-biography-chapter:not(:first-child){margin-top:64px}
@media(max-width:700px){
 .biography-continuous[data-biography-progressive] > .profile-biography-chapter:not(:first-child){margin-top:46px}
}
@media print{
 .biography-continuous[data-biography-progressive] [data-biography-part][hidden]{display:block!important}
 .biography-continuous[data-biography-progressive] [data-biography-control]{display:none!important}
}

.biography-more[data-biography-next="1"] {
  border-color: #ad8955;
}
.biography-more[data-biography-next="1"]:not(:hover) {
  background: #f6eddd;
}

@media screen and (min-width: 701px) and (hover: hover) and (pointer: fine) {
  #biohrafiia-tekst .biography-more:hover {
    background-color: #f1e8da;
    border-color: #bca88b;
    color: var(--accent-strong);
    box-shadow: none;
    translate: none;
  }

  #biohrafiia-tekst .biography-more:hover::after {
    content: none;
  }
}

/* Quotation design 93, fitted to the biography's narrower reading column. */
.biography-continuous .biography-portrait-quote,.biography-portrait-quote.biography-guidance-quote{
 position:relative;display:grid;grid-template-columns:32% minmax(0,1fr);grid-template-rows:1fr auto;
 width:100%;min-width:0;min-height:330px;margin:0 0 42px;padding:28px 32px 28px 0;
 background:#342a24;border:0;border-radius:18px;overflow:hidden;isolation:isolate;
}
.biography-portrait-quote>.biography-portrait-image{
 position:absolute;inset:0 auto 0 0;width:36%;height:100%;overflow:hidden;z-index:-1;
 mask-image:linear-gradient(90deg,#000 46%,transparent 88.166667%);
}
.biography-portrait-image img{
 display:block;width:100%;height:100%;max-height:none;object-fit:cover;
 object-position:var(--quote-photo-position,50% 30%);
 transform:translateX(var(--quote-photo-shift,0%)) scale(var(--quote-photo-scale,1));transform-origin:50% 60%;
}
@media(min-width:701px){
 .biography-portrait-image img[src$="/kadr-otets-mykhail-na-afoni.webp"]{translate:7px 0}
}
.biography-portrait-quote blockquote{
 position:relative;z-index:1;grid-column:2;grid-row:1;align-self:center;margin:0;padding:0 0 0 20px;border:0;
}
.biography-portrait-quote .biography-portrait-mark{
 display:block;height:43px;font:87px/1 Georgia,serif;color:#dbb07b;pointer-events:none;user-select:none;
}
.biography-portrait-quote blockquote p{
 margin:0;font-family:var(--sans);font-size:calc(var(--biography-font-size,18px) + 11px);
 font-weight:650;line-height:1.5;letter-spacing:-.025em;text-wrap:balance;color:#fff3df;
}
.biography-portrait-quote figcaption{
 position:relative;z-index:1;grid-column:2;grid-row:2;display:grid;gap:5px;
 margin:22px 0 0;padding:0 0 0 20px;color:#d3bda1;font:400 13px/1.6 var(--sans);
}
.biography-portrait-quote figcaption strong{color:#f1d6af;font-size:15px;font-weight:700}
.biography-portrait-quote>.biography-portrait-watermark{
 position:absolute;right:18px;bottom:-75px;font:300px/1 Georgia,serif;color:#b97658;opacity:.04;
 z-index:0;pointer-events:none;user-select:none;
}
/* Thematic teachings use the original photographs, with their subject centered. */
.biography-continuous .biography-guidance-quote{margin-top:32px}
.biography-guidance-quote figcaption a{
 justify-self:start;color:#d3bda1;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;
}
.biography-guidance-quote figcaption a:hover{color:#fff3df}
.biography-guidance-quote figcaption a:focus-visible{outline:2px solid #dbb07b;outline-offset:4px;border-radius:2px}
.biography-guidance-quote-long blockquote p{font-size:calc(var(--biography-font-size,18px) + 6px)}
@media(max-width:700px){
 .biography-continuous .biography-portrait-quote,.biography-portrait-quote.biography-guidance-quote{display:block;min-height:0;margin-bottom:34px;padding:205px 25px 28px;border-radius:16px}
 .biography-portrait-quote>.biography-portrait-image{width:100%;height:235px;bottom:auto;mask-image:linear-gradient(#000 65%,transparent)}
 .biography-portrait-image img{object-position:var(--quote-mobile-position,50% 30%);transform:scale(var(--quote-mobile-scale,1))}
 .biography-portrait-quote blockquote,.biography-portrait-quote figcaption{padding:0}
 .biography-portrait-quote .biography-portrait-mark{height:40px;font-size:80px}
 .biography-portrait-quote blockquote p{font-size:calc(var(--biography-font-size,17px) + 9px);line-height:1.55}
 .biography-portrait-quote figcaption{margin-top:22px}
 .biography-portrait-quote>.biography-portrait-watermark{right:5px;bottom:-63px;font-size:230px}
 .biography-guidance-quote-long blockquote p{font-size:calc(var(--biography-font-size,17px) + 5px)}
}

/* Published mobile contents. The original stylesheet remains for design previews. */
.bmc-open{display:none}
.bmc-open svg,.bmc-dialog svg{display:block;width:20px;height:20px;flex-shrink:0}
.bmc-dialog{position:fixed;inset:auto 0 0;width:100%;max-width:620px;height:81dvh;max-height:calc(100dvh - 16px);margin:0 auto;padding:0;border:1px solid #e6ddce;border-bottom:0;border-radius:24px 24px 0 0;background:#fffdf9;color:#342b20;overflow:hidden;box-shadow:0 12px 50px #24170d26}
.bmc-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr);animation:bmc-rise .25s ease-out}
.bmc-dialog::backdrop{background:#28201540;backdrop-filter:blur(2px)}
.bmc-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 18px 18px;flex:none}
.bmc-header p{font-size:18px;font-weight:500;line-height:1.4;color:#786044;margin:0 0 6px}
.bmc-header h2{font-size:24px;line-height:1.25;letter-spacing:-.025em;margin:0}
.bmc-header button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:#f2ece1;flex:none;color:#7a6246}
.bmc-toc{overflow-y:auto;overscroll-behavior:none;padding:0 16px calc(8px + env(safe-area-inset-bottom));scrollbar-width:thin;min-height:0;overflow-anchor:none}
.bmc-group{border-bottom:1px solid #e8e0d3;padding:3px 0}
.bmc-group:last-child{border-bottom:0}
.bmc-group:not([open])>.bmc-children{display:none}
.bmc-group>summary{display:flex;align-items:center;gap:10px;list-style:none;min-height:68px;padding:14px 4px;line-height:1.45;cursor:pointer}
.bmc-group>summary::-webkit-details-marker{display:none}
.bmc-group>summary>span:nth-child(2){flex:1;min-width:0}
.bmc-number{display:grid;place-items:center;font-size:13px;font-weight:650;color:#816b4f;width:26px;height:26px;flex:none;border-radius:50%}
.bmc-group strong{display:block;font-size:18px;font-weight:600}
.bmc-group small{display:block;font-size:14px;color:#786b59;margin-top:4px}
.bmc-group summary svg{width:18px;height:18px;color:#917b5d;transition:transform .18s}
.bmc-group[open] summary svg{transform:rotate(180deg)}
.bmc-group.is-current{background:#f4eee3;border-radius:10px;border-bottom-color:transparent;margin-block:5px;padding-inline:7px}
.bmc-group.is-current .bmc-number{color:#fffaf0;background:#654a2c}
.bmc-children{display:grid;gap:5px;padding:0 0 12px 28px}
.bmc-children a{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:16px;line-height:1.55;min-height:48px;padding:10px;border-radius:8px;color:#62533f}
.bmc-children a:first-child{color:#80613a;font-size:16px}
.bmc-children a svg{width:17px;height:17px}
.bmc-children a:hover{background:#ebe0ce}
.bmc-children a[aria-current]{justify-content:flex-start;background:#654a2c;font-weight:650;color:#fffaf0;box-shadow:0 2px 6px #402b101a}
.bmc-children a[aria-current]::before{content:"";flex:none;width:12px;height:7px;margin:0 2px 4px 1px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}
.bmc-children a[aria-current] svg{margin-left:auto}
.bmc-open:focus-visible,.bmc-dialog :is(button,summary,a):focus-visible{outline:2px solid #9c8058;outline-offset:2px}
html:has(.bmc-dialog[open]){overflow:hidden}
@media(max-width:1099px){
 .bio-mobile-ready .profile-biography-contents{display:none}
 .bmc-open:not([hidden]){position:fixed;bottom:calc(20px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:38;display:flex;align-items:center;gap:9px;min-height:52px;padding:12px 18px;border:1px solid #d5c6b18c;border-radius:28px;background:#f4efe7;color:#654a2c;box-shadow:0 5px 22px #3c2d2724,inset 0 1px 0 #ffffffd9,inset 0 -1px 0 #d6c4a340;font-size:15px;font-weight:650}
 .bmc-open small{border-left:1px solid #bca58480;padding-left:10px;font-size:12px;font-weight:500;white-space:nowrap}
 .bio-mobile-reading .profile-to-top{width:44px;height:44px;padding:0;justify-content:center;font-size:0;gap:0;bottom:calc(22px + env(safe-area-inset-bottom))}
 .bio-mobile-reading .profile-to-top span{font-size:20px}
}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 .bmc-open:not([hidden]){background:linear-gradient(135deg,#ffffff70 0%,#ffffff14 48%,#dfcba81f 100%),rgba(244,239,231,.65);-webkit-backdrop-filter:blur(20px) saturate(120%);backdrop-filter:blur(20px) saturate(120%)}
}
@keyframes bmc-rise{from{transform:translateY(35px);opacity:.6}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.bmc-dialog[open],.bmc-dialog *{animation:none!important;transition:none!important}}
@media print{.bmc-open,.bmc-dialog{display:none!important}}

/* Photo descriptions follow the visible photograph, including narrow portraits. */
:root figure:has(img):not(:has(blockquote)) > figcaption,
.profile-captioned-photo > .profile-portrait-caption{
 width:var(--photo-caption-width,100%);max-width:100%;min-width:0;
 margin-inline:auto;text-align:center;overflow-wrap:anywhere;align-items:center;
}
:root figure:has(img):not(:has(blockquote)) > figcaption a{margin-inline:auto}
.profile-captioned-photo{min-width:0;width:100%}
.profile-captioned-photo > .profile-portrait-caption{margin-top:13px}
@media(max-width:700px){.profile-captioned-photo{width:min(390px,100%)}}

/* A small, unhurried zoom; existing crops and photo colours stay intact. */
.gallery-open{overflow:hidden}
/* Round the actual photograph, not only a wider surrounding frame. */
main img[src*="/media/"],.archive-viewer .pswp__img{border-radius:.55rem}
.mk-photo-grid:not([data-photo-layout="landscape"]) .portrait>.gallery-open{width:min(100%,var(--photo-width,100%),calc(var(--portrait-max-height,33rem)*var(--photo-ratio,1)));max-width:100%;margin-inline:auto}
.mk-photo-grid:not([data-photo-layout="landscape"]) .portrait>.gallery-open>img{width:100%;height:auto}
@media(max-width:36rem){.mk-photo-grid .portrait{--portrait-max-height:27rem}}
.profile-event-image{border-radius:.55rem}
.quote-portrait-image{clip-path:inset(0 round .55rem)}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 main img[src*="/media/"]{
  scale:1;transition:scale .7s cubic-bezier(.2,.6,.35,1);
 }
 main img[src*="/media/"]:hover,
 main :is(.gallery-open,.profile-cover,.catalog-portrait,.profile-event-image,.quote-portrait-image,.biography-portrait-image):hover > img[src*="/media/"]{
  scale:1.015;
 }
}

/* Selected designs for the published Mykhail page. Preview pages keep their own styles. */

/* A stable pastel colour for each testimony category. */
.profile-detail-page [data-testimonies] .testimony-card {
  --story-paper: #f3eddc;
  --story-ink: #735d34;
  background: var(--story-paper);
  border: 1px solid transparent;
  border-radius: 18px 18px 18px 3px;
  box-shadow: none;
}
.profile-detail-page [data-testimonies] .testimony-card[data-category="Здоров’я"] {
  --story-paper: #eaf0e6;
  --story-ink: #506144;
}
.profile-detail-page [data-testimonies] .testimony-card[data-category="Родина"] {
  --story-paper: #f4e6e1;
  --story-ink: #85584a;
}
.profile-detail-page [data-testimonies] .testimony-card[data-category="Покликання"] {
  --story-paper: #ede8f3;
  --story-ink: #6c587e;
}
.profile-detail-page [data-testimonies] .testimony-card[data-category="Праця й побут"] {
  --story-paper: #f3eddc;
  --story-ink: #735d34;
}
.profile-detail-page [data-testimonies] .testimony-card[data-category="Духовна підтримка"] {
  --story-paper: #e5edf2;
  --story-ink: #496578;
}
.profile-detail-page [data-testimonies] .testimony-card:hover {
  border-color: var(--story-ink);
  box-shadow: 0 5px 18px #49382009;
}
.profile-detail-page [data-testimonies] .testimony-open {
  min-height: 240px;
  padding: 24px 22px;
  gap: 22px;
  border-radius: inherit;
}
.profile-detail-page [data-testimonies] .testimony-open:hover {
  background: transparent;
}
.profile-detail-page [data-testimonies] .testimony-category {
  padding: 0;
  margin: 0 0 18px;
  border-radius: 0;
  background: transparent;
  color: var(--story-ink);
  font-size: 12px;
  font-weight: 600;
}
.profile-detail-page [data-testimonies] .testimony-card .testimony-title {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.4;
}
.profile-detail-page [data-testimonies] .testimony-author {
  color: #655e55;
}
.profile-detail-page [data-testimonies] .testimony-read-label {
  color: var(--story-ink);
}
.profile-detail-page [data-testimonies] .testimony-read-label > span {
  width: 32px;
  height: 32px;
  border: 0;
  background: #ffffffa6;
}

/* Letter sheets: the existing title and excerpt stay inside one reading link. */
.profile-detail-page .book-letter .testimony-grid {
  gap: 24px;
}
.profile-detail-page .book-letter .testimony-card {
  position: relative;
  background: linear-gradient(-135deg, #fff 17px, #f5f0e3 17px);
  border: 0;
  border-radius: 0;
  box-shadow: 0 4px 12px #715d3710;
}
.profile-detail-page .book-letter .testimony-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: repeating-linear-gradient(125deg, #a58b69 0 10px, #f5f0e3 10px 20px, #d4c4aa 20px 30px, #f5f0e3 30px 40px);
  pointer-events: none;
}
.profile-detail-page .book-letter .testimony-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border: 12px solid transparent;
  border-bottom-color: #e0d5be;
  border-left-color: #e0d5be;
  pointer-events: none;
}
.profile-detail-page .book-letter .testimony-open {
  min-height: 200px;
  padding: 20px 24px;
  gap: 14px;
  border-radius: 0;
}
.profile-detail-page .book-letter .testimony-open:hover {
  background: transparent;
}
.profile-detail-page .book-letter .testimony-card:hover {
  box-shadow: 0 7px 20px #715d371a;
}
.profile-detail-page .book-letter .testimony-row-copy .testimony-title {
  display: flex;
  margin: 0 0 8px;
  font: 400 27px/1.25 var(--serif);
  letter-spacing: 0;
  color: #4c402e;
}
.profile-detail-page .book-letter .testimony-title::before {
  display: block;
  flex-basis: 22px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20' fill='%23907956'%3E%3Cpath d='M3 2h18a2 2 0 0 1 1.72.98L12 10.4 1.28 2.98A2 2 0 0 1 3 2Zm-2 3v11a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V5l-10.43 7.22a1 1 0 0 1-1.14 0Z'/%3E%3C/svg%3E");
}
.profile-detail-page .book-letter .letter-excerpt {
  margin: 14px 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  font: italic 17px/1.6 var(--serif);
  color: #766343;
}
.profile-detail-page .book-letter .book-action {
  color: #786341;
}

/* A second sheet peeks out near the lower-left corner of recollection cards. */
.profile-detail-page #spohady .book-recollection .testimony-grid {
  padding: 0 0 2px 2px;
}
.profile-detail-page #spohady .book-recollection .testimony-card {
  position: relative;
  isolation: isolate;
  content-visibility: visible;
  overflow: visible;
}
.profile-detail-page #spohady .book-recollection .testimony-card::before {
  content: "";
  position: absolute;
  inset: 0 0 -2px -2px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(ellipse at left bottom, #b29c7d 0%, #c8b79e 20%, transparent 48%);
  pointer-events: none;
}
.profile-detail-page #spohady .book-recollection .testimony-open {
  position: relative;
  background: #fffdfa;
}
.profile-detail-page #spohady .book-recollection .testimony-open:hover {
  background: #fffdf9;
}

/* Three recollections in his own words, with coloured book spines and paper edges. */
.profile-detail-page .book-personal-memory .testimony-grid {
  gap: 24px;
}
.profile-detail-page .book-personal-memory .testimony-card {
  background: #ede7dc;
  border: 1px solid #ded6c7;
  border-left: 6px solid #b3a384;
  border-radius: 3px 12px 12px 3px;
  box-shadow: 3px 4px 0 #e3dfd5, 5px 6px 0 #f3f0e9;
}
.profile-detail-page .book-personal-memory .testimony-card:nth-child(2) {
  background: #e7ebe0;
  border-color: #d5dccd;
  border-left-color: #8f9e7c;
}
.profile-detail-page .book-personal-memory .testimony-card:nth-child(3) {
  background: #ece5f3;
  border-color: #d8cbe5;
  border-left-color: #9d87b3;
  box-shadow: 3px 4px 0 #ded6e7, 5px 6px 0 #f2edf6;
}
.profile-detail-page .book-personal-memory .testimony-open {
  min-height: 270px;
  padding: 28px 22px;
  gap: 28px;
}
.profile-detail-page .book-personal-memory .testimony-open:hover {
  background: #ffffff26;
}
.profile-detail-page .book-personal-memory .testimony-card:hover {
  box-shadow: 3px 4px 0 #e3dfd5, 5px 6px 0 #f3f0e9, 0 10px 22px #4938200c;
}
.profile-detail-page .book-personal-memory .testimony-card:nth-child(3):hover {
  box-shadow: 3px 4px 0 #ded6e7, 5px 6px 0 #f2edf6, 0 10px 22px #4938200c;
}
.profile-detail-page:where(:not(.printed-profile-page)) #spohady .book-personal-memory .reading-card-title {
  margin: 18px 0 0;
  font: 400 25px/1.38 var(--serif);
  letter-spacing: -.015em;
  color: #4b4236;
  text-wrap: pretty;
}
.profile-detail-page .book-personal-memory .book-action {
  padding-top: 18px;
  border-top: 1px solid #93846938;
  color: #746143;
}

/* On a wide screen the description faces the inline video. */
@media(min-width:901px) {
  .profile-detail-page .profile-video-section > h3 {
    margin-bottom: 28px;
  }
  .profile-detail-page .profile-recording {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    grid-template-rows: 1fr auto auto 1fr;
    align-items: start;
    column-gap: 40px;
    width: 100%;
  }
  .profile-detail-page .profile-recording > h4 {
    grid-column: 1;
    grid-row: 2;
    margin: 0 0 16px;
    font-size: 25px;
    line-height: 1.35;
  }
  .profile-detail-page .profile-recording-description {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
    font-size: 16px;
    line-height: 1.85;
  }
  .profile-detail-page .profile-recording-player {
    grid-column: 2;
    grid-row: 1 / 5;
    align-self: center;
    min-width: 0;
  }
  .profile-detail-page .profile-recording-transcript {
    grid-column: 1 / -1;
    grid-row: 5;
  }
}

/* Clear playback affordance on the archival footage. */
.profile-detail-page .profile-recording-play {
  width: clamp(76px, 10vw, 96px);
  height: clamp(76px, 10vw, 96px);
  border: 3px solid #fff;
  background: #241f19c7;
  color: #fff;
  box-shadow: 0 8px 28px #0006;
}
.profile-detail-page .profile-recording-play svg {
  width: 58%;
  height: 58%;
}
.profile-detail-page .profile-recording-play .recording-play-icon path {
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linejoin: round;
}
.profile-detail-page .profile-recording-play:hover {
  background: #322a21f2;
}
.profile-detail-page .profile-recording-player:not(.is-playing) .profile-recording-play::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  pointer-events: none;
  animation: recording-play-halo 1.4s ease-out infinite;
}
@keyframes recording-play-halo {
  0% { transform: scale(.97); opacity: .4; }
  70%, 100% { transform: scale(1.16); opacity: 0; }
}

.profile-video-expand {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 5px 10px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 9px;
  background: rgb(26 24 20 / 88%);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.profile-video-expand svg { flex: none; width: 19px; height: 19px; }
.profile-video-expand[hidden] { display: none; }
.profile-video-expand::before { content: ""; position: absolute; inset: -2px; }
/* iPhone places its own media controls along the top of the picture. */
@supports (-webkit-touch-callout: none) {
  .profile-video-expand { --expand-top: 38px; top: var(--expand-top); }
}
@media (pointer: coarse) and (max-width: 700px), (pointer: coarse) and (max-height: 540px) {
  .profile-recording-player:not(.is-expanded) {
    display: grid;
    grid-template: "expand" auto "video" auto / minmax(0, 1fr);
  }
  .profile-recording-player:not(.is-expanded) > video,
  .profile-recording-player:not(.is-expanded) > .profile-recording-play {
    grid-area: video;
  }
  .profile-recording-player:not(.is-expanded) > .profile-video-expand {
    grid-area: expand;
    justify-self: start;
    position: relative;
    inset: auto;
    margin-bottom: 8px;
    background: #211e1a;
  }
  .profile-recording-player:not(.is-expanded):has(> .profile-video-expand:not([hidden])) > video::-webkit-media-controls-fullscreen-button {
    display: none;
  }
  @supports (-webkit-touch-callout: none) {
    /* iPhone draws inline fullscreen and Picture in Picture together in this corner. */
    .profile-recording-player:not(.is-expanded):has(> .profile-video-expand:not([hidden])) > video::-webkit-media-controls {
      clip-path: polygon(0 42px, 100px 42px, 100px 0, 100% 0, 100% 100%, 0 100%);
    }
  }
}
.profile-video-expand:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.profile-video-expanded { overflow: hidden; }
.profile-recording-player.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 1000;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.profile-recording-player.is-expanded .profile-video-expand { top: calc(var(--expand-top, 10px) + env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); }
.profile-recording-player.is-expanded video { height: 100%; object-fit: contain; background: #111; border-radius: 0; }
.profile-video-expand .collapse-arrows,
.profile-recording-player.is-expanded .expand-arrows { display: none; }
.profile-recording-player.is-expanded .collapse-arrows { display: inline; }
@media(prefers-reduced-motion:reduce) {
  .profile-detail-page .profile-recording-player:not(.is-playing) .profile-recording-play::before {
    animation: none;
    display: none;
  }
}

@media(max-width:700px) {
  /* Keep part of the next section visible, so horizontal navigation is apparent. */
  .profile-detail-page .profile-tabs {
    width: calc(100% + 24px);
    max-width: none;
    margin-inline: -12px;
  }
  .profile-detail-page .profile-tabs a {
    min-width: calc((100% - 60px) / 3);
  }
  .profile-detail-page [data-testimonies] .testimony-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    gap: 8px;
    margin: 0 0 22px;
    padding: 4px 4px 10px;
    scroll-padding-inline: 4px;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #c9bba5 transparent;
  }
  .profile-detail-page [data-testimonies] .testimony-filters button {
    flex: 0 0 auto;
    min-height: 44px;
    padding-inline: 14px;
    white-space: nowrap;
  }
  .profile-detail-page [data-testimonies] .testimony-open {
    min-height: 0;
    padding: 23px 21px;
  }
  .profile-detail-page .book-letter .testimony-grid {
    gap: 20px;
  }
  .profile-detail-page .book-letter .testimony-open {
    min-height: 0;
    padding: 20px;
  }
  .profile-detail-page .book-personal-memory .testimony-grid {
    gap: 22px;
    padding-right: 6px;
  }
  .profile-detail-page .book-personal-memory .testimony-open {
    min-height: 0;
    height: auto;
    justify-content: flex-start;
    gap: 16px;
    padding: 25px 23px;
  }
  .profile-detail-page:where(:not(.printed-profile-page)) #spohady .book-personal-memory .reading-card-title {
    margin-top: 6px;
    font-size: 24px;
  }
}

.printed-profile-page .book-personal-memory .testimony-open {
  min-height: 0;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 20px;
}
.printed-profile-page .book-personal-memory .book-action {
  padding-top: 10px;
}

.printed-profile-page #propovidi .testimony-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.printed-profile-page #propovidi .testimony-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  box-shadow: none;
}
.printed-profile-page #propovidi .testimony-open {
  min-height: 136px;
  padding: 23px 24px 16px;
  gap: 18px;
  border-radius: inherit;
}
.printed-profile-page #propovidi .testimony-title {
  margin: 0;
  color: var(--ink);
}
.printed-profile-page #propovidi .book-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--accent-strong);
}
.printed-profile-page #propovidi .testimony-open:is(:hover, :focus-visible) {
  background: var(--surface-raised);
}
.printed-profile-page #propovidi .testimony-open:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: -3px;
}
@media (max-width: 650px) {
  .printed-profile-page #propovidi .testimony-grid { grid-template-columns: 1fr; gap: 12px; }
  .printed-profile-page #propovidi .testimony-open { min-height: 114px; padding: 19px 18px 13px; gap: 14px; }
}

.profile-events-archive .profile-events > :not(.event-dialog) { display: none; }
@media (scripting: none) {
  .profile-events-archive .profile-events > .profile-event-list:has(.profile-event-card:target) { display: grid; }
  .profile-events-archive .profile-event-card:not(:target) { display: none; }
}

@media screen and (min-width: 701px) {
  .profile-visit-photo-open[href^="/monakh-serafym/"] {
    position: relative;
    flex: 1;
    min-height: var(--visit-visual-height);
  }
  .profile-visit-photo-open[href^="/monakh-serafym/"] > img {
    position: absolute;
    inset: 0;
    height: 100%;
  }
}

.material-breadcrumbs{margin-bottom:8px;color:var(--muted);font-size:14px;line-height:1.8;text-align:left}
.material-breadcrumbs ol{list-style:none;margin:0;padding:0}
.material-breadcrumbs li{display:inline;overflow-wrap:anywhere}
.material-breadcrumbs a{display:inline-block;padding-block:8px;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--line-strong)}
.material-breadcrumbs a:hover{color:var(--accent);text-decoration-color:currentColor}
.material-breadcrumbs [aria-current="page"]{color:var(--text)}
.material-breadcrumbs .breadcrumb-separator{margin-inline:10px;color:var(--bronze)}
.material-breadcrumbs.shell,.story-page.frame,.read-space.reading-frame{padding-top:10px}
.preview-header .material-breadcrumbs+h1{margin-top:0}
@media(max-width:700px){.material-breadcrumbs{margin-bottom:6px;font-size:13px}.material-breadcrumbs .breadcrumb-separator{margin-inline:7px}.material-breadcrumbs.shell,.story-page.frame,.read-space.reading-frame{padding-top:6px}}
@media print{.material-breadcrumbs{display:none}}

@keyframes button-shine {
  0% { background-position: 100% 0; }
  32%, 100% { background-position: 0% 0; }
}

@media screen and (prefers-reduced-motion: no-preference) {
  .profile-biography-prose .biography-more:is([data-biography-more], [data-biography-next]):enabled {
    position: relative;

    &::after {
      content: "";
      position: absolute;
      inset: 0;
      box-sizing: border-box;
      border-radius: inherit;
      pointer-events: none;
      background: linear-gradient(108deg, transparent 44%, rgb(208 168 98 / 23%) 48%,
        rgb(255 248 223 / 80%) 50%, rgb(255 255 255 / 78%) 51%, transparent 56%)
        100% 0 / 255% 100% no-repeat content-box;
      animation: button-shine 4.4s ease infinite;
    }

    @media (hover: hover) and (pointer: fine) {
      transition: translate .18s ease-out, box-shadow .18s ease-out,
        background-color .18s, border-color .18s, color .18s;

      &:hover {
        translate: 0 -3px;
        box-shadow: 0 5px 8px #65492432, 0 0 12px 3px rgb(186 138 70 / 14.5%);
      }
      /* Keep the original lower edge clickable as the button rises. */
      &:hover::after {
        bottom: -3px;
        padding-bottom: 3px;
        pointer-events: auto;
      }
    }
  }
}

/* Keep the back-to-top control clear of the footer. */
:where(.profile-to-top) { translate: 0 var(--button-footer-offset, 0px); }
