.header nav{gap:18px;flex-wrap:wrap}.header nav a{white-space:nowrap}
.editorial-heading h2{overflow-wrap:anywhere}
.portal-watermark{grid-column:1/-1;display:flex;align-items:center;gap:28px;min-width:0;pointer-events:none;padding:4px 0 18px;border-bottom:1px solid #173e341a}
.portal-watermark-name{font-size:clamp(30px,4.8vw,66px);font-weight:600;letter-spacing:.035em;line-height:1.1;color:#173e3447;overflow-wrap:anywhere}
.portal-watermark-description{font-size:clamp(14px,1.25vw,17px);font-weight:500;letter-spacing:.09em;line-height:1.8;color:#173e349c;overflow-wrap:anywhere}
.footer{flex-wrap:wrap}
.footer .portal-watermark-footer{flex:0 0 100%;width:100%;margin-bottom:24px;justify-content:space-between}
.footer .portal-watermark-description{max-width:580px}
@media(max-width:850px){.portal-watermark{align-items:flex-start;flex-direction:column;gap:12px}.portal-watermark-name{font-size:clamp(30px,7vw,54px)}.portal-watermark-description{font-size:14px;letter-spacing:.06em}}
.editorial-section{padding-top:82px;padding-bottom:82px;scroll-margin-top:24px}.editorial-section .eyebrow{font-size:11px}.editorial-heading{display:flex;justify-content:space-between;align-items:end;gap:36px;margin-bottom:32px}.editorial-heading h2{margin-top:15px}.editorial-heading>p{max-width:420px;font-size:16px;line-height:1.7}.editorial-note{font-size:14px;line-height:1.65;color:#5f6e63;margin-top:22px;max-width:850px}.idea-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.idea-card{background:#fffdf8;border:1px solid #dfe2d6;border-radius:10px;padding:26px;display:flex;flex-direction:column;align-items:start;gap:14px;min-height:265px}.idea-number{font-size:13px;letter-spacing:1px;color:#8b7058}.idea-card h3{font-family:Georgia,serif;font-size:25px;font-weight:400;letter-spacing:-.5px}.idea-card p{font-size:15px;line-height:1.7}.idea-card button{margin-top:auto}.editorial-link{font-size:14px;line-height:1.65;text-align:left}.idea-card:first-child{background:#173e34;color:#fffdf8;border-color:#173e34}.idea-card:first-child p,.idea-card:first-child .idea-number{color:#d9e4d5}.idea-card:first-child button{color:#f2d0a9}
.diary-section{background:#eeefe5;border-top:1px solid #dfe2d6;border-bottom:1px solid #dfe2d6}.diary-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:24px}.diary-feature,.book-feature{background:#fffdf8;border:1px solid #dfe2d6;border-radius:10px;overflow:hidden}.diary-photo{width:100%;height:245px;object-fit:cover;object-position:center 42%;display:block}.diary-feature .editorial-card-body,.book-feature .editorial-card-body{padding:28px}.editorial-card-body h3{font-family:Georgia,serif;font-size:27px;font-weight:400;margin:12px 0}.editorial-card-body p{font-size:16px;line-height:1.75}.editorial-card-body blockquote{padding:0;margin:18px 0 20px;font-family:Georgia,serif;font-size:21px;line-height:1.6;color:#284c3d}.editorial-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:18px;margin-top:22px}.book-cover{padding:32px;background:#203e38;min-height:245px;color:#f3eddb;display:flex;flex-direction:column;justify-content:space-between;position:relative}.book-cover:before{content:'';position:absolute;inset:15px;border:1px solid #a4b09a55;pointer-events:none}.book-cover span{font-size:12px;letter-spacing:2px}.book-cover strong{font-family:Georgia,serif;font-weight:400;font-size:35px;line-height:1.12;max-width:290px;margin:20px 0}.book-cover small{font-size:13px;color:#cbd6c7}.editorial-status{display:inline-flex;font-size:12px;font-weight:500;color:#607056;background:#eaf0e1;border-radius:4px;padding:5px 9px;line-height:1.5;letter-spacing:.1px}.editorial-status.pending{color:#795d39;background:#f3ebdc}.facebook-pending{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:25px 28px;border:1px dashed #bbc7ad;border-radius:10px;margin-top:24px}.facebook-pending h3{font-size:19px;margin-bottom:8px}.facebook-pending p{font-size:15px;line-height:1.7;max-width:640px}.facebook-pending a{flex-shrink:0}
.library-section{background:#f7f6ef}.library-controls{display:flex;align-items:start;justify-content:space-between;gap:24px;margin-bottom:18px}.material-filters{display:flex;flex-wrap:wrap;gap:8px}.material-filters button{border:1px solid #cfd6c6;background:transparent;border-radius:6px;padding:10px 14px;font-size:14px;min-height:44px}.material-filters button[aria-pressed=true]{background:#173e34;color:#fff;border-color:#173e34}.material-search{display:block;min-width:250px;max-width:340px}.material-search span{display:block;font-size:13px;margin-bottom:6px}.material-search input{margin:0;width:100%;font-size:15px;border:1px solid #ccd4c3;border-radius:6px;background:#fffdf8;padding:11px 14px;min-height:44px}.material-count{font-size:13px;margin:0 0 20px;color:#60705f}.material-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.material-card{display:flex;flex-direction:column;align-items:start;border:1px solid #dfe2d6;background:#fffdf8;border-radius:10px;padding:26px;min-height:300px}.material-category{font-size:12px;letter-spacing:1.2px;color:#8b7058;margin-bottom:18px}.material-card h3{font-family:Georgia,serif;font-size:25px;font-weight:400;margin-bottom:14px}.material-card p{font-size:15px;line-height:1.7;margin-bottom:20px}.material-card .editorial-status{margin-bottom:18px}.material-card button{margin-top:auto}.material-empty{padding:32px;border:1px dashed #bdc7b0;border-radius:10px;background:#f0f1e7}.material-empty h3{font-size:24px;font-family:Georgia,serif;font-weight:400;margin-bottom:10px}.material-empty p{font-size:16px;line-height:1.75;max-width:720px}.material-empty a,.material-empty button{margin-top:18px}.library-reset{font-size:14px;border:0;padding:0;background:none;text-decoration:underline;text-underline-offset:4px}.reading-dialog{width:min(820px,calc(100% - 28px));padding:42px;max-height:90dvh}.reading-dialog h2{font-size:clamp(30px,4vw,43px);line-height:1.15;letter-spacing:-1px;padding-right:20px;margin:16px 0 20px}.reading-meta{font-size:13px;color:#73816f;margin:14px 0 24px}.reading-text p{font-size:17px;color:#344c40;line-height:1.85;margin:0 0 20px}.reading-text h3{font-size:21px;margin:28px 0 16px}.reading-source{border-top:1px solid #dfe2d6;margin-top:28px;padding-top:18px;font-size:13px;line-height:1.7;color:#687965}.reading-actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:24px}.reading-dialog .button{font-size:14px}.reading-dialog .dialog-close{position:absolute;right:17px;top:14px}.editorial-toplink{font-size:14px}
@media(min-width:1200px){.header nav{justify-content:center;max-width:720px}}
@media(max-width:1199px){.header{flex-wrap:wrap;gap:18px}.header nav{order:3;flex-basis:100%;justify-content:center;gap:12px 22px}.header>.button{margin-left:auto}html{scroll-padding-top:180px}}
@media(max-width:850px){.idea-grid,.material-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editorial-heading{display:block}.editorial-heading>p{margin-top:22px}.diary-grid{grid-template-columns:1fr 1fr}.library-controls{flex-direction:column}.material-search{width:100%;max-width:100%}.facebook-pending{align-items:start;flex-direction:column}}
@media(max-width:600px){.editorial-section{padding-top:55px;padding-bottom:55px}.idea-grid,.diary-grid,.material-grid{grid-template-columns:1fr}.idea-card{min-height:230px;padding:23px}.editorial-heading h2{font-size:37px}.editorial-card-body blockquote{font-size:20px}.diary-feature .editorial-card-body,.book-feature .editorial-card-body{padding:23px}.facebook-pending{padding:22px}.reading-dialog{padding:30px 22px}.reading-text p{font-size:16px}.header nav{font-size:12px;gap:10px 16px}.header>.button{display:none}.header{padding:16px 20px}.header .brand{margin:auto}html{scroll-padding-top:190px}.book-cover{min-height:230px}.material-filters{width:100%}.material-filters button{flex:1 1 auto}.editorial-card-actions .button{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Original owner-provided MEDITSERVE logo; preserve the full image. */
.header .brand img.portal-logo{display:block;width:72px;height:72px;flex:0 0 auto;object-fit:contain}
.footer .brand img.portal-logo{display:block;width:54px;height:54px;flex:0 0 auto;object-fit:contain}
@media(max-width:600px){.header .brand img.portal-logo{width:54px;height:54px}.footer .brand img.portal-logo{width:46px;height:46px}.footer .brand{grid-column:1/-1}}

/* Contacts supplied by the owner. */
.header nav a.contact-nav,.header nav a.team-nav{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 15px;border:1px solid #173e34;border-radius:6px;color:#173e34;font-size:14px;font-weight:600;letter-spacing:.6px}
.header nav a.contact-nav:hover,.header nav a.team-nav:hover{background:#e9eddf}
.contacts-section{padding-top:64px;padding-bottom:72px;border-top:1px solid #d9ded0}
.contacts-heading{margin-bottom:30px}.contacts-heading h2{font-size:clamp(36px,4vw,50px)}
.contacts-signature{margin-top:18px;font-size:21px;line-height:1.55;color:#173e34;font-weight:500}
.contacts-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.65fr);gap:35px}
.contacts-details{display:flex;flex-direction:column;gap:20px}.contacts-box{background:#edf0e5;border:1px solid #d6decc;border-radius:9px;padding:25px}
.contacts-box h3,.contacts-professional h3{font-size:20px;margin:0 0 18px}.contact-phones{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}
.contact-phones a{display:inline-flex;align-items:center;min-height:44px;font-size:20px;line-height:1.4;text-decoration:underline;text-underline-offset:5px}
.contact-phones a:hover{color:#a46545}.contacts-box address{font-style:normal;font-size:16px;line-height:1.75;overflow-wrap:anywhere}
.contacts-box address>div+div{margin-top:24px;padding-top:20px;border-top:1px solid #cbd6bf}.contacts-box address strong{font-weight:500;display:block}.contacts-box address span{display:block;margin-top:6px;color:#65755f}
.contacts-professional>p{font-size:16px;line-height:1.85;margin-bottom:20px;color:#4b6253}.contacts-professional strong{font-weight:500;color:#234638}
.contacts-professional .profile-links-title{margin-top:30px}.contact-profile-links{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0;margin:0}
.contact-profile-links a{display:flex;flex-direction:column;justify-content:center;min-height:64px;padding:13px 16px;border:1px solid #cbd5c2;border-radius:6px;font-size:15px;line-height:1.5;overflow-wrap:anywhere;background:#fffdf8}
.contact-profile-links a:hover{border-color:#173e34;background:#edf1e5}.contact-profile-links small{display:block;font-size:13px;color:#6b7a62;margin-top:4px}
.footer{flex-wrap:wrap}.footer a.footer-contact{font-size:14px}.footer p.portal-rights{flex-basis:100%;grid-column:1/-1;font-family:Arial,sans-serif;font-style:normal;font-size:14px;line-height:1.75;color:#50674f;overflow-wrap:anywhere;margin-top:4px}
@media(max-width:850px){.contacts-grid{grid-template-columns:1fr;gap:30px}.contacts-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.contacts-box{height:100%}}
@media(max-width:600px){.contacts-section{padding-top:48px;padding-bottom:50px}.contacts-signature{font-size:19px}.contacts-details,.contact-profile-links{grid-template-columns:1fr}.contacts-box{padding:23px}.contact-phones a{font-size:19px}.header nav a.contact-nav{padding:7px 12px;font-size:13px}.footer a.footer-contact{justify-self:start}.footer #sources-open{grid-column:1/-1;justify-self:start}}

.contact-emails{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}
.contact-emails a{display:inline-flex;align-items:center;min-height:44px;font-size:16px;line-height:1.6;text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere;max-width:100%}
.contact-emails a:hover{color:#a46545}.donation-details{display:flex;align-items:center;justify-content:space-between;gap:30px;background:#173e34;color:#fffdf8;border:1px solid #173e34;border-radius:9px;padding:28px;margin-top:30px}

/* Uploaded identities, portraits and the author's photo archive. */
.therapy-sketch{position:relative;display:grid;place-items:center;width:min(100%,240px);aspect-ratio:1;padding:10px;margin:16px auto 20px;background:#fff;border:1px solid #d6decc;border-radius:8px;overflow:hidden}
.therapy-sketch img{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.therapy-sketch span{position:absolute;left:8px;right:8px;bottom:8px;padding:4px;border-radius:4px;background:#fffdf8e8;font-size:12px;line-height:1.5;color:#50674f}
.therapy-sketch:hover{border-color:#173e34;background:#fffdf8}
.center-identity{display:grid;grid-template-columns:190px minmax(0,1fr);gap:32px;align-items:center;border:1px solid #d6decc;border-radius:10px;background:#faf8eb;padding:24px;margin-top:30px}
.center-logo{padding:0;background:#fffff0;border:0;border-radius:8px;overflow:hidden;width:100%;line-height:0}
.center-logo img{display:block;width:100%;height:auto}
.center-identity h3{font-family:Georgia,serif;font-weight:400;font-size:32px;letter-spacing:1px;margin:10px 0 12px}
.center-identity p{font-size:16px;line-height:1.8;max-width:670px}
.center-actions{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin-top:20px}
.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.photo-card{margin:0;border:1px solid #d6decc;border-radius:10px;overflow:hidden;background:#eeefe5}
.photo-card>button,.person-card>button{position:relative;display:block;background:#e9ebdf;border:0;padding:0;width:100%;height:320px}
.photo-card img,.person-card img{display:block;width:100%;height:100%;object-fit:contain}
.photo-card figcaption{padding:16px 20px;font-family:Georgia,serif;font-size:20px;color:#234638}
.photo-card>button:hover,.person-card>button:hover{background:#dfe5d5}
.photo-card>button:focus-visible,.person-card>button:focus-visible{outline-offset:-5px}
.team-title{font-family:Georgia,serif;font-size:28px;font-weight:400;margin-bottom:20px}
.idea-document-card{grid-column:1/-1;min-height:auto;scroll-margin-top:24px}
.idea-document-card>p{max-width:850px}
.idea-document-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px}
.idea-document-actions a,.idea-document-actions button{display:inline-flex;align-items:center;min-height:44px;margin-top:0;font-size:14px}
.idea-document-card .idea-document-note{font-size:14px;line-height:1.65;margin:0;color:#5f6e63}
.material-pdf-actions{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:14px}
.material-pdf-actions button{display:inline-flex;align-items:center;min-height:44px;margin-top:0;font-size:14px;text-decoration:underline;text-underline-offset:4px}
.portal-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-bottom:32px}
.person-card{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center;overflow:hidden;margin:0;border:1px solid #d6decc;border-radius:10px;background:#fffdf8}
.person-card>button{height:270px}
.person-card figcaption{padding:24px;min-width:0}
.person-card h3{font-family:Georgia,serif;font-weight:400;font-size:24px;margin-bottom:14px}
.person-card p{font-size:14px;line-height:1.7;margin-top:9px}
.person-card a{display:inline-block;margin-top:16px;line-height:1.65}
.person-card .person-cv-meta{font-size:12px;color:#62735d;margin-top:14px}
.person-cv-actions{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:10px}
.person-cv-actions a{display:inline-flex;align-items:center;min-height:44px;margin-top:0;font-size:13px;text-decoration:underline;text-underline-offset:4px}
.academic-positions{padding-left:22px;margin:0 0 24px;color:#234638;font-size:16px;line-height:1.85}
.academic-positions li+li{margin-top:12px}
.contacts-professional>.academic-sources{font-size:13px;line-height:1.8}
.academic-sources a{text-decoration:underline;text-underline-offset:4px}
.photo-navigation{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:20px}
.photo-navigation .button{font-size:13px;gap:10px;min-height:44px}
#photo-position{font-size:13px;white-space:nowrap;color:#62735d}
.photo-dialog img{max-height:62dvh}
@media(max-width:1000px){.portal-people{grid-template-columns:1fr}.person-card{grid-template-columns:180px minmax(0,1fr)}.photo-card>button{height:280px}}
@media(max-width:850px){.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.center-identity{grid-template-columns:145px minmax(0,1fr);gap:24px}}
@media(max-width:600px){.photo-grid{gap:14px}.photo-card>button{height:240px}.photo-card figcaption{padding:12px;font-size:16px;line-height:1.4}.center-identity{grid-template-columns:1fr;padding:23px;gap:22px}.center-logo{max-width:150px}.center-identity h3{font-size:28px}.center-actions{align-items:start;flex-direction:column}.center-actions .button{width:100%;font-size:13px;padding:14px 16px;gap:12px}.person-card{grid-template-columns:130px minmax(0,1fr)}.person-card>button{height:220px}.person-card figcaption{padding:18px}.person-card h3{font-size:21px}.person-card a{font-size:13px}.photo-navigation{gap:8px}.photo-navigation .button{padding:10px 12px;font-size:12px}.photo-dialog img{max-height:59dvh}}
@media(max-width:380px){.photo-grid{grid-template-columns:1fr}.photo-card>button{height:310px}.person-card{grid-template-columns:115px minmax(0,1fr)}.person-card figcaption{padding:15px}.person-card h3{font-size:19px}}
.donation-details h3{font-size:22px;margin-bottom:10px}.donation-details p{color:#d7e4d6;font-size:16px;line-height:1.75}.donation-details .donation-card-number{color:#fffdf8;font-size:clamp(21px,2.8vw,29px);letter-spacing:1px;font-variant-numeric:tabular-nums;margin-top:8px;user-select:all;white-space:nowrap}
.donation-note{max-width:360px;flex:0 1 360px}
@media(max-width:850px){.contacts-details .contacts-box:last-child{grid-column:1/-1}.donation-details{align-items:start;flex-direction:column;gap:18px}.donation-note{flex:auto;max-width:100%}}
@media(max-width:600px){.contacts-details .contacts-box:last-child{grid-column:auto}.donation-details{padding:23px}.donation-details .donation-card-number{font-size:21px;letter-spacing:.5px}}

.donation-details .donation-recipient{margin-bottom:10px}.donation-recipient strong{color:#fffdf8;font-weight:500}

.donation-details{display:block}.donation-details>h3{margin-bottom:20px}.donation-accounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.psychiatry-collage{display:block;width:100%;padding:0;margin:0 0 18px;border:1px solid #cdd7c4;border-radius:7px;background:#eeeee2;color:#234638;overflow:hidden;text-align:left}
.psychiatry-collage img{display:block;width:100%;height:auto;object-fit:contain}
.psychiatry-collage span{display:block;padding:11px 13px;font-size:14px;line-height:1.5}
.psychiatry-collage:hover{background:#e5eadb;border-color:#78916e}
.psychiatry-collage:focus-visible{outline:3px solid #a46545;outline-offset:3px}
.donation-account:hover,.donation-account:focus-within{background:#ffffff10;border-color:#afc995}
.donation-copy{display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:100%;margin-top:10px;padding:12px;border:1px solid #ffffff50;border-radius:6px;background:#ffffff08;color:#fffdf8;text-align:left;min-height:72px}
.donation-copy:hover,.donation-copy:focus-visible{background:#dce9ca;color:#173e34;border-color:#dce9ca}
.donation-copy:focus-visible{outline:3px solid #e0bb86;outline-offset:3px}
.donation-details .donation-copy .donation-card-number{display:block;color:inherit;margin:0;font-size:clamp(16px,2.3vw,25px);letter-spacing:.4px}
.donation-copy-hint{font-size:14px;line-height:1.5;color:inherit}
.donation-copy.copied{background:#dce9ca;color:#173e34;border-color:#dce9ca}
@media(max-width:380px){.donation-copy{padding:10px}.donation-details .donation-copy .donation-card-number{font-size:16px;letter-spacing:0}}
.donation-account{border:1px solid #ffffff35;border-radius:6px;padding:20px;background:#ffffff06;min-width:0}.donation-details .donation-card-number{font-size:clamp(18px,2.5vw,28px);letter-spacing:.5px}.donation-details>.donation-note{max-width:100%;margin-top:18px}
@media(max-width:850px){.donation-accounts{grid-template-columns:1fr}}
@media(max-width:600px){.donation-account{padding:16px}.donation-details .donation-card-number{font-size:18px}}

/* Full books can be viewed; original PDF files are issued manually by the administrator. */
.book-viewer{max-width:1100px;width:calc(100% - 24px);padding:30px;max-height:94dvh}
.book-viewer h2{font-size:28px;line-height:1.25;margin:14px 35px 20px 0}
.book-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.book-toolbar .button,.book-viewer-footer .button{min-height:44px;font-size:14px}
.book-toolbar form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.book-toolbar label{font-size:14px;margin:0}
.book-toolbar input{width:76px;margin:0;min-height:44px;font-size:16px}
.book-toolbar span{font-size:14px}
.book-toolbar button:disabled{opacity:.45;cursor:default}
#book-page-status{font-size:14px;margin:14px 0;min-height:22px}
.book-page-viewport{overflow:auto;max-height:59dvh;background:#e6e9df;border:1px solid #cdd7c4;border-radius:6px;min-height:140px}
.book-page-viewport img{display:block;width:100%;max-width:none;height:auto;margin:0}
.book-page-viewport img[hidden]{display:none}
.book-page-viewport.book-zoomed img{width:max(100%,1700px)}
.book-viewer-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:18px}
.book-viewer-footer p{font-size:14px;line-height:1.6;margin:0;max-width:560px}
.book-viewer-footer button{flex-shrink:0}
.book-access-dialog{max-width:650px}
.book-access-dialog h2{font-size:32px}
.book-access-dialog p{font-size:16px}
.book-access-dialog .book-access-name{font-family:Georgia,serif;font-size:24px;line-height:1.5;margin-bottom:18px}
.book-access-dialog label{font-size:14px;margin:20px 0 8px;line-height:1.6}
.book-access-dialog input,.book-access-dialog textarea{font:inherit;font-size:16px;width:100%;padding:12px;border:1px solid #cdd7c4;border-radius:6px;background:#fafbf5;color:#244335;margin:0;min-height:46px}
.book-access-dialog textarea{resize:vertical;line-height:1.6}
.book-access-dialog .book-access-note{font-size:14px;line-height:1.7;margin:18px 0}
.book-access-dialog .book-access-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin:20px 0}
.book-access-dialog .button{font-size:14px;min-height:44px}
#book-access-status{font-size:14px}
.volunteer-chaplaincy{margin-top:30px;padding:30px;border:1px solid #bcccb6;border-radius:10px;background:#f8faf2}
.volunteer-chaplaincy h3{font-family:Georgia,serif;font-size:30px;line-height:1.3;margin:12px 0 18px;max-width:750px}
.volunteer-chaplaincy>p{font-size:16px;line-height:1.7;margin-top:8px;max-width:850px}
.volunteer-chaplaincy .volunteer-donation{color:#173e34}
.chaplain-qr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:26px}
.chaplain-qr-card{display:grid;grid-template-columns:minmax(0,1fr) 180px;align-items:center;gap:20px;padding:20px;background:#fff;border:1px solid #d6e0cd;border-radius:8px;min-width:0}
.chaplain-qr-card h4{font-size:17px;line-height:1.4;margin:0 0 12px;font-weight:700}
.chaplain-qr-card p{font-size:14px;line-height:1.7;margin-top:12px}
.chaplain-direct-link{display:inline-block;font-size:15px;font-weight:700;line-height:1.6;text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere}
.chaplain-qr-image{display:block;max-width:180px;background:#fff;border-radius:4px}
.chaplain-qr-image img{display:block;width:100%;height:auto;aspect-ratio:1}
a[href^="https://chaplains.easyweek.com.ua"],a[href^="https://chaplains.com.ua"],a[href^="https://www.chaplains.com.ua"]{font-weight:700}
@media(max-width:1100px){.chaplain-qr-card{grid-template-columns:1fr}.chaplain-qr-image{justify-self:center}}
@media(max-width:700px){.volunteer-chaplaincy{padding:22px 18px}.volunteer-chaplaincy h3{font-size:26px}.chaplain-qr-grid{grid-template-columns:1fr}.chaplain-qr-card{grid-template-columns:minmax(0,1fr) 160px}.chaplain-qr-image{max-width:160px}}
@media(max-width:480px){.chaplain-qr-card{grid-template-columns:1fr}.chaplain-qr-image{max-width:200px}}
@media(max-width:600px){.book-viewer{padding:26px 16px 20px}.book-viewer h2{font-size:24px}.book-toolbar{gap:8px}.book-toolbar form{order:2;flex-basis:100%}.book-toolbar .button{padding:10px 14px}.book-page-viewport{max-height:49dvh}.book-viewer-footer{align-items:start;flex-direction:column;gap:14px}.book-viewer-footer .button{width:100%}.book-access-dialog .book-access-name{font-size:22px}.book-access-actions .button{width:100%}}
.video-introductions .editorial-heading{margin-bottom:30px}
.video-introductions h2{font-size:clamp(28px,4vw,46px);overflow-wrap:anywhere}
.video-introduction-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.video-introduction-card{min-width:0;margin:0;background:#fff;border:1px solid #d6e0cd;border-radius:8px;overflow:hidden}
.video-introduction-card iframe{display:block;width:100%;height:auto;aspect-ratio:16/9;border:0;background:#173e34}
.video-introduction-card figcaption{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:18px;font-size:16px;line-height:1.5}
.video-introduction-card figcaption a{font-size:14px;text-decoration:underline;text-underline-offset:4px}
.ordination-videos-title{font-family:Georgia,serif;font-size:28px;line-height:1.4;margin:44px 0 24px}
.ordination-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:760px){.video-introduction-grid{grid-template-columns:1fr;gap:20px}.ordination-videos-title{margin-top:32px}}

/* Professional documents supplied by Serhii Kyryliuk. */
.credentials-section{border-top:1px solid #d9ded0}
#credentials-title{font-size:clamp(24px,3.4vw,42px);line-height:1.3;overflow-wrap:anywhere;letter-spacing:0}
.credentials-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.credential-card{min-width:0;background:#fffdf8;border:1px solid #d9ded0;border-radius:10px;overflow:hidden}
.credential-preview{display:flex;align-items:center;justify-content:center;height:260px;padding:18px;background:#edf0e5;overflow:hidden}
.credential-preview img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .2s}
.credential-preview:hover img{transform:scale(1.03)}
.credential-preview.credential-rotated img{transform:rotate(90deg);width:210px;height:285px;max-width:none;flex-shrink:0}
.credential-caption{padding:22px}
.credential-date{font-size:14px;color:#65755f;margin:0 0 10px}
.credential-caption h3{font-size:19px;line-height:1.45;margin:0 0 18px;font-weight:500}
.credential-caption>a{display:inline-block;padding:8px 0;font-size:14px;text-decoration:underline;text-underline-offset:4px}
.credential-new-tab{white-space:nowrap}
.credential-card a:focus-visible{outline:3px solid #a46545;outline-offset:-3px}
@media(max-width:900px){.credentials-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.credentials-grid{grid-template-columns:1fr}.credential-preview{height:280px}}
@media(prefers-reduced-motion:reduce){.credential-preview img{transition:none}}

/* Keep the diary title's long word intact on narrow screens. */
@media (max-width: 850px) {
  #diary-title em {
    display: inline-block;
    font-size: clamp(1rem, 8vw, 37px);
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
}

/* Consistent footer navigation for both portal languages. */
.footer{display:flex;flex-direction:column;align-items:stretch;gap:24px;padding-top:32px;padding-bottom:32px}
.footer .portal-watermark-footer{margin:0;padding-bottom:24px}
.footer>.brand{align-self:flex-start}
.footer>p:not(.portal-rights){display:none}
.footer .footer-links{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;width:100%}
.footer .footer-links .text-link{display:flex;align-items:center;justify-content:center;justify-self:stretch;grid-column:auto;width:100%;min-width:0;min-height:52px;margin:0;padding:12px 16px;border:1px solid #cbd3c6;border-radius:6px;background:#fffdf8;color:#244b3d;font-size:14px;font-weight:500;line-height:1.5;text-align:center;text-decoration:none;overflow-wrap:anywhere;transition:background .18s,border-color .18s}
.footer .footer-links .text-link:hover{background:#e9eddf;border-color:#81947c}
.footer>span{margin:0;font-size:12px;color:#64716a}
.footer p.portal-rights{margin:0}
@media(max-width:1000px){.footer .footer-links{grid-template-columns:repeat(2,minmax(0,1fr))}.footer .footer-links #sources-open{grid-column:1/-1;justify-self:stretch}}
@media(max-width:600px){.footer{gap:20px}.footer .footer-links{grid-template-columns:minmax(0,1fr);gap:10px}.footer .footer-links .text-link{font-size:15px;min-height:50px}.footer .footer-links #sources-open{grid-column:auto}}

/* Featured EAP certificate spans the desktop gallery; mobile uses standard cards. */
@media(min-width:901px){.credential-featured{grid-column:1/-1}.credential-featured .credential-preview{height:auto;padding:0}.credential-featured .credential-preview img{height:auto;object-fit:contain}.credential-featured .credential-preview:hover img{transform:none}}

.volunteer-nszu{display:grid;grid-template-columns:minmax(0,440px) minmax(0,1fr);gap:30px;align-items:center;margin:30px 0 0;padding-top:30px;border-top:1px solid #bcccb6}.volunteer-nszu-image{display:block;min-width:0}.volunteer-nszu-image img{display:block;width:100%;height:auto;border-radius:8px}.volunteer-nszu figcaption{min-width:0}.volunteer-nszu h4{font-family:Georgia,serif;font-size:clamp(22px,2.4vw,30px);line-height:1.35;margin:0 0 16px}.volunteer-nszu p{font-size:16px;line-height:1.7;margin:0 0 20px}.volunteer-nszu a:focus-visible{outline:3px solid #a46545;outline-offset:4px}@media(max-width:700px){.volunteer-nszu{grid-template-columns:minmax(0,1fr);gap:20px}}

.credential-pair{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.credential-lightbox{width:fit-content;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:56px 12px 12px;margin:auto;border:0;border-radius:10px;background:#fffdf8;overflow:auto}
.credential-lightbox::backdrop{background:rgba(10,23,19,.85)}
.credential-lightbox img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100vh - 100px);max-height:calc(100dvh - 100px);object-fit:contain;margin:auto}
.credential-lightbox-close{position:absolute;top:6px;right:6px;width:44px;height:44px;border:0;border-radius:50%;background:#173e34;color:white;font-size:30px;line-height:1}
.credential-pair .credential-card{grid-column:auto}
.credential-pair .credential-preview{height:320px;padding:18px}
.credential-pair .credential-preview img{height:100%;object-fit:contain}
.credential-pair .credential-preview:hover img{transform:none}
@media(max-width:600px){.credential-pair{grid-template-columns:1fr}.credential-pair .credential-preview{height:280px}}
