/* Public training calendar (/agenda/) */
.agenda { padding: 36px 0 72px; background: #f7f9fd; }
.agenda svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ag-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ag-nav { display: flex; align-items: center; gap: 10px; }
.ag-month { margin: 0 4px; min-width: 210px; text-align: center; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; color: var(--fg); }
.ag-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--border); color: var(--fg);
  box-shadow: 0 1px 2px rgba(15,23,42,.05); transition: all .15s; }
.ag-arrow:hover { border-color: #bfdbfe; color: var(--primary); background: #eef4ff; transform: translateY(-1px); }
.ag-arrow.is-off { opacity: .35; pointer-events: none; }
.ag-today { margin-left: 6px; font-size: 14px; font-weight: 500; color: var(--primary); }
.ag-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #525252; }
.ag-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ag-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--mc); }
.agenda .m-hybrid { --mc: #7c3aed; --mbg: #f5f3ff; }
.agenda .m-online { --mc: #0284c7; --mbg: #f0f9ff; }
.agenda .m-onsite { --mc: #059669; --mbg: #ecfdf5; }
.ag-months { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: thin; }
.ag-mchip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 99px; background: #fff; border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 500; color: var(--fg); text-transform: capitalize; }
.ag-mchip b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #eef4ff; color: var(--primary); font-size: 11.5px; }
.ag-mchip:hover { border-color: #bfdbfe; }
.ag-mchip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ag-mchip.is-on b { background: rgba(255,255,255,.2); color: #fff; }

.ag-cal { background: var(--border); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; display: grid; gap: 1px; box-shadow: 0 30px 60px -40px rgba(0,82,196,.45); }
.ag-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
.ag-dow { background: #fff; padding: 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #525252; }
.ag-dow.is-we { color: #a3a3a3; }
.ag-day { background: #fff; min-height: 124px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ag-day.is-we { background: #fcfcfd; }
.ag-day.is-out { background: #f8fafc; }
.ag-day.is-out .ag-dnum { color: #cbd5e1; }
.ag-dnum { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; font-size: 14px; font-weight: 600; color: #404040; }
.ag-day.is-today .ag-dnum { background: var(--primary); color: #fff; }
.ag-ev { display: flex; flex-direction: column; gap: 3px; padding: 8px 9px 8px 11px; border-radius: 10px; background: var(--mbg); border: 1px solid color-mix(in srgb, var(--mc) 20%, #fff);
  border-left: 4px solid var(--mc); color: var(--fg); transition: transform .15s, box-shadow .15s; min-width: 0; }
.ag-ev:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(15,23,42,.45); }
.ag-ev.is-past { opacity: .5; }
.ag-ev.is-full { filter: grayscale(.6); }
.ag-ev-title { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-ev-meta { font-size: 12px; font-weight: 600; color: var(--mc); }
.ag-ev-seats { font-size: 12px; color: #15803d; font-weight: 500; }
.ag-ev-seats.is-low { color: #c2410c; }
.ag-ev-price { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

.ag-list-title { margin: 44px 0 16px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.ag-list-title span { color: var(--muted-fg); font-weight: 500; }
.ag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ag-item { display: grid; grid-template-columns: 74px 1fr auto; gap: 18px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--border);
  border-left: 4px solid var(--mc); border-radius: 14px; }
.ag-item.is-past { opacity: .55; }
.ag-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 14px; background: var(--mbg); color: var(--mc); }
.ag-date .d { font-size: 26px; font-weight: 700; line-height: 1; }
.ag-date .w { font-size: 12px; font-weight: 600; text-transform: uppercase; margin-top: 3px; }
.ag-title { font-size: 16px; font-weight: 600; color: var(--fg); line-height: 1.35; }
.ag-title:hover { color: var(--primary); }
.ag-meta { margin: 4px 0 0; font-size: 13.5px; color: var(--muted-fg); }
.ag-mode { color: var(--mc); font-weight: 600; }
.ag-side { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.ag-price { margin: 0; font-size: 17px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ag-seats { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #15803d; white-space: nowrap; }
.ag-seats.is-low { color: #c2410c; }
.ag-meter { width: 64px; height: 6px; border-radius: 99px; background: #e6edfb; overflow: hidden; }
.ag-meter i { display: block; height: 100%; background: linear-gradient(90deg, #1366e8, #22d3ee); border-radius: inherit; }
.ag-seats.is-low .ag-meter i { background: #f97316; }
.ag-book { min-width: 110px; }
.ag-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 26px; background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px; }
.ag-empty p { margin: 0 12px 0 0; color: #525252; }
.ag-help { margin: 22px 0 0; color: var(--muted-fg); font-size: 14px; }
.ag-help a { color: var(--primary); font-weight: 500; }

@media (max-width: 1024px) {
  .ag-day { min-height: 96px; padding: 5px; }
  .ag-ev { padding: 6px 7px 6px 8px; }
  .ag-ev-price, .ag-ev-seats { display: none; }
}
@media (max-width: 720px) {
  .ag-cal { display: none; } /* phones: the list below is easier to read */
  .ag-list-title { margin-top: 18px; }
  .ag-item { grid-template-columns: 58px 1fr; gap: 12px; padding: 14px; }
  .ag-date { width: 54px; height: 54px; }
  .ag-side { grid-column: 1 / -1; justify-content: space-between; }
  .ag-book { flex: 1 1 100%; }
  .ag-month { min-width: 0; }
}
