/* Orca Oracle Booking – events calendar. Same palette as the booking widget:
   deep ocean side panel with gong rings, tide-teal actions, brass highlights. */
.orca-events {
  --ob-deep: #10343b;
  --ob-accent: #1d6b6f;
  --ob-accent-ink: #ffffff;
  --ob-brass: #c99a4a;
  --ob-surface: #ffffff;
  --ob-mist: #eef4f3;
  --ob-ink: #13262b;
  --ob-muted: #56686b;
  --ob-line: #d6e2e0;
  --ob-radius: 14px;
  container-type: inline-size;
  color: var(--ob-ink);
  font-family: inherit;
  line-height: 1.5;
}
.orca-events *, .orca-events *::before, .orca-events *::after { box-sizing: border-box; }
.orca-events button { font: inherit; color: inherit; }

.orca-events .oe-shell {
  display: grid; grid-template-columns: 1fr;
  background: var(--ob-surface); border: 1px solid var(--ob-line); border-radius: var(--ob-radius); overflow: hidden;
}
@container (min-width: 820px) { .orca-events .oe-shell { grid-template-columns: minmax(250px, 0.8fr) 2fr; } }

/* ---------- side panel ---------- */
.orca-events .oe-side {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 26px 24px; background: var(--ob-deep); color: #e9f2f1;
  display: flex; flex-direction: column; gap: 14px;
}
@container (min-width: 820px) { .orca-events .oe-side { order: 0; } }
.orca-events .oe-rings {
  position: absolute; z-index: -1; right: -40%; bottom: -40%; width: 125%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 17px, color-mix(in srgb, var(--ob-brass) 30%, transparent) 17px 18px);
  -webkit-mask-image: radial-gradient(circle, #000 0 30%, transparent 70%); mask-image: radial-gradient(circle, #000 0 30%, transparent 70%);
  opacity: .8;
}
.orca-events .oe-title { margin: 0; color: #fff; font-size: clamp(1.35rem, 3.4cqi, 1.75rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.orca-events .oe-intro { margin: 0; color: #c3d6d4; max-width: 36ch; }
.orca-events .oe-side-head { margin: 8px 0 0; font-size: .85rem; font-weight: 600; color: var(--ob-brass); }
.orca-events .oe-side-note { margin: 0; color: #c3d6d4; }
.orca-events .oe-up { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.orca-events .oe-up-day { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.12); }
.orca-events .oe-up-day:first-child { border-top: 0; padding-top: 2px; }
.orca-events .oe-up-date { display: grid; justify-items: center; align-content: start; line-height: 1.05; padding-top: 2px; }
.orca-events .oe-up-dow { font-size: .72rem; color: #9fbab7; }
.orca-events .oe-up-num { font-size: 1.6rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.orca-events .oe-up-mon { font-size: .72rem; color: var(--ob-brass); }
.orca-events .oe-up-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.orca-events .oe-up-btn {
  appearance: none; width: 100%; text-align: left; cursor: pointer; display: grid; gap: 1px;
  background: none; border: 0; border-radius: 8px; padding: 6px 8px; margin-left: -8px; color: #fff;
}
.orca-events .oe-up-btn:hover { background: rgba(255,255,255,.08); }
.orca-events .oe-up-title { font-weight: 600; line-height: 1.3; }
.orca-events .oe-up-time { font-size: .85rem; color: #9fbab7; }
.orca-events .oe-cta {
  align-self: flex-start; margin-top: 6px; padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--ob-brass); color: #fff; text-decoration: none; font-weight: 600;
}
.orca-events .oe-cta:hover { background: var(--ob-brass); color: var(--ob-deep); }
.orca-events .oe-tz { margin: auto 0 0; padding-top: 6px; font-size: .8rem; color: #9fbab7; }

/* ---------- month ---------- */
.orca-events .oe-main { padding: 22px 18px 26px; min-width: 0; }
@container (min-width: 820px) { .orca-events .oe-main { padding: 26px 30px 30px; } }
.orca-events .oe-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.orca-events .oe-month { margin: 0; font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.orca-events .oe-nav { display: flex; gap: 6px; }
.orca-events .oe-arrow, .orca-events .oe-today {
  appearance: none; cursor: pointer; height: 38px; border: 1px solid var(--ob-line); background: var(--ob-surface); border-radius: 999px;
}
.orca-events .oe-arrow { width: 38px; font-size: 1.35rem; line-height: 1; color: var(--ob-accent); }
.orca-events .oe-today { padding: 0 14px; font-weight: 600; color: var(--ob-accent); font-size: .9rem; }
.orca-events .oe-today:disabled { opacity: .45; cursor: default; }
.orca-events .oe-arrow:hover, .orca-events .oe-today:not(:disabled):hover { border-color: var(--ob-accent); }

.orca-events .oe-grid { border: 1px solid var(--ob-line); border-radius: calc(var(--ob-radius) * .7); overflow: hidden; transition: opacity .2s; }
.orca-events .oe-grid.is-loading { opacity: .55; }
.orca-events .oe-dow, .orca-events .oe-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.orca-events .oe-dow { background: var(--ob-mist); border-bottom: 1px solid var(--ob-line); }
.orca-events .oe-dow span { padding: 8px 0; text-align: center; font-size: .78rem; font-weight: 600; color: var(--ob-muted); }
.orca-events .oe-week + .oe-week .oe-cell { border-top: 1px solid var(--ob-line); }
.orca-events .oe-cell {
  position: relative; min-height: 54px; padding: 6px; border-left: 1px solid var(--ob-line);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.orca-events .oe-cell:first-child { border-left: 0; }
@container (min-width: 620px) { .orca-events .oe-cell { min-height: 92px; align-items: stretch; } }
.orca-events .oe-cell.is-out { background: color-mix(in srgb, var(--ob-mist) 55%, var(--ob-surface)); }
.orca-events .oe-cell.is-out .oe-num { color: color-mix(in srgb, var(--ob-muted) 55%, transparent); }
.orca-events .oe-cell.is-past:not(.is-out) .oe-num { color: var(--ob-muted); }
.orca-events .oe-num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: .9rem; font-variant-numeric: tabular-nums; pointer-events: none;
}
.orca-events .oe-cell.is-today .oe-num { box-shadow: inset 0 0 0 2px var(--ob-brass); font-weight: 700; color: var(--ob-ink); }
.orca-events .oe-cell.has-ev .oe-num { font-weight: 700; color: var(--ob-ink); }
.orca-events .oe-cell.is-sel { background: color-mix(in srgb, var(--ob-accent) 8%, var(--ob-surface)); }
.orca-events .oe-cell.is-sel .oe-num { background: var(--ob-accent); color: var(--ob-accent-ink); box-shadow: none; }
.orca-events .oe-daybtn { position: absolute; inset: 0; z-index: 1; appearance: none; background: none; border: 0; cursor: pointer; }
.orca-events .oe-daybtn:hover { background: color-mix(in srgb, var(--ob-accent) 5%, transparent); }

.orca-events .oe-pills { display: none; }
.orca-events .oe-dots { display: flex; gap: 3px; }
.orca-events .oe-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ob-brass); }
@container (min-width: 620px) {
  .orca-events .oe-dots { display: none; }
  .orca-events .oe-pills { display: grid; gap: 3px; position: relative; z-index: 2; }
}
.orca-events .oe-pill {
  appearance: none; cursor: pointer; border: 0; text-align: left; width: 100%;
  padding: 3px 6px; border-radius: 5px; font-size: .74rem; line-height: 1.3;
  background: color-mix(in srgb, var(--ob-accent) 13%, var(--ob-surface)); color: var(--ob-ink);
  border-left: 3px solid var(--ob-accent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.orca-events .oe-pill:hover { background: var(--ob-accent); color: var(--ob-accent-ink); }
.orca-events .oe-pill-time { font-weight: 700; margin-right: 4px; }
.orca-events .oe-more { font-size: .72rem; color: var(--ob-muted); padding-left: 6px; }

/* ---------- agenda ---------- */
.orca-events .oe-agenda { margin-top: 22px; }
.orca-events .oe-agenda-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 10px; }
.orca-events .oe-agenda-title { margin: 0; font-size: 1.05rem; font-weight: 600; }
.orca-events .oe-link {
  appearance: none; background: none; border: 0; padding: 2px 0; cursor: pointer;
  color: var(--ob-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.orca-events .oe-empty { margin: 0; padding: 18px; border-radius: 10px; background: var(--ob-mist); color: var(--ob-muted); }
.orca-events .oe-items { display: grid; gap: 8px; }
.orca-events .oe-item { border: 1px solid var(--ob-line); border-radius: calc(var(--ob-radius) * .7); background: var(--ob-surface); }
.orca-events .oe-item.is-open { border-color: var(--ob-accent); box-shadow: inset 4px 0 0 var(--ob-brass); }
.orca-events .oe-item-head {
  appearance: none; width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 14px;
}
.orca-events .oe-chip {
  display: grid; justify-items: center; width: 46px; padding: 5px 0; border-radius: 9px; line-height: 1.05;
  background: var(--ob-deep); color: #fff;
}
.orca-events .oe-chip-dow { font-size: .68rem; color: var(--ob-brass); }
.orca-events .oe-chip-num { font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.orca-events .oe-item-text { display: grid; gap: 2px; min-width: 0; }
.orca-events .oe-item-title { font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.orca-events .oe-item-meta { color: var(--ob-muted); font-size: .9rem; }
.orca-events .oe-caret { width: 10px; height: 10px; border: solid var(--ob-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); margin: -4px 6px 0; transition: transform .2s; }
.orca-events .oe-item.is-open .oe-caret { transform: rotate(-135deg); margin-top: 4px; }
.orca-events .oe-item-body { padding: 0 16px 16px 74px; }
@container (max-width: 520px) { .orca-events .oe-item-body { padding-left: 16px; } }
.orca-events .oe-when, .orca-events .oe-where { margin: 0 0 8px; }
.orca-events .oe-when { font-weight: 600; }
.orca-events .oe-where a, .orca-events .oe-desc a { color: var(--ob-accent); }
.orca-events .oe-desc { color: var(--ob-ink); max-width: 64ch; }
.orca-events .oe-desc p { margin: 0 0 10px; }
.orca-events .oe-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.orca-events .oe-btn {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--ob-accent); color: var(--ob-accent-ink); border: 1px solid var(--ob-accent);
  text-decoration: none; font-weight: 600; font-size: .9rem;
}
.orca-events .oe-btn:hover { background: color-mix(in srgb, var(--ob-accent) 85%, #000); }
.orca-events .oe-btn-quiet { background: var(--ob-surface); color: var(--ob-accent); }
.orca-events .oe-btn-quiet:hover { background: color-mix(in srgb, var(--ob-accent) 8%, var(--ob-surface)); }

.orca-events :is(button, a):focus:not(:focus-visible) { outline: none; }
.orca-events :is(button, a):focus-visible { outline: 3px solid var(--ob-brass); outline-offset: 2px; }
.orca-events .oe-daybtn:focus-visible { outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .orca-events .oe-grid, .orca-events .oe-caret { transition: none; } }
