/* Full-width homepage layout, loaded only by the full public header. */
.legacy-thai .legacy-main{width:100%;max-width:none}
.legacy-thai .legacy-shortcuts{width:100%;max-width:none}
.legacy-thai .legacy-banner-frame{max-width:none}
.legacy-thai .legacy-footer-grid,.legacy-thai .legacy-footer-bottom{max-width:none}
/* A quiet two-column agenda: prominent day, compact month/year, readable event. */
.legacy-home-panels .legacy-calendar-event{padding:18px 0}
.legacy-home-panels .legacy-calendar-event>span{display:grid;grid-template-columns:68px minmax(0,1fr);align-items:start;gap:16px}
.legacy-home-panels .legacy-event-date{display:flex;flex-direction:column;align-items:center;margin:0;padding:2px 12px 2px 0;border:0;border-right:1px solid #e5deeb;border-radius:0;background:transparent;color:#67487a;font-family:LegacyKanitMedium,LegacyKanit,Tahoma,sans-serif;font-weight:500;text-align:center}
.legacy-home-panels .legacy-event-day{font-size:30px;line-height:1.1;font-variant-numeric:tabular-nums}
.legacy-home-panels .legacy-event-month{margin-top:5px;color:#766c7c;font-family:LegacyKanit,Kanit,Tahoma,sans-serif;font-size:11px;font-weight:400;line-height:1.5;white-space:nowrap}
.legacy-home-panels .legacy-event-title{display:block;min-width:0;padding-top:2px;color:#443c4b;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
@media(max-width:450px){.legacy-home-panels .legacy-calendar-event>span{grid-template-columns:60px minmax(0,1fr);gap:13px}.legacy-home-panels .legacy-event-day{font-size:28px}}

.legacy-home-panels .legacy-calendar-month{display:block;margin-top:3px;color:#766b7d;font-family:LegacyKanit,Kanit,Tahoma,sans-serif;font-size:13px;font-weight:400;line-height:1.5}

/* Distinct, readable homepage agenda headings retain the original three panels. */
.legacy-thai .legacy-home-panels .legacy-panel{--agenda-accent:#8a4b08;--agenda-soft:#ffe4a3;--agenda-wash:#fff8e8;border-top-color:var(--agenda-accent)}
.legacy-thai .legacy-home-panels .legacy-panel:nth-child(2){--agenda-accent:#654093;--agenda-soft:#e4d3ff;--agenda-wash:#f6efff}
.legacy-thai .legacy-home-panels .legacy-panel:nth-child(3){--agenda-accent:#106650;--agenda-soft:#bcebdc;--agenda-wash:#effaf6}
.legacy-thai .legacy-home-panels .legacy-panel h2{margin:-22px -22px 18px;padding:18px 20px;min-height:86px;border-radius:15px 15px 0 0;border-bottom:1px solid #00000008;background:var(--agenda-soft);color:var(--agenda-accent);font-size:20px;line-height:1.6}
.legacy-thai .legacy-home-panels .legacy-panel h2 i{width:42px;height:42px;border-radius:13px;background:#ffffffb8;color:var(--agenda-accent);box-shadow:0 3px 10px #00000008}
.legacy-thai .legacy-home-panels .legacy-calendar-month{color:var(--agenda-accent);font-size:13px}
@media(max-width:450px){.legacy-thai .legacy-home-panels .legacy-panel h2{padding:16px 18px;font-size:19px}}
