/* Global calendar (/calendar, features/global-calendar.js): calendars ticked on the left, a Google-style month on the right */
.gc-page { max-width: none; }
.gc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.gc-head h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.gc-nav { display: flex; align-items: center; gap: 6px; }
.gc-month { font-size: 20px; font-weight: 500; margin-left: 8px; min-width: 9.5em; }
.gc-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }

.gc-side { position: sticky; top: calc(var(--header-h) + 12px); display: flex; flex-direction: column; gap: 2px; }
.gc-group { font-size: 12.5px; font-weight: 600; color: var(--text); margin: 14px 0 4px; }
.gc-group:first-child { margin-top: 0; }
.gc-cal { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 6px; font-size: 13px; color: var(--text); cursor: pointer; min-width: 0; }
.gc-cal:hover { background: var(--subtle); }
.gc-cal input { width: 16px; height: 16px; margin: 0; flex: none; cursor: pointer; }
.gc-cal span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-none { font-size: 12.5px; color: var(--text-3); padding: 4px 6px; }

.gc-grid { background: var(--card); border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; }
.gc-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--border-strong); }
.gc-dow span { padding: 8px 0; text-align: center; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.gc-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; min-height: 118px; padding-bottom: 6px; border-bottom: 1px solid var(--border-strong); }
.gc-week:last-child { border-bottom: 0; }
.gc-cell { border-right: 1px solid var(--border-strong); text-align: center; padding-top: 5px; z-index: 0; }
.gc-cell:nth-child(7) { border-right: 0; }
.gc-cell.other { background: light-dark(#fafafb, #1f1f21); }
.gc-cell.other .gc-num { color: var(--text-3); }
.gc-num { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 12px; font-size: 12px; font-weight: 500; color: var(--text); }
.gc-cell.today .gc-num { background: var(--blue); color: #fff; }

.gc-ev { z-index: 1; display: block; min-width: 0; height: 20px; margin: 0 4px; padding: 0 6px; border: 0; border-radius: 4px; color: #fff; font: inherit; font-size: 12px; font-weight: 500; line-height: 20px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.gc-ev:hover { filter: brightness(0.93); }
.gc-ev.bar.cont-before { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.gc-ev.bar.cont-after { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.gc-ev.full { width: 100%; margin: 0; }
.gc-more { z-index: 1; margin: 0 4px; height: 20px; padding: 0 6px; border: 0; border-radius: 4px; background: none; font: inherit; font-size: 12px; font-weight: 500; color: var(--text-2); text-align: left; cursor: pointer; }
.gc-more:hover { background: var(--subtle); color: var(--text); }

.gc-pop { display: flex; flex-direction: column; gap: 6px; padding: 6px; min-width: 220px; max-width: 320px; }
.gc-pop-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.gc-dot { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.gc-pop-sub { font-size: 12.5px; color: var(--text-2); padding-left: 22px; }
.gc-pop > .gc-pop-sub:first-child { padding-left: 0; }
.gc-pop .gc-ev.full + .gc-ev.full { margin-top: 0; }
.gc-pop-open { align-self: flex-start; margin: 4px 0 0 16px; }

@media (max-width: 900px) {
  .gc-body { grid-template-columns: 1fr; }
  .gc-side { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .gc-group { grid-column: 1 / -1; }
}
