/* Thin rules keep the four facts clear without an enclosing box. */
.ls-home .hp-facts{background:#fff}
.ls-home .hp-facts-grid{width:calc(100% - 80px);max-width:1240px;box-sizing:border-box;margin:0 auto;padding:22px 0;border:0;border-bottom:1px solid #dfe5ea;border-radius:0;background:#fff}
.ls-home .hp-fact-icon{background:transparent;border:0;border-radius:0}
.ls-home a.hp-fact:hover{background:#fff}
/* Upcoming camp uses posters; past camp keeps the existing calm photo rotation. */
.ls-home .hp-events .hp-event-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-content:start;flex:none}
.hp-featured-event{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #e0e6eb;border-radius:4px;background:#fff}
.ls-home .hp-event-photos.hp-classroom-carousel{height:auto;min-height:0;max-height:none;background:#fff}
.ls-home .hp-event-photos .hp-classroom-track{position:relative;display:block;width:100%;height:auto;aspect-ratio:4/3;min-height:0;max-height:none;overflow:hidden}
.hp-event-visual{display:block;color:#304f68;text-decoration:none}
.hp-event-photos figure{position:absolute;inset:0;margin:0}
.ls-home .hp-event-photos img{position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;max-height:none;object-fit:cover;opacity:0;transition:opacity 1s ease}
.ls-home .hp-event-photos img.is-current{opacity:1}
.hp-event-photos figcaption{display:none;position:absolute;left:8px;bottom:8px;z-index:2;padding:3px 6px;border-radius:3px;background:#fffffff0;color:#526575;font:400 11px/1.5 var(--ls-sans)}
.hp-event-photos figure:has(img.is-current) figcaption{display:block}
.hp-featured-event-info{display:flex;flex:1;flex-direction:column;align-items:flex-start;padding:14px;color:#18334f;text-decoration:none}
.hp-featured-event-info time{font:400 12px/1.7 var(--ls-sans);color:#687b8b}
.ls-home .hp-featured-event-info h3{font:600 17px/1.6 var(--ls-serif);margin:6px 0 12px;overflow-wrap:anywhere}
.hp-featured-event-info .hp-status{margin-top:auto;font:500 13px/1.6 var(--ls-sans);background:transparent;padding:0;color:#8e303c}
.hp-featured-event:nth-child(2) .hp-status{color:#476b85}
.hp-featured-event-info:hover{background:#f7f9fa}
@media(max-width:760px){.ls-home .hp-facts-grid{width:calc(100% - 40px);padding:18px 0;margin-block:0}.ls-home .hp-events .hp-event-list{gap:12px}.hp-featured-event-info{padding:12px}.ls-home .hp-featured-event-info h3{font-size:16px}}
@media(prefers-reduced-motion:reduce){.ls-home .hp-event-photos img{transition:none}}

/* One short row links to the full timetable and enrolment form. */
.ls-home .hp-enrol{padding-block:18px;background:#fff}
.ls-home .hp-enrol-grid{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ls-home .hp-enrol h2{font:500 23px/1.5 var(--ls-serif);margin:0;white-space:nowrap}
.ls-home .hp-enrol-actions{display:flex;align-items:center;gap:10px;grid-column:auto;justify-self:auto;margin:0}
.ls-home .hp-enrol-actions a{height:40px;min-height:40px;padding:8px 15px;font:500 14px/1.5 var(--ls-sans);white-space:nowrap}
@media(max-width:760px){.ls-home .hp-enrol{padding-block:14px}.ls-home .hp-enrol-grid{gap:10px}.ls-home .hp-enrol h2{font-size:18px}.ls-home .hp-enrol-actions{gap:6px}.ls-home .hp-enrol-actions a{font-size:12px;padding:8px 10px}}

/* Show both upcoming-camp posters in equal spaces without cropping the artwork. */
.ls-home .hp-event-posters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;aspect-ratio:4/3;padding:8px;box-sizing:border-box;background:#fff;min-width:0}
.ls-home .hp-event-posters button{display:block;position:relative;width:100%;height:100%;min-height:0;min-width:0;margin:0;padding:0;border:0;border-radius:2px;background:#fff;cursor:zoom-in;overflow:hidden}
.ls-home .hp-event-posters img{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;object-fit:contain;transition:opacity .15s}
.ls-home .hp-event-posters button:hover{background:#f5f8fa}
.ls-home .hp-event-posters button:hover img{opacity:.9}
.ls-home .hp-event-posters button:focus-visible{outline:2px solid #577b95;outline-offset:2px}


/* Keep course photo and both links on the same, definite grid tracks. */
.ls-home .hp-overview{align-items:start;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.ls-home .hp-courses,.ls-home .hp-events{align-self:start;min-width:0}
.ls-home .hp-course-feature{display:grid;flex:none;grid-template-columns:minmax(0,1fr) minmax(0,1fr);height:380px;min-height:0;gap:12px;background:#fff;align-items:stretch}
.ls-home .hp-course-feature>.hp-classroom-carousel{position:relative;height:100%;min-height:0;max-height:none;align-self:stretch}
.ls-home .hp-course-feature .hp-classroom-track{position:absolute;inset:0;height:100%;min-height:0;max-height:none}
.ls-home .hp-course-feature .hp-classroom-track>img{height:100%;min-height:0;max-height:none;object-fit:cover}
.ls-home .hp-course-links{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));height:100%;min-height:0;padding:0;gap:12px;box-sizing:border-box}
.ls-home .hp-course-links>a{min-height:0;box-sizing:border-box;margin:0;padding:18px;justify-content:center}
/* Two current registrations share a row; the past camp is a compact full row. */
.ls-home .hp-events .hp-event-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;flex:none}
.ls-home .hp-event-list>.hp-upcoming-event{grid-column:auto;display:flex;flex-direction:column;border:1px solid #e0e6eb;border-radius:5px;padding:0;margin:0;min-width:0;overflow:hidden;background:#fff;color:#243b50}
.ls-home .hp-upcoming-photo{display:block;flex:none;height:140px;padding:8px;box-sizing:border-box;background:#fff}
.ls-home .hp-upcoming-photo img{display:block;width:100%;height:100%;object-fit:contain}
.ls-home .hp-event-posters{height:140px;aspect-ratio:auto;flex:none}
.ls-home .hp-upcoming-event .hp-featured-event-info{padding:12px;gap:0}
.ls-home .hp-upcoming-event .hp-featured-event-info h3{font:600 17px/1.5 var(--ls-serif);margin:4px 0 8px;text-wrap:balance}
.ls-home .hp-upcoming-event .hp-featured-event-info p{font:400 12px/1.6 var(--ls-sans);margin:0 0 8px}
.ls-home .hp-upcoming-event .hp-featured-event-info h3 a{color:#18334f;text-decoration:none}
.ls-home .hp-upcoming-event .hp-status{display:inline-block;margin-top:auto;padding-top:8px;font:500 13px/1.6 var(--ls-sans);color:#96372c;text-decoration:none;background:none}
.ls-home .hp-event-list>.hp-past-event{display:grid;grid-column:1/-1;grid-template-columns:132px minmax(0,1fr)}
.ls-home .hp-past-event .hp-event-photos,.ls-home .hp-past-event .hp-classroom-track{height:110px;min-height:110px;max-height:110px;aspect-ratio:auto}
.ls-home .hp-past-event .hp-featured-event-info{justify-content:center;padding:12px 16px}
.ls-home .hp-past-event .hp-featured-event-info h3{margin:2px 0 4px}
.ls-home .hp-past-event .hp-status{margin-top:0}
.ls-home .ls-page-jumps{background:#fff}
@media(min-width:761px) and (max-width:1040px){.ls-home .hp-overview{grid-template-columns:minmax(0,1fr)}.ls-home .hp-events{border-left:0;padding-left:0}.ls-home .hp-course-feature{height:340px}}
@media(max-width:760px){.ls-home .hp-overview{grid-template-columns:minmax(0,1fr)}.ls-home .hp-course-feature{height:320px}.ls-home .hp-course-links>a{padding:12px}}
@media(max-width:460px){.ls-home .hp-course-feature{height:auto;grid-template-columns:minmax(0,1fr)}.ls-home .hp-course-feature>.hp-classroom-carousel{height:200px}.ls-home .hp-course-links{height:auto;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}.ls-home .hp-course-links h3{font-size:17px}.ls-home .hp-course-links p{font-size:13px}.ls-home .hp-events .hp-event-list{gap:10px}.ls-home .hp-upcoming-photo,.ls-home .hp-event-posters{height:112px}.ls-home .hp-upcoming-event .hp-featured-event-info{padding:10px}.ls-home .hp-upcoming-event .hp-featured-event-info h3{font-size:16px}.ls-home .hp-event-list>.hp-past-event{grid-template-columns:110px minmax(0,1fr)}}

/* Current events are brief summaries; participation details stay on their event page. */
.ls-home .hp-upcoming-photo,.ls-home .hp-event-posters{height:100px}
.ls-home .hp-upcoming-event .hp-featured-event-info{padding:10px 12px;align-items:flex-start;gap:0}
.ls-home .hp-registration-badge{display:inline-block;align-self:flex-start;padding:2px 7px;border-radius:4px;background:#e9f4ec;color:#216342;font:600 11px/1.5 var(--ls-sans)}
.ls-home .hp-upcoming-event .hp-featured-event-info h3{margin:6px 0;font-size:16px;line-height:1.4;text-wrap:balance}
.ls-home .hp-upcoming-event .hp-featured-event-info>a:not(.hp-status){color:inherit;text-decoration:none}
.ls-home .hp-upcoming-event .hp-registration-dates{display:block;margin:0 0 6px;font:400 12px/1.6 var(--ls-sans);color:#607586}
.ls-home .hp-registration-dates time{font:inherit;color:inherit;white-space:nowrap}
.ls-home .hp-upcoming-event .hp-status{padding-top:4px;font-size:12px;color:#315d7b}
@media(max-width:460px){.ls-home .hp-upcoming-photo,.ls-home .hp-event-posters{height:86px}.ls-home .hp-upcoming-event .hp-featured-event-info{padding:9px}.ls-home .hp-registration-badge{font-size:10px}.ls-home .hp-upcoming-event .hp-featured-event-info h3{font-size:15px}}

/* Paired actions share a baseline; desktop columns finish on the same edge. */
.ls-home .hp-event-actions{display:flex;align-items:stretch;gap:7px;margin-top:auto;padding-top:6px;width:100%;flex-wrap:wrap}
.ls-home .hp-upcoming-event .hp-event-actions .hp-event-action{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:34px;padding:6px 10px;border:1px solid #c6d7e2;border-radius:4px;background:#fff;color:#315d7b;font:500 12px/1.5 var(--ls-sans);text-decoration:none}
.ls-home .hp-upcoming-event .hp-event-actions .hp-event-register{border-color:#2c704e;background:#2c704e;color:#fff}
.ls-home .hp-event-action:hover{filter:brightness(.95)}
.ls-home .hp-event-action:focus-visible{outline:3px solid #2463ad;outline-offset:2px}
@media(min-width:1041px){.ls-home .hp-overview{align-items:stretch}.ls-home .hp-courses,.ls-home .hp-events{align-self:stretch}.ls-home .hp-course-feature{height:auto;min-height:0;flex:1}.ls-home .hp-events .hp-event-list{flex:1;grid-template-rows:minmax(min-content,1fr) 112px}}
@media(max-width:460px){.ls-home .hp-event-actions{gap:6px}.ls-home .hp-upcoming-event .hp-event-actions .hp-event-action{padding:6px;font-size:11px;min-height:36px;flex:1}}

@media(max-width:460px){.ls-home .hp-event-actions{flex-wrap:nowrap}.ls-home .hp-upcoming-event .hp-event-actions .hp-event-action{min-width:0;min-height:44px;text-align:center}}

/* Each current event uses the same right-aligned image frame and action row. */
.ls-home .hp-event-list>.hp-upcoming-event{display:grid;grid-template-columns:minmax(0,1fr) 84px;grid-template-rows:1fr auto;gap:10px 12px;padding:12px;align-items:start}
.ls-home .hp-upcoming-event .hp-featured-event-info{grid-column:1;grid-row:1;padding:0;min-width:0}
.ls-home .hp-upcoming-event>.hp-upcoming-photo,.ls-home .hp-upcoming-event>.hp-event-posters{grid-column:2;grid-row:1;width:84px;height:116px;padding:4px;box-sizing:border-box;align-self:start;justify-self:end;background:#f8f8f5;border-radius:4px}
.ls-home .hp-upcoming-event>.hp-event-posters{display:block;aspect-ratio:auto}
.ls-home .hp-upcoming-event>.hp-event-posters button{height:100%;background:transparent}
.ls-home .hp-upcoming-photo img,.ls-home .hp-event-posters img{width:100%;height:100%;object-fit:contain}
.ls-home .hp-upcoming-event>.hp-event-actions{grid-column:1/-1;grid-row:2;padding-top:0;margin-top:0;align-self:end}
.ls-home .hp-upcoming-event .hp-featured-event-info h3{margin:7px 0;font-size:16px}
.ls-home .hp-upcoming-event .hp-registration-dates{margin-bottom:0}
@media(min-width:1450px){.ls-home .hp-event-list>.hp-upcoming-event{grid-template-columns:minmax(0,1fr) 96px}.ls-home .hp-upcoming-event>.hp-upcoming-photo,.ls-home .hp-upcoming-event>.hp-event-posters{width:96px;height:128px}}
@media(max-width:599px){.ls-home .hp-events .hp-event-list{grid-template-columns:minmax(0,1fr)}.ls-home .hp-event-list>.hp-upcoming-event{grid-template-columns:minmax(0,1fr) 84px;gap:10px 12px}.ls-home .hp-upcoming-event>.hp-event-actions{grid-column:1;grid-row:2}.ls-home .hp-upcoming-event>.hp-upcoming-photo,.ls-home .hp-upcoming-event>.hp-event-posters{grid-row:1/3;align-self:center}.ls-home .hp-upcoming-event .hp-event-actions .hp-event-action{flex:0 1 auto;font-size:12px;padding:6px 10px}.ls-home .hp-event-list>.hp-past-event{grid-column:1}}

/* Equal visible thumbnail dimensions: crop images rather than letterbox them. */
.ls-home .hp-upcoming-event>.hp-upcoming-photo,.ls-home .hp-upcoming-event>.hp-event-posters{height:112px;padding:0;overflow:hidden;background:#fff}
.ls-home .hp-upcoming-event .hp-upcoming-photo img,.ls-home .hp-upcoming-event .hp-event-posters img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:4px}
@media(min-width:1450px){.ls-home .hp-upcoming-event>.hp-upcoming-photo,.ls-home .hp-upcoming-event>.hp-event-posters{height:128px}}

/* Focus the portrait thumbnail on the single left-hand dragon-dance scene. */
.ls-home .hp-upcoming-event>.hp-upcoming-photo{position:relative}
.ls-home .hp-upcoming-event .hp-upcoming-photo img{position:absolute;inset:auto;left:0;top:-10%;width:185%;height:auto;max-width:none;object-fit:initial;border-radius:0}
