/* CSO Events — shared styles for /events (Upcoming + Calendar) and event detail pages.
   Served from /Content/ExternalSite/cso/cso-events.css. Moves into the CSO theme in Phase 5.
   Brand: navy #000099, gold #FFCC00 (accents / large text on dark only). */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

.cso-ev, .cso-ev * { box-sizing: border-box; }
.cso-ev {
  --navy: #000099; --navy-deep: #06093f; --navy-ink: #0d1250;
  --gold: #ffcc00; --gold-ink: #7a5c00;
  --paper: #fbf8f1; --card: #ffffff; --line: #e7e1d3;
  --ink: #1b1e33; --muted: #5a5f75;
  --radius: 16px; --shadow: 0 1px 2px rgba(13,18,80,.06), 0 8px 24px rgba(13,18,80,.08);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink); line-height: 1.55; font-size: 16px;
  margin-bottom: 48px;
}
.cso-ev h1, .cso-ev h2, .cso-ev h3 { font-family: 'Fraunces', Georgia, serif; color: var(--navy-ink); margin: 0; line-height: 1.15; font-weight: 700; }
.cso-ev a { color: var(--navy); }
.cso-ev a:focus-visible, .cso-ev button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.cso-ev .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* Full-bleed bands inside Rock's container layout */
.cso-bleed { width: 100vw; position: relative; left: 50%; margin-left: -50vw; }

