/* Independent, scoped stylesheet: no calendar library or global form overrides. */
.sun-training{--sun-accent:#ffda46;--sun-ink:#40484d;--sun-muted:#666b70;--sun-line:#e1e4e6;color:var(--sun-ink);width:100%;min-width:0;margin:0 0 64px;padding:32px;border:1px solid var(--sun-line);border-radius:6px;background:#fff;font-size:16px;scroll-margin-top:28px}
.sun-training *{box-sizing:border-box}.sun-training [hidden]{display:none!important}
.sun-training__heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}
.sun-training__eyebrow{font-size:12px;font-weight:700;letter-spacing:.14em;margin:0 0 10px;color:#575d61}
.sun-training h2{font-size:clamp(27px,3vw,38px);line-height:1.15;font-weight:500;letter-spacing:-.035em;margin:0 0 12px;color:var(--sun-ink)}
.sun-training__intro{font-size:16px;line-height:1.5;color:var(--sun-muted);margin:0}
.sun-training__intro-tag{font-size:13px;line-height:1.5;max-width:175px;border-left:1px solid var(--sun-line);padding-left:14px}
.sun-training__toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;margin-bottom:26px}
.sun-training button{font-family:inherit;font-size:14px;font-weight:550;line-height:1.3;cursor:pointer;color:var(--sun-ink);box-shadow:none}
.sun-training button:focus-visible,.sun-training a:focus-visible,.sun-training summary:focus-visible{outline:3px solid #235eab;outline-offset:3px}
.sun-training__tabs{display:flex;border:1px solid var(--sun-line);padding:4px;border-radius:6px;background:#fff}
.sun-training__tabs button{border:0;border-radius:4px;min-height:44px;background:transparent;padding:10px 16px;white-space:nowrap}
.sun-training__tabs button[aria-pressed=true]{background:var(--sun-ink);color:#fff}
.sun-training__tabs button span{margin-left:7px;border-radius:5px;font-size:12px;background:#e9ecee;color:var(--sun-ink);padding:2px 6px}
.sun-training__formats{display:flex;gap:6px;flex-wrap:wrap}
.sun-training__formats button{min-height:42px;padding:9px 13px;background:transparent;border:1px solid transparent;border-radius:4px;color:var(--sun-muted)}
.sun-training__formats button[aria-pressed=true]{border-color:#b6bec3;background:#fff;color:var(--sun-ink)}
.sun-training__layout{display:grid;grid-template-columns:minmax(265px,.75fr) minmax(0,1.5fr);gap:30px;align-items:start}
.sun-training__calendar{border:1px solid var(--sun-line);border-radius:6px;background:white;padding:20px;min-width:0}
.sun-training__calendar summary{display:none;font-size:16px;font-weight:600;cursor:pointer;list-style:none}
.sun-training__month-nav{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:15px}
.sun-training__month-nav h3{font-size:17px;font-weight:600;text-transform:capitalize;line-height:1.3;margin:0;text-align:center}
.sun-training__month-nav button{height:40px;width:40px;flex:0 0 40px;border:1px solid var(--sun-line);border-radius:4px;background:#fff;font-size:20px}
.sun-training__month{width:100%;table-layout:fixed;border-collapse:collapse;margin:0}
.sun-training__month th{font-size:11px;color:var(--sun-muted);font-weight:500;padding:9px 0;text-align:center;border:0}
.sun-training__month td{height:45px;padding:2px;text-align:center;border:0;vertical-align:middle}
.sun-training__day{position:relative;width:100%;min-height:39px;display:flex;align-items:center;justify-content:center;border-radius:4px;font-size:13px;background:transparent;border:1px solid transparent}
.sun-training__day.has-events{background:var(--sun-accent);color:#30363a;font-weight:600}
.sun-training__day.has-events:hover{background:#f7cc35}.sun-training__day.has-events[aria-pressed=true]{background:var(--sun-accent);border-color:var(--sun-ink);box-shadow:inset 0 0 0 1px var(--sun-ink);color:#30363a}
.sun-training__day-marker{position:absolute;bottom:3px;left:50%;transform:translateX(-50%);min-width:4px;height:4px;background:var(--sun-ink);border-radius:50%}
.sun-training__day[aria-pressed=true] .sun-training__day-marker{background:var(--sun-ink);color:#fff}
.sun-training__day-marker:not(:empty){bottom:0;right:0;left:auto;transform:none;min-width:13px;height:13px;background:#242827;color:white;font-size:9px;line-height:13px}
.sun-training__day[aria-pressed=true] .sun-training__day-marker:not(:empty){background:var(--sun-ink);color:#fff}
.sun-training__legend{font-size:12px;color:var(--sun-muted);display:flex;align-items:center;gap:8px;margin:18px 0 0;padding-top:16px;border-top:1px solid #edf0f2}
.sun-training__legend span{width:11px;height:11px;border-radius:3px;background:var(--sun-accent);border:1px solid #d7ae28}
.sun-training__calendar-note{font-size:12px;line-height:1.5;color:var(--sun-muted);margin:10px 0 0}
.sun-training__clear-day{width:100%;min-height:40px;background:#f5f6f7;border:1px solid var(--sun-line);border-radius:4px;margin-top:14px}
.sun-training__list-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:2px 0 15px}
.sun-training__list-heading h3{font-size:20px;line-height:1.25;font-weight:600;margin:0}
.sun-training__list-heading>span{min-width:26px;text-align:center;border:1px solid var(--sun-line);border-radius:4px;padding:2px 7px;background:#fff;font-size:13px;color:var(--sun-muted)}
.sun-training__event{display:grid;grid-template-columns:66px minmax(0,1fr);gap:20px;padding:22px;border:1px solid var(--sun-line);border-radius:6px;background:#fff;margin:0 0 12px;transition:border-color .15s}
.sun-training__event:hover{border-color:#b2b8bd}.sun-training__date{height:88px;background:#f5f6f7;border:1px solid var(--sun-line);border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--sun-ink)}
.sun-training__date strong{font-size:29px;font-weight:500;line-height:1.1;letter-spacing:-.03em}.sun-training__date span{font-size:12px;text-transform:uppercase;margin-top:3px}.sun-training__date small{font-size:10px;color:var(--sun-muted);margin-top:3px}
.sun-training__event-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:11px;margin-bottom:9px}
/* Keep the programme action beside the copy instead of adding another card row. */
.sun-training__event-body{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) max-content;column-gap:18px;align-content:center}
.sun-training__event-body>.sun-training__event-heading,.sun-training__event-body>h4,.sun-training__event-body>.sun-training__event-details{grid-column:1}
.sun-training__event.has-logo{grid-template-columns:66px 144px minmax(0,1fr);gap:18px}
.sun-training__brandmark{display:flex;align-items:center;justify-content:center;width:144px;height:88px;background:#f7f8f9;border-radius:4px}
.sun-training__event-logo{display:block;width:120px;height:56px;max-width:100%;object-fit:contain;object-position:center;margin:0}
.sun-training__event-heading{margin-bottom:9px;min-width:0}.sun-training__event-heading .sun-training__event-meta{margin-bottom:0;min-width:0}

.sun-training__badge{border-radius:5px;background:#edf0f4;color:#48535e;padding:3px 7px;font-size:11px;font-weight:550}.sun-training__badge.is-online{background:#edf0f4;color:#48535e}
.sun-training__brand{font-weight:500;color:#565d62}.sun-training__example{color:var(--sun-muted);font-size:10px}
.sun-training__event h4{font-size:18px;font-weight:600;line-height:1.4;letter-spacing:-.015em;margin:0 0 9px;overflow-wrap:anywhere}
.sun-training__event-details{font-size:13px;color:var(--sun-muted);line-height:1.5;margin:0}
.sun-training__event-link{display:inline-flex;align-items:center;grid-column:2;grid-row:1/4;align-self:center;justify-self:end;white-space:nowrap;min-height:44px;color:#242827!important;font-size:13px;font-weight:500;text-decoration:none!important;border-bottom:1px solid #aeb5ba;padding:3px 0}
.sun-training__event-link:hover{border-color:#292d2c}.sun-training__event-link span{font-size:16px;margin-left:6px}
.sun-training__empty{padding:38px 26px;text-align:center;border:1px dashed #cdd3d7;border-radius:6px;background:#fff}
.sun-training__empty h4{font-size:18px;line-height:1.5;font-weight:500;margin:12px auto 20px;max-width:350px}
.sun-training__empty-icon{display:inline-flex;width:44px;height:44px;align-items:center;justify-content:center;background:#f0f2f3;border-radius:50%;font-size:25px}
.sun-training__empty-action{min-height:44px;background:var(--sun-ink);color:#fff!important;border:0;border-radius:4px;padding:11px 18px}
.sun-training__fallback{display:flex;gap:12px;flex-wrap:wrap;padding:15px 0;border-bottom:1px solid var(--sun-line)}
.sun-training__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:991px){.sun-training{padding:24px}.sun-training__layout{gap:20px;grid-template-columns:minmax(260px,.85fr) minmax(0,1.2fr)}.sun-training__event{padding:18px;gap:14px;grid-template-columns:56px minmax(0,1fr)}.sun-training__intro-tag{display:none}.sun-training__event h4{font-size:17px}}
@media(max-width:767px){.sun-training{padding:20px 14px;border-radius:6px;margin-bottom:35px}.sun-training__heading{margin-bottom:20px}.sun-training h2{font-size:28px}.sun-training__intro{font-size:14px}.sun-training__layout{display:flex;flex-direction:column;gap:18px}.sun-training__results{order:1;width:100%}.sun-training__calendar{order:0;width:100%;padding:16px}.sun-training__calendar summary{display:flex;justify-content:space-between;min-height:44px;align-items:center}.sun-training__calendar summary:after{content:'+';font-size:22px}.sun-training__calendar[open] summary:after{content:'−'}.sun-training__calendar[open] summary{margin-bottom:15px}.sun-training__tabs{width:100%}.sun-training__tabs button{flex:1;padding:9px}.sun-training__toolbar{gap:9px;margin-bottom:20px}.sun-training__formats{gap:3px}.sun-training__formats button{padding:8px 11px;min-height:44px}.sun-training__event{padding:16px 12px;gap:12px;grid-template-columns:50px minmax(0,1fr)}.sun-training__date{height:78px}.sun-training__date strong{font-size:25px}.sun-training__event h4{font-size:16px}.sun-training__event-link{padding:8px 0;min-height:40px}.sun-training__event-details{font-size:12px}.sun-training__list-heading h3{font-size:18px}.sun-training__day{min-height:44px}.sun-training__month-nav button{height:44px;width:44px;flex-basis:44px}}
@media(prefers-reduced-motion:reduce){.sun-training__event{transition:none}}

/* A dedicated brand column keeps different logo proportions out of the text flow. */
@media(max-width:1100px){
 .sun-training__event.has-logo{grid-template-columns:56px 144px minmax(0,1fr);gap:16px}
 .sun-training__event.has-logo .sun-training__event-body{grid-column:1/-1}
}
@media(max-width:767px){
 .sun-training__event.has-logo{grid-template-columns:50px 128px minmax(0,1fr);gap:16px 12px}
 .sun-training__brandmark{width:128px;height:78px}
 .sun-training__event-logo{width:110px;height:50px}
}

/* On narrow cards preserve full-width titles; keep the action aligned to the right. */
@media(max-width:767px){
 .sun-training__event-body{grid-template-columns:minmax(0,1fr);column-gap:0}
 .sun-training__event-link{grid-column:1;grid-row:4;min-height:44px;margin-top:8px}
}
