.events-section {
    max-width: 86%;
    margin: 0 auto;
  }

  .events-section h2 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
  }

  .events-section .subtitle {
    color: rgb(75, 75, 75);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
  }

  /* ---- Calendar header / nav ---- */
  #calRoot {
    overflow-x: scroll;
    width: 100%;
  }

  .cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    width: 80%;
  }

  .cal-header .month-label {
    font-size: 1.15rem;
    font-weight: 600;
  }

  .cal-nav-btn {
    background: transparent;
    border: 1px solid lightgray;
    color: darkred;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .cal-nav-btn:hover {
    background: lightgray;
  }

  .cal-nav-btn:focus-visible,
  .cal-day:focus-visible,
  .view-toggle button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .cal-nav {
    display: flex;
    gap: 0.5rem;
  }

  /* ---- View toggle ---- */
  .view-toggle {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
  }

  .view-toggle button {
    background: transparent;
    border: 1px solid lightgray;
    color: rgb(75,75,75);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
  }

  .view-toggle button.active {
    background: darkred;
    border-color: darkred;
    color: #fff;
  }

  /* ---- Grid calendar ---- */
  .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
  }

  .cal-weekday {
    text-align: center;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgb(75,75,75);
    padding-bottom: 0.4rem;
  }

  .cal-day {
    position: relative;
    background: #fff;
    border: 1px solid lightgray;
    border-radius: 8px;
    min-height: 92px;
    padding: 0.35rem;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: var(--text);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
  }

  .cal-day:hover {
    border-color: darkred;
  }

  .cal-day.empty {
    background: transparent;
    border-color: transparent;
    cursor: default;
  }

  .cal-day.today {
    border-color: darkred;
    box-shadow: inset 0 0 0 1px darkred;
  }

  .cal-day.selected {
    background: color-mix(in srgb, gold 15%, white);
    border-color: gold;
  }

  .cal-day-num {
    font-size: 0.8rem;
    font-weight: 600;
  }

  .cal-day-events {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 0.25rem;
  }

  .cal-event-label {
    font-size: 0.66rem;
    line-height: 1.25;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 3px;
    border-radius: 40px;
  }

  .cal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .cal-dot .tick {
    color: #fff;
    font-size: 9px;
    line-height: 1;
    font-weight: 700;
  }

  .cal-day-more {
    font-size: 0.65rem;
    color: rgb(75, 75, 75);
    margin-top: 0.1rem;
  }

  /* ---- Day detail / list ---- */
  .events-list {
    margin-top: 1.5rem;
  }

  .events-list-grid {
    display: flex;
    gap: 1.1rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .events-list-heading {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgb(75, 75, 75);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
  }

  .event-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid lightgray;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    width: 30%;
    min-width: 250px;
  }

  .event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.1);
  }

  .event-card-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 8;
    background: lightgray;
    overflow: hidden;
  }

  .event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .event-card-img-wrap.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, lightgray, gold);
  }

  .event-card-body {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 1rem 1rem;
    border-left: 4px solid var(--accent);
  }

  .event-card-time {
    font-size: 0.8rem;
    color: rgb(75,75,75);
    margin-bottom: 0.2rem;
  }

  .event-card-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0 0 0.3rem;
  }

  .event-card-meta {
    font-size: 0.8rem;
    color: rgb(75,75,75);
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
  }

  .cat-pill .cal-dot {
    width: 8px;
    height: 8px;
  }

  .empty-state {
    color: rgb(75,75,75);
    font-size: 0.9rem;
    padding: 1rem 0;
  }

  .legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 1rem 0;
    padding: 0.9rem 0;
    border-top: 1px solid lightgray;
    border-bottom: 1px solid lightgray;
    font-size: 0.78rem;
    color: rgb(75,75,75);
    justify-content: space-around;
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: none;
    padding: 0.2rem 0.3rem;
    margin: -0.2rem -0.3rem;
    border-radius: 6px;
    font: inherit;
    font-size: 0.78rem;
    color: rgb(75,75,75);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
  }

  .legend-item:hover {
    background: var(--bg);
    color: var(--text);
  }

  .legend-item.active {
    color: var(--text);
    font-weight: 600;
  }

  .legend-item .cal-dot {
    transition: transform 0.12s ease;
  }

  .legend-item.active .cal-dot {
    transform: scale(1.05);
  }

  .loading, .error-state {
    text-align: center;
    padding: 2rem 1rem;
    color: rgb(75,75,75);
    font-size: 0.9rem;
  }

  .error-state {
    color: darkred;
  }

  @media (max-width: 600px) {
    .cal-day { min-height: 54px; padding: 0.25rem; }
    .cal-weekday { font-size: 0.62rem; }
    .cal-day-num { font-size: 0.72rem; }
  }