/* Hero */
.cso-hero {
  background: radial-gradient(1200px 400px at 85% -10%, rgba(255,204,0,.22), transparent 60%),
              linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff; padding: 56px 16px 0; margin-top: -20px;
}
.cso-hero__inner { max-width: 1140px; margin: 0 auto; }
#cso-aud-chips { display: contents; }
.cso-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--gold); margin: 0 0 10px; }
.cso-hero h1 { color: #fff; font-size: clamp(36px, 6vw, 60px); }
.cso-hero__lede { font-size: 18px; color: rgba(255,255,255,.85); max-width: 640px; margin: 12px 0 28px; }
.cso-tabs { display: flex; gap: 4px; align-items: flex-end; flex-wrap: wrap; }
.cso-tab {
  appearance: none; border: 0; cursor: pointer; font: 600 15px/1 'Inter', sans-serif;
  padding: 14px 22px; border-radius: 12px 12px 0 0; color: rgba(255,255,255,.85); background: rgba(255,255,255,.08);
  text-decoration: none !important;
}
.cso-tab:hover { background: rgba(255,255,255,.16); color: #fff; }
.cso-tab[aria-selected="true"] { background: var(--paper); color: var(--navy-ink); }
.cso-tab i { margin-right: 6px; }
.cso-tabs__spacer { flex: 1; }
.cso-subscribe { color: #fff !important; font-size: 14px; font-weight: 600; padding: 10px 0 14px; text-decoration: none !important; opacity: .9; }
.cso-subscribe:hover { opacity: 1; text-decoration: underline !important; }

.cso-body { background: var(--paper); padding: 28px 16px 8px; }
.cso-body__inner { max-width: 1140px; margin: 0 auto; }
.cso-panel[hidden] { display: none !important; }

/* Filters */
.cso-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 24px; align-items: center; }
.cso-filters__label { font-size: 13px; color: var(--muted); margin-right: 4px; font-weight: 600; }
.cso-chip {
  appearance: none; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  font: 500 14px/1 'Inter', sans-serif; padding: 9px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
}
.cso-chip:hover { border-color: var(--navy); }
.cso-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.cso-chip__dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cso-filters__sep { width: 1px; height: 24px; background: var(--line); margin: 0 6px; }

/* Featured */
.cso-featured {
  display: grid; grid-template-columns: 1.15fr 1fr; background: var(--card); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 36px; border: 1px solid var(--line);
}
.cso-featured__media { position: relative; background: var(--navy-deep); aspect-ratio: 16 / 9; align-self: center; }
.cso-featured__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cso-featured__body { padding: 32px 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.cso-featured__body h2 { font-size: clamp(26px, 3.2vw, 36px); }
.cso-flag { align-self: flex-start; background: var(--gold); color: var(--navy-deep); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; }

/* Section heads */
.cso-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0 16px; }
.cso-section-head h2 { font-size: 26px; }
.cso-section-head p { margin: 0; color: var(--muted); font-size: 14px; }

/* Cards */
.cso-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-bottom: 44px; }
.cso-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.cso-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(13,18,80,.08), 0 16px 32px rgba(13,18,80,.12); }
.cso-card[hidden] { display: none; }
.cso-card__media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy-deep), var(--navy)); display: block; }
.cso-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cso-card__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9); font-family: 'Fraunces', serif; font-size: 22px; padding: 16px; text-align: center; }
.cso-badge {
  position: absolute; left: 14px; top: 14px; background: #fff; border-radius: 12px; text-align: center; min-width: 58px;
  padding: 6px 8px 7px; box-shadow: 0 4px 14px rgba(0,0,0,.18); color: var(--navy-ink); line-height: 1;
}
.cso-badge__mon { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #b8860b; }
.cso-badge__day { display: block; font-family: 'Fraunces', serif; font-size: 26px; font-weight: 700; margin-top: 3px; }
.cso-badge--weekly .cso-badge__day { font-size: 15px; font-family: 'Inter', sans-serif; margin-top: 5px; }
.cso-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cso-card__title { font-size: 21px; }
.cso-card__title a { color: inherit; text-decoration: none; }
.cso-card__title a:hover { text-decoration: underline; }
.cso-card__summary { color: var(--muted); margin: 0; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cso-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink); }
.cso-meta li { display: flex; gap: 8px; align-items: flex-start; }
.cso-meta i { color: var(--navy); width: 16px; text-align: center; margin-top: 3px; }
.cso-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cso-tag { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: #eef0fb; color: var(--navy-ink); }
.cso-status { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.cso-status--open { color: #166534; } .cso-status--soon { color: #9a3412; } .cso-status--closed { color: var(--muted); }
.cso-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.cso-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }

/* Buttons */
.cso-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 'Inter', sans-serif;
  padding: 12px 18px; border-radius: 10px; text-decoration: none !important; border: 2px solid transparent; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.cso-btn--primary { background: var(--navy); color: #fff !important; }
.cso-btn--primary:hover { background: var(--navy-ink); transform: translateY(-1px); }
.cso-btn--gold { background: var(--gold); color: var(--navy-deep) !important; }
.cso-btn--gold:hover { background: #ffd633; transform: translateY(-1px); }
.cso-btn--ghost { background: transparent; color: var(--navy) !important; border-color: #cfd3ef; }
.cso-btn--ghost:hover { border-color: var(--navy); }
.cso-btn--block { width: 100%; }

/* Weekly gatherings */
.cso-weekly { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 40px; }
.cso-weekly__row { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.cso-weekly__row:first-child { border-top: 0; }
.cso-weekly__row[hidden] { display: none; }
.cso-weekly__when { font-weight: 700; color: var(--navy-ink); }
.cso-weekly__when small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.cso-weekly__name { font-weight: 600; font-size: 16px; }
.cso-weekly__name a { color: inherit; }
.cso-weekly__desc { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.cso-weekly__where { font-size: 13px; color: var(--muted); text-align: right; }
.cso-empty { text-align: center; color: var(--muted); padding: 32px 16px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Calendar (FullCalendar) */
.cso-cal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 40px; }
.cso-cal .fc { --fc-border-color: var(--line); --fc-today-bg-color: #fff6cc; --fc-button-bg-color: var(--navy); --fc-button-border-color: var(--navy);
  --fc-button-hover-bg-color: var(--navy-ink); --fc-button-hover-border-color: var(--navy-ink); --fc-button-active-bg-color: var(--navy-deep);
  --fc-button-active-border-color: var(--navy-deep); --fc-event-border-color: transparent; font-size: 14px; }
.cso-cal .fc .fc-toolbar-title { font-family: 'Fraunces', serif; color: var(--navy-ink); font-size: 24px; }
.cso-cal .fc .fc-button { text-transform: capitalize; border-radius: 8px; font-weight: 600; }
.cso-cal .fc .fc-daygrid-event { border-radius: 6px; padding: 1px 4px; cursor: pointer; }
.cso-cal .fc a, .cso-cal .fc a:hover { text-decoration: none !important; }
.cso-cal .fc .fc-daygrid-event-dot { border-width: 5px; }
.cso-cal .fc .cso-ev-special .fc-event-title { font-weight: 700; }
.cso-cal .fc .cso-ev-weekly .fc-event-title, .cso-cal .fc .cso-ev-weekly .fc-event-time { color: var(--ink); font-weight: 500; }
.cso-cal .fc .fc-list-event { cursor: pointer; }
.cso-cal .fc .fc-col-header-cell-cushion, .cso-cal .fc .fc-daygrid-day-number { color: var(--ink); text-decoration: none; }
.cso-cal__note { font-size: 13px; color: var(--muted); margin: 10px 2px 0; }
.cso-cal__warn { font-size: 13px; color: #9a3412; margin: 10px 2px 0; }

/* Quick view dialog */
.cso-dialog { border: 0; border-radius: 18px; padding: 0; max-width: 460px; width: calc(100% - 32px); box-shadow: 0 24px 64px rgba(6,9,63,.35); }
.cso-dialog::backdrop { background: rgba(6,9,63,.45); }
.cso-dialog__head { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; padding: 22px 24px 18px; position: relative; }
.cso-dialog__head h3 { color: #fff; font-size: 24px; padding-right: 28px; }
.cso-dialog__close { position: absolute; right: 14px; top: 12px; background: transparent; border: 0; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; }
.cso-dialog__body { padding: 18px 24px 22px; display: grid; gap: 12px; }

/* Detail page */
.cso-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.cso-detail__hero { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 26px; background: var(--navy-deep); }
.cso-detail__hero img { width: 100%; display: block; }
.cso-detail__content { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.cso-detail__content img { max-width: 100%; height: auto; }
.cso-aside { position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 18px; }
.cso-aside h2 { font-size: 20px; }
.cso-aside__group h3 { font-family: 'Inter', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 6px; font-weight: 700; }
.cso-aside__group p, .cso-aside__group ul { margin: 0; font-size: 15px; }
.cso-aside__dates { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.cso-aside__divider { height: 1px; background: var(--line); }
.cso-aside__small { display: flex; gap: 8px; flex-wrap: wrap; }
.cso-more { margin-top: 44px; }
.cso-notice { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }

@media (max-width: 991px) {
  .cso-featured { grid-template-columns: 1fr; }
  .cso-detail { grid-template-columns: 1fr; }
  .cso-aside { position: static; }
}
@media (max-width: 640px) {
  .cso-hero { padding-top: 40px; }
  .cso-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .cso-filters::-webkit-scrollbar { display: none; }
  .cso-chip, .cso-filters__label { flex: 0 0 auto; }
  #cso-aud-chips { display: contents; }
  .cso-tab { padding: 12px 16px; font-size: 14px; }
  .cso-subscribe { width: 100%; }
  .cso-featured__body { padding: 22px; }
  .cso-weekly__row { grid-template-columns: 1fr; gap: 6px; }
  .cso-weekly__where { text-align: left; }
  .cso-cal { padding: 10px; }
  .cso-cal .fc .fc-toolbar { flex-direction: column; gap: 8px; }
  .cso-detail__content { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .cso-card, .cso-btn { transition: none; }
  .cso-card:hover, .cso-btn:hover { transform: none; }
}

/* ---------- Watch page (Phase 4) ---------- */
.cso-watch { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; margin-top: 6px; }
.cso-watch__main h1 { color: #fff; margin-bottom: 10px; }
.cso-player { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.cso-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cso-player--empty { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); }
.cso-watch__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: rgba(255,255,255,.8); margin: 0 0 16px; font-size: 15px; }
.cso-tag--dark { background: rgba(255,204,0,.18); color: var(--gold); }
.cso-watch__note { color: rgba(255,255,255,.8); font-size: 14px; margin: 14px 0 0; }
.cso-watch__note a, .cso-watch__also a, .cso-watch__addr a { color: var(--gold) !important; }
.cso-live-pill { display: inline-flex; align-items: center; gap: 8px; background: #dc2626; color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; padding: 6px 12px; border-radius: 999px; margin: 0 0 12px; }
.cso-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: cso-pulse 1.4s ease-in-out infinite; }
@keyframes cso-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.cso-watch__side { display: grid; gap: 14px; }
.cso-watch__box { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 18px 20px; color: #fff; }
.cso-watch__box h2 { color: #fff; font-family: 'Inter', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 8px; font-weight: 700; opacity: .85; }
.cso-watch__next { font-family: 'Fraunces', serif; font-size: 22px; margin: 0; }
.cso-countdown { color: var(--gold); font-weight: 600; margin: 6px 0 0; font-size: 15px; }
.cso-watch__times { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cso-watch__times li span { display: block; font-size: 13px; opacity: .75; }
.cso-watch__addr { margin: 10px 0 0; font-size: 14px; opacity: .9; }
.cso-watch__steps { display: grid; gap: 10px; }
.cso-btn--ghost-light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.35); }
.cso-btn--ghost-light:hover { border-color: #fff; }
.cso-watch__also { color: rgba(255,255,255,.75); font-size: 13px; margin: 2px 4px 0; }
.cso-video__thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; background: #000; overflow: hidden; }
.cso-video__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.cso-video__thumb:hover img { transform: scale(1.04); }
.cso-video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(0,0,153,.85); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.cso-video.is-playing { outline: 3px solid var(--gold); outline-offset: 2px; }
.cso-series { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.cso-series__item { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-weight: 600; color: var(--navy-ink) !important; text-decoration: none !important; box-shadow: var(--shadow); }
.cso-series__item:hover { border-color: var(--navy); }
.cso-series__item--all { background: var(--navy); color: #fff !important; border-color: var(--navy); }
@media (max-width: 991px) { .cso-watch { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cso-live-dot { animation: none; } .cso-video__thumb img { transition: none; } }

/* Watch: "Where we are in the Book" + series "in progress" note (2026-10-10) */
.cso-books { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px 32px; margin-bottom: 36px; }
.cso-book { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.cso-book__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cso-book__name { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-size: 22px; color: var(--navy-ink); }
.cso-book__ch { font-size: 14px; color: var(--muted); }
.cso-book__bar { height: 6px; background: #eef0fb; border-radius: 999px; position: relative; overflow: hidden; }
.cso-book__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy); border-radius: 999px; }
.cso-series__note { font-size: 12px; font-weight: 600; color: var(--gold-ink); background: #fff6cc; border-radius: 999px; padding: 2px 8px; }
