/* One centered page frame and consistent reading widths across the site. */
:root{
  --page-width:1280px;
  --form-width:860px;
  --gutter:max(clamp(20px,4vw,64px),calc((100vw - var(--page-width))/2),env(safe-area-inset-left,0px),env(safe-area-inset-right,0px));
}
body{min-width:0}
main,section,article,form,fieldset,.field,.business-info{min-width:0}
main :is(p,li,dd,dt,legend){overflow-wrap:break-word}
main img{display:block;max-width:100%}
.button{max-width:100%;white-space:normal;text-align:center;line-height:1.4}
.page>:is(.page-title,.directory-app,.business-profile,.full-gallery,.event-detail,.story,.team,.form-intro,.form-section,.all-pages,.events-intro){padding-inline:var(--gutter)}
.page-title{padding-block:clamp(32px,4vw,64px) 30px;text-align:center}
.page-title h1{font-size:clamp(36px,5vw,70px);line-height:1.1;max-width:24ch;margin-inline:auto;overflow-wrap:normal}
.page-title>p{max-width:64ch;margin:20px auto 0;font-size:clamp(18px,1.65vw,22px);line-height:1.55}
.calendar-nav{justify-content:center;gap:10px 28px}
.calendar-nav a{display:inline-flex;align-items:center;min-height:48px;margin:0}
.calendar-section>h2,.team>h2,.form-section>h2{text-align:center}
.calendar-section>.section-head:has(>h2:only-child){justify-content:center}
.gallery-section{padding-block-start:var(--section)}
.section-head+:is(.album-cards,.calendar-grid){margin-block-start:clamp(24px,3vw,32px)}
.page-title+.calendar-section{padding-top:24px}
.calendar-copy,.calendar-detail>div,.business-profile>div,.story>div{min-width:0}
.calendar-copy h3,.business-row h2,.team h3{overflow-wrap:normal}
.event-countdown{margin-inline:auto}
.event-tools,.calendar-source{justify-content:center}
.calendar-detail [data-registration]{text-align:center}
.calendar-detail .calendar-facts{gap:18px}
.calendar-detail .calendar-facts dd{line-height:1.45}
.business-profile,.event-detail,.story{align-items:start}
.profile-links{align-items:stretch;gap:12px}
.profile-links .button{min-height:52px;flex:0 1 auto}
.business-view{display:flex;align-items:center;justify-content:center;min-height:48px;text-align:center;line-height:1.35}
.directory-top{align-items:center}
.directory-filters{align-items:start;grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.directory-filters>div:first-child{grid-column:auto}
.directory-filters>div{min-width:0}
.directory-filters input,.directory-filters select{width:100%}
.results-head p{margin:0}
.directory-cta{text-align:center}
.directory-cta h2,.directory-cta p{margin-inline:auto}
.directory-cta p{max-width:60ch}
.full-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
.team article{grid-template-columns:250px minmax(0,1fr);align-items:start}
.team article img{object-position:center top}
.team article img.team-portrait-jana{height:auto;aspect-ratio:1;object-position:center 62%}
.team-role{margin-block:0 16px}
.form-intro{max-width:none;width:auto;padding-bottom:24px}
.form-intro>p,.form-section>h2{max-width:var(--form-width);margin-inline:auto}
.form-intro>p{line-height:1.65}
.form-disclosure,.migrated-form{width:100%;max-width:var(--form-width);margin-inline:auto}
.form-disclosure{margin-bottom:28px;padding:24px}
.form-disclosure>p{max-width:none;margin:0;line-height:1.6;font-size:16px}
.form-section{padding-top:8px}
.form-section>h2{margin-bottom:28px}
.migrated-form{gap:24px}
.migrated-form .field{gap:8px}
.migrated-form .name-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.migrated-form input:not([type=checkbox]):not([type=radio]),.migrated-form textarea,.migrated-form select{width:100%;min-width:0}
.migrated-form label,.migrated-form legend{line-height:1.5}
.migrated-form .check-option{min-height:48px;padding-block:8px}
.migrated-form>.button{justify-self:center;min-width:min(240px,100%);min-height:52px}
.migrated-form .form-result{max-width:100%;text-align:center}
.field .note{font-size:15px;line-height:1.5;margin:0}
body[data-page-layout=form] .page-title h1{max-width:var(--form-width);font-size:clamp(28px,4.2vw,60px);line-height:1.15}
.all-pages{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.all-pages>div{min-width:0}
.all-pages a{display:inline-flex;align-items:center;min-height:48px;line-height:1.5}
.all-pages small{line-height:1.5}
footer .footer-top{align-items:center}
footer .footer-links{column-gap:28px;row-gap:8px}
footer .footer-links a{min-height:48px;line-height:1.4}
footer .footer-officer a{min-height:48px}
/* Keep account screens centered without inheriting very wide page gutters. */
.auth{width:min(500px,calc(100% - 40px));max-width:500px;margin:48px auto;padding:28px}
.auth>a:first-child{display:flex;justify-content:center;min-height:80px;margin-bottom:20px}
.auth>a:first-child img{width:80px;height:80px;object-fit:contain}
.auth h1,.auth>p{text-align:center}
.auth h1{margin-bottom:16px}
.auth form{gap:10px}
.auth input{width:100%;min-width:0}
.auth #forgot,.auth>a:last-child{display:flex;align-items:center;justify-content:center;min-height:48px;width:100%;margin-top:12px;text-align:center}
.auth #message{overflow-wrap:anywhere}
.auth-language{display:flex;justify-content:center;margin-bottom:20px}
.auth-language button,.manage #language{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;background:var(--paper);color:var(--ink);border-radius:var(--radius);font-size:16px}
.manage #language{margin-bottom:20px}
.manage{width:min(1040px,100%);max-width:1040px;margin-inline:auto;padding:32px clamp(20px,4vw,40px)}
.manage>h1{text-align:center}
.manage input[type=email]{width:100%;min-width:0}
.manage .account{overflow-wrap:anywhere}
.manage button{max-width:100%;min-height:48px;white-space:normal}
.inbox-main{padding-inline:var(--gutter)}
.inbox-layout>*{min-width:0}
/* Comfortable reading and controls in both writing directions. */
html{scroll-padding-block:24px}
body{font-kerning:normal}
button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
:is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--accent);outline-offset:4px}
header :is(a,button):focus-visible,footer a:focus-visible{outline-color:#fff}
header nav a[aria-current=page]{text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:3px;text-underline-offset:8px}
input:not([type=checkbox]):not([type=radio]),select,textarea{border-color:#8c8c8c}
input::placeholder,textarea::placeholder{color:#666;opacity:1}
input[type=file]{max-width:100%;font-size:16px;overflow:hidden}
input[type=file]::file-selector-button{min-height:40px;margin-inline-end:12px;border:0;border-radius:6px;padding:8px 12px;background:var(--paper);color:var(--ink);font:inherit;cursor:pointer}
:is(button,.button):disabled{cursor:wait;opacity:.65}
.field-hint{margin-inline-start:0}
.form-result:not(:empty){padding:16px;background:var(--paper);border-radius:var(--radius);line-height:1.6;overflow-wrap:anywhere}
.form-result:empty{margin:0}
.story{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
.story p{max-width:62ch;line-height:1.65}
.story img{height:auto;aspect-ratio:3/2;object-fit:cover}
.business-profile>div>.text-link:first-child{margin-top:0}
.business-profile .business-category{margin-top:16px}
html[dir=rtl] :is(h3,.team h3,.form-disclosure h3){line-height:1.5;letter-spacing:0}
html[dir=rtl] .business-row h2{line-height:1.4}
html[dir=rtl] :is(.story p,.team p,.calendar-description,.business-summary){line-height:1.75}
html[dir=rtl] .story p:first-child{line-height:1.6}
html[dir=rtl] .gallery-viewer-toolbar h2{line-height:1.5}
@media(min-width:761px) and (max-width:1000px){
 .directory-filters{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
 .story{display:flex;flex-direction:column;gap:28px;max-width:860px;margin-inline:auto}
 .story>div{width:100%}
 .story img{width:100%;max-height:400px;order:-1}
 .team article{grid-template-columns:200px minmax(0,1fr);gap:28px;padding:28px}
 .team article img{height:250px}
}
@media(max-width:760px){
 .directory-filters{grid-template-columns:minmax(0,1fr)}
 .page-title{padding-block:28px 24px}
 .page-title h1{font-size:clamp(32px,9vw,40px);max-width:100%;line-height:1.15}
 .page-title>p{font-size:18px;margin-top:16px}
 body[data-page-layout=form] .page-title h1{font-size:clamp(28px,7.4vw,36px);line-height:1.2}
 .page-title+.calendar-section{padding-top:16px}
 .calendar-nav{gap:8px 18px}
 .calendar-nav a{font-size:16px;min-height:48px}
 .team article{grid-template-columns:minmax(0,1fr)}
 .story{display:flex;flex-direction:column;gap:24px}
 .story>div{width:100%}
 .story>img{order:-1;width:100%;max-height:320px}
 .full-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
 .form-intro{padding-bottom:20px}
 .form-intro>p{margin-top:0;font-size:17px;line-height:1.65}
 .form-section{padding-top:4px}
 .form-disclosure{padding:20px;margin-bottom:24px}
 .form-disclosure>p{font-size:15px}
 .migrated-form .name-fields{grid-template-columns:minmax(0,1fr)}
 .migrated-form>.button{width:100%;min-width:0}
 .profile-links .button{flex:1 1 140px}
 .all-pages{grid-template-columns:minmax(0,1fr)}
 .all-pages>div{padding:18px 20px}
 .auth{margin-block:28px;padding:24px 20px}
 .auth h1{font-size:32px}
 footer .footer-top{align-items:start}
 .directory-top{align-items:center}
 .hero h1{letter-spacing:-.035em}
 .directory-feature h2,.community h2,.join h2,.get-involved h2{font-size:clamp(34px,10vw,42px);line-height:1.12}
 .gallery-section .section-head h2{font-size:clamp(32px,9vw,38px)}
 .business-row .business-quick-links{margin-inline-start:-76px}
 .business-quick-links a{flex:1 1 auto}
 .story p:first-child{font-size:20px}
 html[dir=rtl] .story p:first-child{font-size:20px}
 html[dir=rtl] :is(.directory-feature h2,.community h2,.join h2,.get-involved h2){line-height:1.5}
 html[dir=rtl] .page-title h1{font-size:clamp(30px,8.2vw,36px);line-height:1.5}
 html[dir=rtl] body[data-page-layout=form] .page-title h1{font-size:clamp(26px,7.2vw,32px);line-height:1.5}
}
@media(max-width:360px){
 .calendar-copy h3{font-size:24px;line-height:1.2}
 .directory-feature h2,.get-involved h2{font-size:28px}
 .directory-cta h2{font-size:26px}
 .inbox-tools{display:grid;grid-template-columns:minmax(0,1fr)}
 .inbox-tools select,.inbox-tools button{width:100%}
}
@media(min-width:761px){.form-section>h2{font-size:42px}}
/* Keep the community headline readable within the existing split hero. */
.hero h1.community-headline{font-size:clamp(32px,4.7vw,70px);line-height:1.08}
.hero h1.community-headline span{white-space:normal}
html[dir=rtl] .hero h1.community-headline{font-size:clamp(30px,4vw,58px);line-height:1.45}
@media(max-width:760px){
 .hero h1.community-headline{font-size:clamp(32px,9.6vw,60px)}
 html[dir=rtl] .hero h1.community-headline{font-size:clamp(29px,7.8vw,45px);line-height:1.5}
}
.seo-faq{padding:clamp(40px,6vw,72px) var(--gutter);background:var(--paper)}
.seo-faq>h2{font-size:clamp(30px,3.5vw,44px);line-height:1.25;margin:0 auto 32px;text-align:center;max-width:24ch}
.seo-faq-list{display:grid;gap:28px;max-width:900px;margin-inline:auto}
.seo-faq-list article{min-width:0}
.seo-faq-list h3{font-size:23px;line-height:1.4;margin:0 0 10px;letter-spacing:-.02em}
.seo-faq-list p{font-size:18px;line-height:1.65;margin:0;max-width:70ch}
.seo-faq>a{display:flex;align-items:center;justify-content:center;min-height:48px;width:fit-content;margin:28px auto 0;text-decoration:underline;text-underline-offset:5px}
html[dir=rtl] .seo-faq-list :is(h3,p){line-height:1.75;letter-spacing:0}
@media(max-width:760px){.seo-faq-list h3{font-size:21px}.seo-faq-list p{font-size:17px}}

.graduation-callout{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:40px var(--gutter);background:var(--accent);color:#fff}
.graduation-callout>div{min-width:0;max-width:760px}
.graduation-callout h2{font-size:clamp(28px,3vw,38px);line-height:1.25;margin:0 0 12px;letter-spacing:-.025em}
.graduation-callout p{margin:0;font-size:18px;line-height:1.55;color:inherit}
.graduation-callout .button{flex-shrink:0;background:var(--ink);color:#fff}
.graduation-page .form-disclosure h2{font-size:22px;line-height:1.4;margin:0 0 12px;text-align:start}
.graduation-class{margin:0;font-weight:700}
.graduation-consents{display:grid;gap:20px}
.graduation-consents .check-option{align-items:flex-start;line-height:1.65}
.graduation-consents .check-option input{margin-block-start:5px}
html[dir=rtl] .graduation-callout h2{line-height:1.5;letter-spacing:0}
@media(max-width:760px){.graduation-callout{flex-direction:column;align-items:stretch;gap:20px}.graduation-callout h2{font-size:30px}.graduation-callout p{font-size:17px}.graduation-callout .button{align-self:flex-start;width:auto}}
