/* v16.3 native festival discovery, 640px shell, Bai Jamjuree and iOS touch targets. */
:root{--fe-bg:#edf6f0;--fe-panel:#fbfefb;--fe-text:#174138;--fe-muted:#668278;--fe-line:#cfe3d8;--fe-soft:#e6f3eb;--fe-accent:#08775d;--fe-shadow:0 12px 26px rgba(20,83,61,.065)}
html[data-theme=dark]{--fe-bg:#10231f;--fe-panel:#1a3029;--fe-text:#ebf8ef;--fe-muted:#a6c3b6;--fe-line:#315548;--fe-soft:#28463a;--fe-accent:#93dfb9;--fe-shadow:0 13px 28px rgba(0,0,0,.13)}
body.lvg-festivals-page{background:var(--fe-bg);color:var(--fe-text);font-family:'Bai Jamjuree',system-ui,sans-serif}body.lvg-festivals-page *{box-sizing:border-box}
.fe-shell{width:min(640px,calc(100% - 20px));max-width:640px;margin:0 auto;padding:0 0 calc(100px + env(safe-area-inset-bottom,0px));min-width:0}
.fe-hero{background:linear-gradient(120deg,#09614d,#109375);color:white;padding:24px;border-radius:20px;margin:0 0 12px;box-shadow:var(--fe-shadow)}.fe-eyebrow,.fe-kicker{font-size:11px;letter-spacing:.09em;font-weight:800}.fe-hero .fe-eyebrow{color:#d7ffe8}.fe-hero h1{font-size:clamp(27px,5vw,36px);line-height:1.22;letter-spacing:-.035em;margin:10px 0 9px;color:white}.fe-hero h1 em{font-weight:500;color:#ebf6e2}.fe-hero p{color:#e9fff4;font-size:13px;line-height:1.62;margin:0}.fe-hero-foot{display:flex;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin-top:17px;padding-top:11px;border-top:1px solid #ffffff44;font-weight:700;font-size:11px;color:#edfff6}
.fe-prefs,.fe-event,.fe-notice{background:var(--fe-panel);border:1px solid var(--fe-line);box-shadow:var(--fe-shadow);border-radius:18px}.fe-prefs{padding:18px;margin:0 0 22px}.fe-heading{display:flex;align-items:center;gap:12px;justify-content:space-between}.fe-heading h2,.fe-toolbar h2{font-size:19px;line-height:1.3;margin:4px 0}.fe-kicker{color:var(--fe-accent)}.fe-limit{font-size:12px;color:var(--fe-accent);font-weight:800;border-radius:999px;padding:6px 10px;background:var(--fe-soft)}.fe-prefs>p,.fe-toolbar p,.fe-hint{font-size:12px;color:var(--fe-muted);line-height:1.55;margin:7px 0 12px}.fe-province-form{display:flex;gap:8px;min-width:0}.fe-province-form select{flex:1;width:100%;min-width:0;min-height:48px;border:1px solid var(--fe-line);border-radius:12px;background:var(--fe-panel);color:var(--fe-text);padding:8px 12px;font:600 16px 'Bai Jamjuree',system-ui,sans-serif}.fe-province-form button,.fe-empty button{min-height:48px;padding:10px 15px;border:0;border-radius:12px;background:#08775d;color:white;font:800 13px 'Bai Jamjuree',system-ui,sans-serif;white-space:nowrap}.fe-province-form button:disabled{opacity:.48;cursor:not-allowed}.fe-favorites{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.fe-favorites:empty{display:none}.fe-fav{display:inline-flex;align-items:center;gap:8px;background:var(--fe-soft);color:var(--fe-text);padding:5px 5px 5px 11px;border:1px solid var(--fe-line);border-radius:99px;font-size:12px;font-weight:800}.fe-fav button{width:30px;height:30px;display:grid;place-items:center;cursor:pointer;border:0;border-radius:50%;background:var(--fe-panel);color:var(--fe-text);font-size:17px}.fe-prefs .fe-hint{margin:12px 0 0}.fe-toolbar{margin:0 0 12px}.fe-toolbar h2{font-size:21px}.fe-toolbar p{margin:3px 0 11px}.fe-filters{display:flex;gap:7px;flex-wrap:wrap}.fe-filters button{border:1px solid var(--fe-line);background:var(--fe-panel);color:var(--fe-text);border-radius:999px;min-height:40px;padding:8px 12px;font:800 12px 'Bai Jamjuree',system-ui,sans-serif}.fe-filters button.is-active{background:#08775d;color:white;border-color:#08775d}.fe-results-caption{margin:10px 0 12px;color:var(--fe-muted);font-size:12px}.fe-list{display:grid;gap:11px}.fe-event{display:grid;grid-template-columns:65px minmax(0,1fr);gap:13px;padding:15px;min-width:0}.fe-event[hidden]{display:none}.fe-date{border-radius:12px;background:var(--fe-soft);padding:9px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:start;min-height:80px}.fe-date strong{font-size:27px;font-weight:850;line-height:1.1;color:var(--fe-text);font-variant-numeric:tabular-nums}.fe-date span{font-size:9px;line-height:1.4;font-weight:800}.fe-date small{font-size:11px;color:var(--fe-muted)}.fe-event-body{min-width:0;overflow-wrap:anywhere}.fe-event-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.fe-province-tag,.fe-status{font-size:10px;font-weight:800;padding:4px 8px;border-radius:99px;line-height:1.35;background:var(--fe-soft);color:var(--fe-accent)}.fe-status-plan{background:#fff1d7;color:#955709}.fe-status-tradition{background:var(--fe-soft);color:var(--fe-muted)}html[data-theme=dark] .fe-status-plan{background:#624b22;color:#ffdd91}.fe-event h3{font-size:17px;line-height:1.35;margin:8px 0 3px;color:var(--fe-text)}.fe-place{font-size:12px;font-weight:750;color:var(--fe-accent);margin:0 0 8px}.fe-description{font-size:12px;line-height:1.65;color:var(--fe-muted);margin:0 0 7px}.fe-lunar{font-size:12px;color:var(--fe-text);font-weight:750;margin:5px 0}.fe-actions{display:flex;flex-wrap:wrap;gap:8px 17px;margin-top:11px;padding-top:11px;border-top:1px solid var(--fe-line)}.fe-actions a{color:var(--fe-accent);font-weight:800;font-size:12px;text-decoration:none;display:inline-flex;min-height:35px;align-items:center;gap:4px}.fe-empty{background:var(--fe-panel);border:1px solid var(--fe-line);border-radius:15px;padding:20px;text-align:center}.fe-empty strong{font-size:15px}.fe-empty p{font-size:12px;color:var(--fe-muted)}.fe-notice{padding:16px;margin:17px 0 0}.fe-notice strong{font-size:14px}.fe-notice p{font-size:12px;line-height:1.7;color:var(--fe-muted);margin:8px 0 0}.fe-footer{text-align:center;padding:18px 0 0;font-size:12px;color:var(--fe-muted)}.fe-footer a{color:var(--fe-accent);font-weight:700}.fe-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.fe-shell button:focus-visible,.fe-shell select:focus-visible,.fe-shell a:focus-visible{outline:3px solid #cda549;outline-offset:2px}
@media(max-width:480px){.fe-hero{padding:20px 17px;border-radius:18px}.fe-hero h1{font-size:30px}.fe-prefs{padding:14px;border-radius:16px}.fe-event{grid-template-columns:57px minmax(0,1fr);gap:10px;padding:12px}.fe-date{min-height:75px}.fe-date strong{font-size:24px}.fe-event h3{font-size:16px}.fe-province-form{flex-wrap:wrap}.fe-province-form select{flex-basis:100%}.fe-province-form button{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Community entry v16.5 */
.fe-community-entry{background:var(--glass-strong,#fcfffc);border:1px solid var(--outline,#d0e4d7);border-radius:16px;padding:16px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0 18px}.fe-community-entry>div{flex:1 0 220px}.fe-community-entry strong{font-size:14px}.fe-community-entry p{font-size:12px;color:var(--text-muted,#658176);margin:4px 0}.fe-community-entry a{font-size:12px;min-height:40px;padding:9px 12px;border-radius:10px;background:var(--glass,#e5f5ec);color:var(--title,#086d59);font-weight:800;text-decoration:none}
