.sce-calendar, .sce-detail { --sce-accent: #943e32; --sce-surface: #f7f4ef; --sce-ink: #332c28; --sce-muted: #6b625b; --sce-line: #e0d8ce; color: var(--sce-ink); font-family: inherit; font-size: 15px; line-height: 1.7; text-align: left; }
.sce-calendar *, .sce-detail * { box-sizing: border-box; }
.sce-calendar { max-width: 1200px; margin: 40px auto; padding: clamp(18px, 3.3vw, 42px); background: var(--sce-surface); border: 1px solid var(--sce-line); border-radius: 12px; }
.sce-calendar button, .sce-calendar input, .sce-calendar select { font: inherit; letter-spacing: inherit; line-height: 1.5; box-shadow: none; }
.sce-calendar button { cursor: pointer; min-height: 42px; padding: 8px 14px; margin: 0; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--sce-ink); appearance: none; text-transform: none; }
.sce-calendar button::before, .sce-calendar button::after, .sce-calendar a::before, .sce-calendar a::after { display: none; }
.sce-calendar button:disabled { cursor: default; opacity: .4; }
.sce-calendar [hidden] { display: none !important; }
.sce-calendar :focus-visible, .sce-detail :focus-visible { outline: 3px solid #356fbe; outline-offset: 3px; }
.sce-calendar a, .sce-detail a { text-decoration: none; color: var(--sce-accent); }
.sce-calendar a:hover, .sce-detail .sce-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.sce-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-bottom: 27px; border-bottom: 1px solid var(--sce-line); margin-bottom: 25px; }
.sce-calendar .sce-eyebrow { color: var(--sce-muted); margin: 0 0 7px; font-size: 12px; letter-spacing: .08em; font-weight: 500; }
.sce-calendar .sce-header h2 { font-family: inherit; background: none; color: var(--sce-ink); font-size: clamp(24px, 3.2vw, 32px); line-height: 1.4; font-weight: 650; letter-spacing: .06em; margin: 0; padding: 0; border: 0; box-shadow: none; }
.sce-calendar h2::before, .sce-calendar h2::after, .sce-calendar h3::before, .sce-calendar h3::after, .sce-calendar h4::before, .sce-calendar h4::after { display: none; }
.sce-header-note { color: var(--sce-muted); font-size: 12px; padding-bottom: 4px; }
.sce-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
.sce-month-nav { display: flex; align-items: center; gap: 7px; min-width: 0; }
.sce-calendar[data-view="upcoming"] .sce-month-nav { flex-direction: column; align-items: start; gap: 4px; }
.sce-calendar[data-view="upcoming"] .sce-month-title { margin: 0; min-width: 0; text-align: left; }
.sce-calendar .sce-range-note { margin: 0; font-size: 12px; color: var(--sce-muted); }
.sce-calendar .sce-month-title { background: none; border: 0; padding: 0; margin: 0 8px; min-width: 136px; color: var(--sce-ink); font-size: 21px; font-weight: 600; text-align: center; line-height: 1.5; }
.sce-calendar .sce-nav-button { font-family: sans-serif; font-size: 27px; padding: 0 10px 3px; border-color: var(--sce-line); background: #fff; min-width: 37px; }
.sce-calendar .sce-today-button { font-size: 12px; margin-left: 7px; }
.sce-calendar .sce-nav-button:hover { background: var(--sce-surface); }
.sce-view-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--sce-line); background: #fff; border-radius: 9px; flex-shrink: 0; }
.sce-calendar .sce-view-button { min-height: 36px; padding: 7px 12px; font-size: 13px; white-space: nowrap; }
.sce-calendar .sce-view-button[aria-pressed=true] { background: var(--sce-accent); color: var(--sce-on-accent, #fff); font-weight: 600; }
.sce-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.sce-categories { display: flex; gap: 7px; flex-wrap: wrap; flex: 1 1 280px; min-width: 0; }
.sce-calendar .sce-chip { border: 1px solid var(--sce-line); border-radius: 999px; min-height: 35px; padding: 6px 17px; font-size: 13px; background: #fff; }
.sce-calendar .sce-chip[aria-pressed=true] { background: #f3e7e1; background: color-mix(in srgb, var(--sce-accent) 10%, #fff); border-color: var(--sce-accent); color: var(--sce-accent); font-weight: 600; }
.sce-venue-filter > span { white-space: nowrap; }
.sce-venue-filter { display: flex; align-items: center; gap: 8px; flex: 0 1 200px; min-width: 0; color: var(--sce-muted); font-size: 12px; }
.sce-calendar .sce-venue-filter select { min-width: 0; width: 100%; height: 40px; padding: 7px 28px 7px 10px; border: 1px solid var(--sce-line); border-radius: 6px; background-color: #fff; color: var(--sce-ink); font-size: 13px; }
.sce-search { display: block; flex: 1 1 180px; max-width: 225px; min-width: 0; }
.sce-calendar .sce-search input { width: 100%; height: 40px; padding: 7px 12px; border: 1px solid var(--sce-line); border-radius: 7px; background: #fff; color: var(--sce-ink); font-size: 13px; }
.sce-calendar .sce-search input::placeholder { color: var(--sce-muted); }
.sce-summary { display: flex; justify-content: space-between; align-items: center; min-height: 57px; gap: 14px; }
.sce-calendar .sce-count { font-size: 12px; color: var(--sce-muted); margin: 13px 0; }
.sce-calendar .sce-reset { font-size: 12px; padding: 0; color: var(--sce-accent); text-decoration: underline; }
.sce-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.sce-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: stretch; gap: 20px 17px; min-width: 0; background: #fff; padding: 22px; border: 1px solid var(--sce-line); border-radius: 8px; overflow: hidden; box-shadow: none; }
.sce-card:not(:has(.sce-card-photo)) { grid-template-rows: 1fr; }
.sce-card-date { order: 0; display: flex; flex-direction: column; align-items: center; border-right: 1px solid var(--sce-line); padding-right: 13px; text-align: center; align-self: start; margin-top: 2px; min-width: 0; }
.sce-date-month { font-size: 12px; color: var(--sce-muted); }
.sce-date-day { font-family: inherit; font-size: 35px; line-height: 1.3; font-weight: 550; color: var(--sce-accent); }
.sce-date-week { font-size: 11px; color: var(--sce-muted); white-space: nowrap; }
.sce-date-until { font-size: 11px; white-space: nowrap; margin-top: 6px; }
.sce-card-main { order: 1; display: flex; flex-direction: column; min-width: 0; }
.sce-card-labels { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-bottom: 9px; }
.sce-category-label { font-size: 11px; color: var(--sce-muted); letter-spacing: .04em; }
.sce-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; line-height: 1.5; background: #f3e7e1; background: color-mix(in srgb, var(--sce-accent) 10%, #fff); color: var(--sce-accent); white-space: nowrap; }
.sce-status-closing { background: #fff0d7; color: #894900; border: 1px solid #e9c58a; }
.sce-status-full { background: #f8eedb; color: #80531b; }
.sce-status-closed, .sce-status-ended { background: #eeebe6; color: #6b625b; }
.sce-status-cancelled { background: #f8e9e5; color: #963c36; }
.sce-calendar .sce-card-title { margin: 0 0 9px; padding: 0; border: 0; background: none; font-size: 19px; line-height: 1.55; letter-spacing: .02em; color: var(--sce-ink); font-weight: 600; overflow-wrap: anywhere; }
.sce-calendar .sce-card-title a { color: inherit; }
.sce-card-essentials { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; color: var(--sce-ink); }
.sce-key-fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sce-key-label { font-size: 12px; color: var(--sce-muted); font-weight: 600; }
.sce-key-fact strong { font-size: 17px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.sce-key-fact:first-child strong { font-size: 20px; }
.sce-card-meta { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 14px; line-height: 1.65; color: var(--sce-ink); }
.sce-card-meta span:not(:first-child) { border-left: 1px solid var(--sce-line); padding-left: 12px; }
.sce-calendar .sce-card-excerpt { font-size: 12px; line-height: 1.85; color: var(--sce-muted); margin: 10px 0 0; overflow-wrap: anywhere; }
.sce-card-more { display: inline-flex; align-self: start; align-items: center; font-size: 13px; font-weight: 600; margin-top: auto; padding-top: 16px; min-height: 40px; }
.sce-card-photo { order: -1; grid-column: 1 / -1; display: block; width: calc(100% + 44px); aspect-ratio: 3 / 2; height: auto; min-height: 0; margin: -22px -22px 0; overflow: hidden; background: #eee8df; }
.sce-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; max-width: none; margin: 0; border-radius: 0; }
.sce-empty { text-align: center; padding: 54px 18px; background: #fff; border: 1px dashed var(--sce-line); border-radius: 10px; font-size: 13px; color: var(--sce-muted); }
.sce-empty p { margin: 7px 0; }
.sce-empty .sce-empty-title { font-weight: 600; color: var(--sce-ink); font-size: 16px; }
.sce-month { border: 1px solid var(--sce-line); border-radius: 10px; overflow: hidden; background: #fff; }
.sce-calendar .sce-month-table { table-layout: fixed; border-collapse: collapse; width: 100%; margin: 0; padding: 0; border: 0; font: inherit; }
.sce-calendar .sce-month-table th { background: var(--sce-surface); padding: 12px 2px; border: 0; border-bottom: 1px solid var(--sce-line); text-align: center; font-size: 12px; color: var(--sce-muted); font-weight: 500; }
.sce-calendar .sce-month-table th.sce-sunday { color: #a24841; }
.sce-calendar .sce-month-table th.sce-saturday { color: #436994; }
.sce-calendar .sce-month-table td { padding: 7px 5px; vertical-align: top; border: 0; border-right: 1px solid var(--sce-line); border-bottom: 1px solid var(--sce-line); height: 115px; background: #fff; color: var(--sce-ink); }
.sce-calendar .sce-month-table td:last-child { border-right: 0; }
.sce-calendar .sce-month-table tr:last-child td { border-bottom: 0; }
.sce-calendar .sce-month-table td.sce-outside { background: #faf8f5; }
.sce-day-muted { display: inline-block; padding: 3px 9px; font-size: 11px; color: #90877f; }
.sce-calendar .sce-day-button { display: block; width: 32px; min-height: 31px; padding: 3px; border-radius: 50%; font-size: 12px; margin-bottom: 4px; }
.sce-calendar .sce-day-button[aria-current=date] { border-color: var(--sce-accent); font-weight: 700; }
.sce-calendar .sce-day-button[aria-pressed=true] { background: var(--sce-accent); color: var(--sce-on-accent, #fff); }
.sce-mini-event { display: block; background: #f3e7e1; background: color-mix(in srgb, var(--sce-accent) 8%, #fff); border-left: 2px solid var(--sce-accent); border-radius: 2px; padding: 6px; margin-bottom: 5px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.sce-mini-time { font-size: 12px; display: block; color: var(--sce-ink); font-weight: 700; }
.sce-mini-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--sce-ink); }
.sce-mini-venue { display: block; margin: 2px 0; font-size: 11px; font-weight: 600; color: var(--sce-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sce-mini-status { display: block; font-size: 9px; color: var(--sce-muted); }
.sce-mini-cancelled { background: #f6eeeb; border-color: #b76a63; }
.sce-mini-ended, .sce-mini-closed { background: #f1eeea; border-color: #b7aea4; }
.sce-mini-closing { background: #fff3df; border-color: #ad691d; }
.sce-event-popover { --sce-accent: #943e32; --sce-muted: #6b625b; position: fixed; inset: auto; margin: 0; width: 380px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow-y: auto; z-index: 2147483000; background: #fff; color: #332c28; border: 1px solid #e0d8ce; border-radius: 12px; box-shadow: 0 8px 32px #332c2826; padding: 23px; text-align: left; line-height: 1.6; font-size: 16px; box-sizing: border-box; }
.sce-event-popover[hidden] { display: none !important; }
.sce-event-popover p { margin: 9px 0 0; padding: 0; overflow-wrap: anywhere; }
.sce-event-popover .sce-preview-title { font-size: 22px; font-weight: 700; line-height: 1.5; }
.sce-event-popover .sce-preview-date { font-size: 15px; color: #6b625b; }
.sce-event-popover .sce-preview-time, .sce-event-popover .sce-preview-venue { font-size: 18px; font-weight: 700; }
.sce-event-popover .sce-preview-description { font-size: 14px; color: #6b625b; }
.sce-calendar .sce-more-events { min-height: 27px; padding: 2px; font-size: 10px; }
.sce-mobile-count { display: none; }
.sce-calendar .sce-calendar-hint { font-size: 12px; color: var(--sce-muted); margin: 14px 0 0; }
.sce-calendar .sce-day-heading { margin: 30px 0 14px; padding: 0; border: 0; background: none; font-size: 18px; font-weight: 600; }
.sce-detail { margin: 25px 0; }
.sce-detail-facts { background: var(--sce-surface); padding: 25px 30px; border-radius: 12px; margin-bottom: 30px; }
.sce-detail-facts dl { margin: 18px 0 0; }
.sce-detail-facts dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 15px; padding: 10px 0; border-bottom: 1px solid var(--sce-line); }
.sce-detail-facts dl > div:last-child { border-bottom: 0; }
.sce-detail-facts dt { font-size: 13px; font-weight: 600; color: var(--sce-muted); margin: 0; }
.sce-detail-facts dd { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.sce-detail-facts dl > div:nth-child(2) dd, .sce-detail-facts dl > div:nth-child(3) dd { font-size: 20px; font-weight: 700; }
.sce-detail .sce-calendar-note { font-size: 12px; margin: 12px 0 0; color: var(--sce-muted); }
.sce-detail .sce-back { margin-top: 30px; font-size: 15px; }
.sce-text-link { display: inline-block; margin-top: 15px; font-size: 13px; }
.sce-description { line-height: 1.9; }
.sce-application { padding: 25px 30px; border: 1px solid var(--sce-line); border-radius: 12px; margin: 32px 0; background: var(--sce-surface); }
.sce-detail .sce-application h2, .sce-detail .sce-notes h2 { font-size: 20px; font-weight: 600; margin: 0 0 17px; padding: 0; background: transparent; color: inherit; border: 0; box-shadow: none; }
.sce-detail .sce-application h2::before, .sce-detail .sce-application h2::after, .sce-detail .sce-notes h2::before, .sce-detail .sce-notes h2::after { display: none; }
.sce-application p, .sce-notes p { overflow-wrap: anywhere; font-size: 14px; }
.sce-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.sce-detail .sce-button, .sce-calendar .sce-button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 13px 22px; min-height: 46px; border: 1px solid var(--sce-accent); border-radius: 6px; color: var(--sce-on-accent, #fff); background: var(--sce-accent); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; }
.sce-detail .sce-button:hover, .sce-calendar .sce-button:hover { filter: brightness(.94); }
.sce-detail .sce-button-secondary { background: #fff; color: var(--sce-accent); }
.sce-notes { padding: 0 4px; }
.sce-status-message { padding-left: 15px; border-left: 3px solid #b8a486; }
.sce-sr-only { position: absolute !important; height: 1px !important; width: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; padding: 0 !important; border: 0 !important; }
@media (max-width: 960px) {
  .sce-categories { flex-basis: 100%; }
  .sce-venue-filter, .sce-search { flex: 1 1 180px; max-width: none; }
  .sce-card { padding: 18px; gap: 18px 14px; grid-template-columns: 50px minmax(0, 1fr); }
  .sce-card-photo { width: calc(100% + 36px); margin: -18px -18px 0; }
  .sce-header-note { display: none; }
}
@media (max-width: 680px) {
  .sce-calendar { padding: 21px 14px; border-radius: 8px; margin: 24px auto; }
  .sce-header { padding-bottom: 20px; margin-bottom: 19px; }
  .sce-toolbar { align-items: stretch; flex-direction: column; gap: 15px; margin-bottom: 19px; }
  .sce-month-nav { justify-content: center; gap: 5px; }
  .sce-view-switch { display: flex; align-self: stretch; min-width: 0; }
  .sce-calendar .sce-view-button { flex: 1 1 0; min-width: 0; min-height: 38px; padding: 6px 7px; font-size: 12px; }
  .sce-filters { gap: 12px; }
  .sce-categories { flex-basis: 100%; }
  .sce-venue-filter, .sce-search { flex-basis: calc(50% - 6px); min-width: 0; }
  .sce-venue-filter { display: block; }
  .sce-venue-filter > span:not(.sce-sr-only) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .sce-calendar .sce-venue-filter select { font-size: 12px; }
  .sce-calendar .sce-search input { font-size: 12px; padding: 7px 9px; }
  .sce-summary { align-items: start; }
  .sce-calendar .sce-reset { margin-top: 13px; flex-shrink: 0; }
  .sce-list { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .sce-card { padding: 20px 18px; grid-template-columns: 49px minmax(0, 1fr); gap: 20px 14px; }
  .sce-card-date { padding-right: 12px; }
  .sce-date-day { font-size: 31px; }
  .sce-calendar .sce-card-title { font-size: 18px; }
  .sce-card-essentials { gap: 10px; }
  .sce-key-fact strong { font-size: 17px; }
  .sce-key-fact:first-child strong { font-size: 19px; }
  .sce-card-photo { width: calc(100% + 36px); margin: -20px -18px 0; }
  .sce-card-meta { gap: 5px 8px; }
  .sce-card-meta span:not(:first-child) { padding-left: 8px; }
  .sce-calendar .sce-month-table td { height: 70px; padding: 5px 1px; text-align: center; }
  .sce-calendar .sce-day-button { margin: 0 auto 3px; min-height: 33px; width: 33px; }
  .sce-day-events { display: none; }
  .sce-mobile-count { display: block; font-size: 10px; color: var(--sce-accent); }
  .sce-day-muted { padding: 6px; }
  .sce-calendar .sce-month-title { font-size: 20px; min-width: 126px; margin: 0 3px; }
  .sce-calendar .sce-today-button { margin-left: 0; padding: 7px 9px; }
  .sce-detail-facts, .sce-application { padding: 20px; }
  .sce-detail-facts dl > div { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 360px) {
  .sce-calendar { padding-inline: 10px; }
  .sce-venue-filter, .sce-search { flex-basis: 100%; }
  .sce-calendar .sce-chip { padding-inline: 12px; }
  .sce-card { padding-inline: 14px; column-gap: 11px; }
  .sce-card-photo { width: calc(100% + 28px); margin-inline: -14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .sce-card { transition: border-color .18s ease; }
  .sce-card:hover { border-color: var(--sce-accent); }
}
@media print {
  .sce-toolbar, .sce-filters, .sce-reset, .sce-actions { display: none; }
  .sce-card { break-inside: avoid; }
  .sce-calendar { padding: 0; background: #fff; border: 0; }
  .sce-list { display: block; }
  .sce-card { margin-bottom: 16px; }
}
