/* A fixed modal shell keeps both close buttons reachable; only links scroll. */
body.mobile-menu-visible{overflow:hidden;overscroll-behavior:none}
#mobile-menu{box-sizing:border-box;width:calc(100% - 24px);max-width:440px;height:fit-content;max-height:calc(100dvh - 24px);margin:auto;padding:18px;border:1px solid #e7c87599;border-radius:24px;background:linear-gradient(145deg,rgba(139,18,48,.58),rgba(69,9,25,.66));backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff4d8;box-shadow:0 20px 70px #0008;overflow:hidden}
#mobile-menu[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;animation:menu-enter .18s ease-out}
#mobile-menu::backdrop{background:#19040933}
.mobile-menu-top{grid-row:1;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;text-align:center;padding-bottom:12px;border-bottom:1px solid #e8cb7955}
.mobile-menu-top>div{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;text-align:center}.mobile-menu-close{grid-column:3;grid-row:1}.mobile-menu-back{grid-column:1;grid-row:1}
.mobile-menu-caption{display:block;width:100%;font-size:13px;line-height:1.5;text-align:center;color:#f1d990}#mobile-menu h2{font-size:25px;line-height:1.4;margin:0;padding:0;width:100%;text-align:center;letter-spacing:0;text-indent:0;color:#fff0b2}
.mobile-menu-close,.mobile-menu-back{width:44px;height:44px;padding:0;border:1px solid #e8cb7980;border-radius:50%;background:#ffffff0c;color:#fff0b2;font-size:30px;line-height:1}.mobile-menu-back[hidden]{display:none}
#mobile-menu .mobile-menu-close{position:relative;display:flex;align-items:center;justify-content:center;align-self:center;padding:0;margin:0;box-sizing:border-box;line-height:0;appearance:none}
#mobile-menu .mobile-menu-close svg{display:block;flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
#mobile-menu .mobile-menu-close::before,#mobile-menu .mobile-menu-close::after{content:none}
#mobile-menu .mobile-menu-links{grid-row:2;order:0;position:static;display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:12px 2px;margin:0;overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin}
#mobile-menu .mobile-menu-links a,#mobile-menu .mobile-menu-links button{position:relative;display:flex;align-items:center;justify-content:center;text-align:center;flex-shrink:0;min-height:48px;padding:10px 30px;border:1px solid transparent;border-radius:12px;background:transparent;color:#fff4df;font:inherit;font-size:18px;font-weight:500;line-height:1.4;text-decoration:none;cursor:pointer}
#mobile-menu .menu-chevron{position:absolute;right:12px;font-size:24px;color:#edce83}
#mobile-menu .mobile-menu-links [aria-current=page]{background:#f1d386;color:#4a1520;font-weight:700}#mobile-menu .mobile-menu-links [aria-current=page]:after{display:none}
#mobile-menu .mobile-menu-links a:hover,#mobile-menu .mobile-menu-links button:hover{border-color:#e8cb7966;background:#ffffff14}#mobile-menu .mobile-menu-links [aria-current=page]:hover{background:#ffe3a0}
.mobile-menu-bottom{grid-row:3;position:relative;z-index:1;display:grid;gap:8px;padding-top:10px;padding-bottom:env(safe-area-inset-bottom,0px);border-top:1px solid #e8cb7955;text-align:center}
.mobile-menu-account{display:flex;justify-content:center;align-items:center;min-height:44px;font-size:17px;color:#ffedb4}
.mobile-menu-close-bottom{width:100%;min-height:48px;border:1px solid #efd28a;border-radius:12px;background:#f1d386;color:#481420;font:inherit;font-size:18px;font-weight:700}
#mobile-menu :focus-visible{outline:3px solid #fff2ad;outline-offset:-3px}
@media(max-width:1100px){.navigation-bar #primary-navigation,.navigation-bar #primary-navigation.open{display:none}}
@media(max-height:520px){#mobile-menu{padding:10px}.mobile-menu-caption{display:none}.mobile-menu-top{padding-bottom:6px}.mobile-menu-bottom{gap:3px;padding-top:5px}#mobile-menu .mobile-menu-links{padding:6px 2px}}
@keyframes menu-enter{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){#mobile-menu[open]{animation:none}}
/* Phone layout: compact masthead + bottom quick-menu bar (tablet/desktop unchanged) */
.bottom-nav,.masthead-language{display:none}
@media(max-width:700px){
 .association-masthead{min-height:0;padding:10px 12px 10px 14px;justify-content:flex-start;gap:10px}
 header .association-masthead .brand{flex-direction:row;align-items:center;gap:10px;text-align:left;margin-right:auto;max-width:calc(100% - 92px)}
 header .association-masthead .brand img{width:42px;height:52px;margin:0;flex:none}
 .association-masthead .association-name-th,.association-masthead .association-name-en{font-size:17px;line-height:1.35;text-wrap:balance}
 .association-masthead .header-art{display:block;position:absolute;top:6px;width:26px;height:32px;opacity:.55;transform:none}
 .association-masthead .art-left{left:auto;right:96px;top:4px}.association-masthead .art-right{display:none}
 .masthead-language{display:flex;position:relative;z-index:1;flex:none;align-items:center;gap:2px;min-height:40px;padding:3px;border:1px solid #e6c56788;border-radius:22px;background:#2a0409aa}
 .masthead-language .language-option{display:block;min-width:36px;padding:5px 8px;border-radius:18px;font-size:14px;line-height:1.3;color:#ffeabd;text-align:center}
 .masthead-language .language-option.is-active{background:#f1d47d;color:#4b140e;font-weight:700}
 .navigation-bar{display:none}
 .bottom-nav{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;z-index:90;padding:4px 2px calc(4px + env(safe-area-inset-bottom,0px));background:#fffaf2f7;border-top:1px solid #d8b575;box-shadow:0 -6px 20px #3a060f26;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
 .bottom-nav a,.bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:56px;padding:4px 0;border:0;border-radius:12px;background:transparent;color:#5b2a30;font:inherit;font-size:12.5px;font-weight:600;line-height:1.2;text-decoration:none;cursor:pointer}
 .bottom-nav svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .bottom-nav [aria-current=page]{color:#800020;background:#f6e3b4}
 .bottom-nav .bottom-nav-menu{color:#800020}
 .bottom-nav a:focus-visible,.bottom-nav button:focus-visible{outline:3px solid #b17b00;outline-offset:-3px}
 body{padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))}
 .cookie-notice{bottom:calc(76px + env(safe-area-inset-bottom,0px))!important}
 #toast{bottom:calc(80px + env(safe-area-inset-bottom,0px))}
 body.mobile-menu-visible .bottom-nav{visibility:hidden}
}
@media(max-width:360px){.bottom-nav a,.bottom-nav button{font-size:11.5px}.association-masthead .association-name-th,.association-masthead .association-name-en{font-size:15.5px}header .association-masthead .brand img{width:36px;height:44px}.association-masthead .header-art{display:none}}
@media print{.bottom-nav{display:none!important}}
@media(max-width:700px){.association-masthead .name-line{display:block;white-space:nowrap}.bottom-nav{padding-left:0;padding-right:0}.bottom-nav a,.bottom-nav button{white-space:nowrap;letter-spacing:-.1px;padding:4px 1px;font-size:11.5px}}
@media(max-width:380px){.bottom-nav a,.bottom-nav button{font-size:10.5px}.bottom-nav svg{width:22px;height:22px}}
@media(max-width:360px){.association-masthead{padding:8px 10px}.masthead-language .language-option{min-width:30px;padding:4px 6px;font-size:13px}.association-masthead .association-name-th,.association-masthead .association-name-en{font-size:14px}header .association-masthead .brand{max-width:calc(100% - 82px);gap:8px}header .association-masthead .brand img{width:32px;height:40px}}
@media(max-width:700px){.bottom-nav{padding-left:4px;padding-right:4px;column-gap:1px}}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media(max-width:700px){
 .association-masthead .header-art{display:none!important}
 .association-masthead{padding:8px 10px 8px 12px;gap:8px}
 header .association-masthead .brand{max-width:none;flex:1 1 auto;min-width:0;gap:9px}
 header .association-masthead .brand>span{min-width:0}
 .association-masthead .name-line{white-space:normal}
 .association-masthead .association-name-th{font-size:clamp(13.5px,4.1vw,18px);line-height:1.3}
 .association-masthead .association-name-en{font-size:clamp(13.5px,4vw,17px);line-height:1.3}
 header .association-masthead .brand img{width:38px;height:47px}
 .masthead-language{gap:5px;min-height:44px;min-width:58px;padding:4px 10px;justify-content:center;color:#ffeabd;font-size:15px;font-weight:700;background:#2a0409aa}
 .masthead-language svg{width:17px;height:17px;fill:none;stroke:#f1d47d;stroke-width:1.6}
}
@media(max-width:360px){.masthead-language{min-width:50px;padding:4px 8px;font-size:14px}.masthead-language svg{width:15px;height:15px}header .association-masthead .brand img{width:32px;height:40px}}
/* Page banner with icon (all sizes) */
.page-head{display:flex;align-items:center;gap:28px;background:linear-gradient(115deg,#f6ead2,#fffaf2 60%,#f3e3c2);border-bottom:2px solid #d4ad55;position:relative;overflow:hidden}
.page-head:after{content:'';position:absolute;right:-60px;top:-60px;width:220px;height:220px;border-radius:50%;border:1px solid #d4ad5555;box-shadow:0 0 0 26px #d4ad5512,0 0 0 52px #d4ad550d;pointer-events:none}
.page-head-copy{min-width:0;position:relative;z-index:1}
.page-head-icon{flex:none;display:grid;place-items:center;width:76px;height:76px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#a51634,#800020 60%,#5c0b1c);box-shadow:0 0 0 4px #fffaf2,0 0 0 6px #d4ad55,0 10px 24px #5c0b1c33;position:relative;z-index:1}
.page-head-icon svg{width:34px;height:34px;fill:none;stroke:#f6d98a;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.home-stats{display:none}
@media(max-width:700px){
 .page-head{padding:18px 16px 18px 16px;gap:14px;align-items:center}
 .page-head:after{width:150px;height:150px;right:-50px;top:-50px}
 .page-head-icon{width:54px;height:54px;box-shadow:0 0 0 3px #fffaf2,0 0 0 4.5px #d4ad55,0 6px 14px #5c0b1c2e}
 .page-head-icon svg{width:26px;height:26px}
 .page-head .eyebrow{font-size:10.5px;letter-spacing:2px}
 .page-head h1{font-size:clamp(22px,6.4vw,27px);line-height:1.3;margin:2px 0 4px;letter-spacing:-.2px}
 .page-head p{font-size:14.5px;line-height:1.55;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 /* Home: cream welcome banner + stats infographic instead of the tall red hero */
 .association-hero{background:linear-gradient(115deg,#f6ead2,#fffaf2 60%,#f3e3c2);color:#332125;padding:22px 16px 20px;gap:16px;border-bottom:2px solid #d4ad55}
 .association-hero .eyebrow,.hero .eyebrow{color:#9c752f;font-size:10px;letter-spacing:1.6px}
 .association-hero h1{font-size:clamp(26px,7.6vw,32px);line-height:1.3;letter-spacing:-.5px;margin:6px 0 8px;color:#3a1a20}
 .association-hero h1 em{color:#800020}
 .association-hero .hero-copy>p{color:#5f4b50;font-size:15px;line-height:1.6;margin:0}
 .association-hero .actions{margin:14px 0 0;gap:8px;flex-wrap:nowrap}
 .association-hero .actions .btn{flex:1 1 0;min-width:0;padding:10px 12px;font-size:14.5px;gap:6px;white-space:nowrap}
 .association-hero .btn.gold{background:#800020;border-color:#800020;color:#fff3cf}
 .association-hero .btn.outline{border-color:#800020;color:#800020;background:#fff}
 .association-hero .hero-note,.association-hero .hero-index{display:none}
 .association-hero .hero-photo{margin:0}
 .association-hero .hero-photo img{height:190px;border-radius:18px;padding:0;border:2px solid #d4ad55;box-shadow:0 10px 24px #5c0b1c26}
 .association-hero .photo-caption{left:10px;top:10px;bottom:auto;padding:4px 11px 5px;gap:5px;border-radius:999px}
 .association-hero .photo-caption span{display:none}.association-hero .photo-caption strong{font-size:13px}.association-hero .photo-caption:before{font-size:13px}
 .ribbon{display:none}
 .home-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px 12px 4px}
 .home-stats a{display:grid;grid-template-columns:40px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:12px;border-radius:14px;background:#fffaf2;border:1px solid #d8b575;box-shadow:0 4px 14px #3a060f1f;min-height:64px;text-decoration:none}
 .home-stats svg{grid-row:1/3;width:40px;height:40px;padding:8px;border-radius:50%;background:#800020;fill:none;stroke:#f6d98a;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .home-stats b{font-size:19px;line-height:1.2;color:#800020}
 .home-stats span{font-size:13px;line-height:1.3;color:#6d575d}
}
@media(max-width:360px){.association-hero .actions{flex-wrap:wrap}.association-hero .actions .btn{flex:1 1 100%}.home-stats b{font-size:17px}}

.mobile-menu-lang{display:flex;justify-content:center;padding:4px 0}
#mobile-menu .mobile-menu-langbtn{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:96px;padding:4px 16px;border:1px solid #e6c56788;border-radius:22px;background:#2a0409aa;color:#ffeabd;font:inherit;font-size:16px;font-weight:700;cursor:pointer}
#mobile-menu .mobile-menu-langbtn svg{width:18px;height:18px;fill:none;stroke:#f1d47d;stroke-width:1.6}
#mobile-menu .mobile-menu-links{justify-content:safe center}
#mobile-menu .mobile-menu-links{gap:0;scrollbar-width:none}#mobile-menu .mobile-menu-links::-webkit-scrollbar{display:none}
#mobile-menu .mobile-menu-links>a,#mobile-menu .mobile-menu-links>button{border-radius:0;border:0;border-bottom:1px solid #e8cb7940}
#mobile-menu .mobile-menu-links>:last-child{border-bottom:0}
#mobile-menu .mobile-menu-links [aria-current=page]{border-radius:12px;border-bottom-color:transparent}
#mobile-menu .mobile-menu-links a:hover,#mobile-menu .mobile-menu-links button:hover{border-color:transparent;border-bottom-color:#e8cb7940}
