/* One coherent phone layout; desktop keeps its existing composition. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.announcement-mobile{display:none}
@media(max-width:640px){
  :root{--mobile-gutter:20px;--mobile-bar-height:calc(64px + env(safe-area-inset-bottom))}
  html{scroll-padding-top:calc(var(--header-height,64px) + 16px);scroll-padding-bottom:calc(var(--mobile-bar-height) + 16px)}
  body{width:100%;min-width:0;overflow-wrap:break-word;padding-bottom:var(--mobile-bar-height)}
  .container{width:100%;max-width:100%;min-width:0;margin-left:auto;margin-right:auto;padding-left:var(--mobile-gutter);padding-right:var(--mobile-gutter);padding-left:max(var(--mobile-gutter),env(safe-area-inset-left));padding-right:max(var(--mobile-gutter),env(safe-area-inset-right))}
  main,section,article,aside,figure,form,fieldset{min-width:0}
  p,h2,h3,h4,li,dd,label{overflow-wrap:break-word}
  .button,.text-link{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
  .announcement{min-height:30px;padding:6px 20px;gap:7px;font-size:11px;line-height:1.5;letter-spacing:.1px;text-align:center}
  .announcement-long,.announcement-te{display:none}
  .announcement-mobile{display:block;min-width:0;white-space:normal;overflow-wrap:break-word}
  .announcement .tiny-spark{flex:none;font-size:15px}
  .site-header{position:sticky;top:0;min-height:64px;height:auto;gap:8px;padding:10px 16px;padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));background:var(--cream);box-shadow:0 1px 0 #244c3e12;isolation:isolate}
  .site-header:before{display:none}
  .site-header .brand{flex:1 1 auto;min-width:0;max-width:calc(100% - 104px);gap:7px;font-size:18px;line-height:1.2;letter-spacing:-.6px}
  .site-header .brand>span{min-width:0;overflow-wrap:anywhere}
  .site-header .brand-icon{flex:0 0 27px;width:27px;height:27px}
  .site-header .brand small{font-size:7px;line-height:1.5;letter-spacing:1.05px;margin-top:4px;white-space:normal}
  .header-actions{flex:0 0 auto;gap:6px;min-width:0}
  .site-header .desktop-join{display:none}
  .language-switch{display:flex;justify-content:center;align-items:center;min-width:44px;min-height:44px;padding:7px 6px;border:1px solid #d9dfcf;border-radius:12px;background:#eef1e6;font-size:13px;line-height:1.5;gap:0}
  .language-switch span:first-child{display:none}
  .language-switch span+span{border:0;padding:0;color:var(--ink);font-weight:600}
  html[lang=te] .language-switch span:first-child{display:block;font-weight:600}
  html[lang=te] .language-switch span:last-child{display:none}
  .menu-toggle{display:flex;flex:none;align-items:center;justify-content:center;flex-direction:column;width:44px;min-width:44px;height:44px;padding:12px;gap:6px;border:1px solid #d9dfcf;border-radius:12px;background:#fffdf6}
  .menu-toggle span{display:block;width:20px;height:2px;flex:none;background:var(--ink);transform-origin:center}
  .menu-toggle[aria-expanded=true]{border-color:var(--green);border-radius:12px;background:var(--green)}
  .menu-toggle[aria-expanded=true] span{background:#fffdf4}
  .site-header nav{display:none;position:absolute;top:calc(100% - 1px);left:16px;right:16px;width:auto;max-height:calc(100dvh - var(--header-height,64px) - 60px);overflow-y:auto;padding:8px;border:1px solid #d5dfc9;border-radius:15px;background:#fffef8;box-shadow:0 16px 32px #203b3226;gap:0}
  .site-header nav.open{display:flex;flex-direction:column}
  .site-header nav a{display:flex;align-items:center;min-height:50px;padding:12px 13px;font-size:15px;line-height:1.5;white-space:normal;overflow-wrap:break-word;border-radius:9px}
  .site-header nav a+a{border-top:1px solid #e7eadf}
  .site-header nav a:after{display:none}
  .site-header nav .nav-calendar{background:#edf2e4;color:#365c42}
  .hero{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding-top:22px;padding-bottom:28px}
  .hero-copy{display:contents}
  .hero .hero-copy>.eyebrow{order:1;align-self:flex-start;max-width:100%;width:fit-content;padding:5px 9px;gap:6px;border:1px solid #dce4d2;border-radius:20px;background:#edf1e5;font-size:9px;line-height:1.6;letter-spacing:.55px;white-space:normal}
  .hero .eyebrow .status-dot{flex:none;width:6px;height:6px;box-shadow:none}
  .hero .hero-copy>h1{order:2;width:100%;margin:1px 0 0;font-size:clamp(32px,9.4vw,40px);line-height:1.07;font-weight:500;letter-spacing:-1.35px;overflow-wrap:normal;word-break:normal}
  .hero-description{order:3;margin:0;max-width:none;font-size:16px;line-height:1.65;color:#586653}
  .hero .hero-buttons{order:4;display:flex;flex-wrap:nowrap;align-items:stretch;gap:12px;margin-top:2px;margin-bottom:5px;min-width:0}
  .hero .hero-buttons .button{flex:1 1 auto;min-width:0;min-height:48px;justify-content:space-between;padding:11px 14px;gap:8px;border-radius:11px;font-size:14px;line-height:1.5;white-space:normal;text-align:left}
  .hero .hero-buttons .button>span:first-child{min-width:0;overflow-wrap:break-word}
  .hero .hero-buttons .button>span:last-child{flex:none}
  .hero .hero-buttons .text-link{flex:0 1 auto;max-width:42%;min-width:0;min-height:48px;justify-content:center;padding:10px 0;font-size:13px;line-height:1.5;white-space:normal}
  .hero-art{order:5;align-self:stretch;width:100%;max-width:100%;margin:0;padding:0}
  .hero-art .hero-concept{display:block;width:100%;max-width:100%;height:auto;min-height:0;aspect-ratio:3/2;object-fit:contain;border:1px solid #d4dec8;border-radius:17px;box-shadow:0 5px 16px #244c3e0b}
  .hero-art figcaption{position:static;margin:0;padding:7px 1px 0;max-width:100%;font-size:11px;line-height:1.55;color:#66735e}
  .hero-note{order:6;align-items:flex-start;gap:7px;min-width:0;margin-top:1px;font-size:12px;line-height:1.6}
  .hero-note svg{flex:none;width:14px;height:17px;margin-top:1px}
  .welcome-inner{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-height:0;padding-top:17px;padding-bottom:17px;font-size:12px;line-height:1.5}
  .welcome-inner .welcome-intro{grid-column:1/-1;max-width:none;width:auto;margin:0 0 3px;text-align:left;font:500 17px/1.4 var(--font)}
  .welcome-inner>span:not(:first-child){display:flex;min-width:0;padding:7px 9px;gap:0;border:1px solid #a5b59c40;border-radius:8px}
  .welcome-inner i{display:none}
  .mobile-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;z-index:25;gap:8px;width:100%;padding:6px 16px calc(6px + env(safe-area-inset-bottom));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));border-top:1px solid #d4ddc9;background:#faf9f1f5;box-shadow:0 -3px 15px #244c3e0a;backdrop-filter:blur(12px)}
  .mobile-actions a{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-width:0;min-height:52px;padding:5px 3px;border:0;border-radius:11px;font-size:11px;font-weight:600;line-height:1.2;text-align:center;white-space:normal;overflow-wrap:break-word;color:#365541}
  .mobile-actions a:first-child{border:0;background:#e3ecd8;color:#264e3f}
  .mobile-actions a svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  .mobile-actions a span{max-width:100%}
  .mobile-actions a:focus-visible{outline-offset:-2px}
  body.modal-open .mobile-actions{display:none}
  .toast{bottom:calc(var(--mobile-bar-height) + 16px);left:20px;right:20px;max-width:none;transform:none;width:auto;font-size:13px;line-height:1.6}
  html[lang=te] .hero .hero-copy>h1{font-size:clamp(27px,7.9vw,34px);line-height:1.5;letter-spacing:-.7px}
  html[lang=te] .hero .hero-copy>.eyebrow{font-size:10px;letter-spacing:0}
  html[lang=te] .hero .hero-buttons .button{font-size:13px;line-height:1.65;padding-inline:12px}
  html[lang=te] .hero .hero-buttons .text-link{font-size:12px;line-height:1.65}
  html[lang=te] .mobile-actions a{font-size:11px;line-height:1.4}
}
@media(min-width:390px) and (max-width:640px){:root{--mobile-gutter:24px}}
@media(max-width:350px){.site-header .brand{font-size:17px}.site-header .brand small{font-size:6.5px;letter-spacing:.85px}.hero .hero-copy>.eyebrow{font-size:8.5px;letter-spacing:.35px}.hero .hero-buttons{gap:10px}.hero .hero-buttons .button{font-size:13px;padding-inline:12px}.hero .hero-buttons .text-link{font-size:12px}.welcome-inner>span:not(:first-child){font-size:11.5px;padding:7px 8px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media(min-width:641px) and (max-width:960px) and (max-height:500px){
  .announcement{display:none}
  .container{width:100%;padding-left:32px;padding-right:32px;padding-left:max(32px,env(safe-area-inset-left));padding-right:max(32px,env(safe-area-inset-right))}
  .site-header{height:68px;gap:16px}
  .site-header .brand{font-size:18px}
  .site-header .brand small{font-size:7px}
  .site-header nav{font-size:12px;gap:12px}
  .hero{padding-block:20px 28px;gap:24px}
  .hero h1{font-size:42px;line-height:1.05}
  .hero-description{font-size:15px;line-height:1.65}
  .hero-note{font-size:11px;margin-top:12px}
  .hero .hero-buttons{margin-top:16px;gap:12px}
  .hero .hero-buttons .button,.hero .hero-buttons .text-link{min-height:44px;font-size:13px}
}
