@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

.ac-calendar {
    --ac-navy: #061c3b;
    --ac-navy-soft: #0d2d55;
    --ac-gold: #c7952f;
    --ac-gold-light: #e8c66f;
    --ac-cream: #f8f5ef;
    --ac-ink: #172033;
    --ac-muted: #677083;
    --ac-line: #e7dfd0;
    background: #fff;
    color: var(--ac-ink);
    font-family: "DM Sans", Arial, sans-serif;
    line-height: 1.55;
    overflow: hidden;
}

.ac-calendar *,
.ac-calendar *::before,
.ac-calendar *::after { box-sizing: border-box; }

.ac-calendar button,
.ac-calendar input { font: inherit; }

.ac-container {
    margin: 0 auto;
    max-width: 1180px;
    padding-left: 28px;
    padding-right: 28px;
}

.ac-hero {
    background:
        radial-gradient(circle at 82% 20%, rgba(224, 180, 77, .18), transparent 24%),
        linear-gradient(135deg, #04152f 0%, #082750 58%, #061b37 100%);
    color: #fff;
    min-height: 500px;
    overflow: hidden;
    position: relative;
}

.ac-hero::before {
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 58px 58px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(to bottom, #000, transparent);
    position: absolute;
}

.ac-hero__orb {
    border: 1px solid rgba(232, 198, 111, .25);
    border-radius: 50%;
    position: absolute;
}

.ac-hero__orb::before,
.ac-hero__orb::after {
    border: inherit;
    border-radius: inherit;
    content: "";
    inset: 10%;
    position: absolute;
}

.ac-hero__orb::after { inset: 24%; }
.ac-hero__orb--one { height: 360px; right: -80px; top: 80px; width: 360px; }
.ac-hero__orb--two { bottom: -190px; height: 320px; left: -100px; width: 320px; }

.ac-hero__content {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding-bottom: 84px;
    padding-top: 78px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.ac-eyebrow {
    color: var(--ac-gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    margin: 0 0 22px;
    text-transform: uppercase;
}

.ac-hero h2 {
    color: #fff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(42px, 6.5vw, 78px);
    letter-spacing: -.04em;
    line-height: 1.05;
    margin: 0;
    max-width: 900px;
}

.ac-hero__intro {
    color: rgba(255,255,255,.76);
    font-size: 17px;
    margin: 24px auto 0;
    max-width: 620px;
}

.ac-hero__line {
    align-items: center;
    color: var(--ac-gold-light);
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.ac-hero__line span {
    background: linear-gradient(90deg, transparent, var(--ac-gold));
    height: 1px;
    width: 70px;
}

.ac-hero__line span:last-child { transform: rotate(180deg); }
.ac-hero__line i { font-style: normal; }

.ac-hero__stats {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 44px;
    max-width: 620px;
    width: 100%;
}

.ac-hero__stats div {
    border-right: 1px solid rgba(255,255,255,.16);
    display: flex;
    flex-direction: column;
    padding: 0 24px;
}

.ac-hero__stats div:last-child { border-right: 0; }
.ac-hero__stats strong { color: var(--ac-gold-light); font-family: "Playfair Display", Georgia, serif; font-size: 28px; }
.ac-hero__stats span { color: rgba(255,255,255,.64); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

.ac-content { padding-bottom: 76px; position: relative; }

.ac-toolbar {
    align-items: center;
    background: #fff;
    border: 1px solid var(--ac-line);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(12, 34, 61, .1);
    display: flex;
    gap: 30px;
    justify-content: space-between;
    margin-top: -38px;
    padding: 24px 28px;
    position: relative;
    z-index: 3;
}

.ac-toolbar__label {
    color: var(--ac-navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 21px;
    font-weight: 700;
}

.ac-toolbar p { color: var(--ac-muted); font-size: 13px; margin: 3px 0 0; }

.ac-search {
    align-items: center;
    background: var(--ac-cream);
    border: 1px solid transparent;
    border-radius: 999px;
    display: flex;
    min-width: 300px;
    padding: 0 18px;
    transition: border-color .2s, box-shadow .2s;
}

.ac-search:focus-within {
    border-color: var(--ac-gold);
    box-shadow: 0 0 0 3px rgba(199,149,47,.12);
}

.ac-search svg {
    fill: none;
    height: 18px;
    margin-right: 10px;
    stroke: var(--ac-gold);
    stroke-linecap: round;
    stroke-width: 1.7;
    width: 18px;
}

.ac-search input {
    background: transparent;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--ac-ink);
    min-height: 46px;
    outline: 0;
    padding: 0 !important;
    width: 100%;
}

.ac-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: center;
    padding: 34px 0 10px;
}

.ac-filters button {
    background: transparent;
    border: 1px solid var(--ac-line);
    border-radius: 999px;
    color: var(--ac-muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    transition: .2s ease;
}

.ac-filters button:hover { border-color: var(--ac-gold); color: var(--ac-navy); }
.ac-filters button.is-active { background: var(--ac-navy); border-color: var(--ac-navy); color: #fff; }

.ac-months {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 28px;
}

.ac-month {
    background: #fff;
    border: 1px solid var(--ac-line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 35, 58, .045);
    overflow: hidden;
}

.ac-month[hidden] { display: none; }

.ac-month__header {
    align-items: center;
    background: var(--ac-cream);
    border-bottom: 1px solid var(--ac-line);
    display: flex;
    gap: 18px;
    padding: 20px 24px;
}

.ac-month__header > span {
    color: rgba(199,149,47,.35);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
}

.ac-month__header h3 {
    color: var(--ac-navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 23px;
    margin: 0;
}

.ac-month__header p { color: var(--ac-muted); font-size: 12px; margin: 1px 0 0; }
.ac-month__events { padding: 5px 24px; }

.ac-event {
    align-items: start;
    border-bottom: 1px solid #eee9df;
    display: grid;
    gap: 18px;
    grid-template-columns: 112px 1fr auto;
    padding: 22px 0;
    position: relative;
}

.ac-event:last-child { border-bottom: 0; }
.ac-event[hidden] { display: none; }

.ac-event__date {
    align-items: center;
    border-right: 1px solid var(--ac-line);
    display: flex;
    flex-direction: column;
    min-height: 60px;
    padding-right: 14px;
}

.ac-event__date strong {
    color: var(--ac-gold);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.ac-event__date span { color: var(--ac-muted); font-size: 10px; margin-top: 5px; white-space: nowrap; }
.ac-event__category { color: var(--ac-gold); display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; margin-bottom: 4px; text-transform: uppercase; }
.ac-event__image {
    border-radius: 12px;
    margin: 0 0 14px;
    overflow: hidden;
    position: relative;
}
.ac-event__image img {
    aspect-ratio: 16 / 9;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.ac-event h4 {
    color: var(--ac-navy);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 17px;
    line-height: 1.3;
    margin: 0;
}

.ac-event__body > p { color: var(--ac-muted); font-size: 12px; line-height: 1.55; margin: 7px 0 0; }
.ac-event__location { align-items: center; color: var(--ac-muted); display: flex; font-size: 11px; gap: 5px; margin-top: 10px; }
.ac-event__location svg { fill: none; height: 14px; stroke: var(--ac-gold); stroke-width: 1.7; width: 14px; }
.ac-event__pdf {
    align-items: center;
    background: linear-gradient(135deg, var(--ac-gold), var(--ac-gold-light));
    border-radius: 999px;
    color: var(--ac-navy) !important;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    justify-content: center;
    margin-top: 12px;
    min-height: 34px;
    padding: 8px 15px;
    text-decoration: none !important;
    text-transform: uppercase;
}
.ac-event__pdf:hover { filter: brightness(.97); transform: translateY(-1px); }
.ac-event__payment {
    align-items: center;
    background: var(--ac-navy);
    border: 1px solid rgba(199,149,47,.45);
    border-radius: 999px;
    color: #fff !important;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    justify-content: center;
    margin-top: 8px;
    min-height: 34px;
    padding: 8px 15px;
    text-decoration: none !important;
    text-transform: uppercase;
}
.ac-event__payment:hover { background: var(--ac-navy-soft); transform: translateY(-1px); }

.ac-event__toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--ac-gold);
    cursor: pointer;
    display: flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    width: 34px;
}

.ac-event__toggle:hover { background: var(--ac-cream); }
.ac-event__toggle svg { fill: none; height: 18px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; transition: transform .2s; width: 18px; }
.ac-event.is-open .ac-event__toggle svg { transform: rotate(90deg); }

.ac-event__details {
    color: var(--ac-muted);
    display: none;
    font-size: 13px;
    grid-column: 2 / -1;
    padding: 0 0 4px;
}

.ac-event.is-open .ac-event__details { display: block; }
.ac-event__details p { margin: 0 0 10px; }

.ac-empty {
    align-items: center;
    background: var(--ac-cream);
    border: 1px solid var(--ac-line);
    border-radius: 14px;
    color: var(--ac-muted);
    display: flex;
    flex-direction: column;
    margin: 36px 0;
    padding: 42px 24px;
    text-align: center;
}

.ac-empty strong { color: var(--ac-navy); font-family: "Playfair Display", Georgia, serif; font-size: 20px; }
.ac-empty[hidden] { display: none; }

.ac-notice {
    align-items: center;
    background: linear-gradient(100deg, #faf7f0, #fff);
    border: 1px solid rgba(199,149,47,.45);
    border-radius: 14px;
    display: flex;
    gap: 20px;
    margin-top: 28px;
    padding: 22px 26px;
}

.ac-notice__icon {
    align-items: center;
    background: var(--ac-gold);
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex: 0 0 42px;
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    height: 42px;
    justify-content: center;
}

.ac-notice strong { color: var(--ac-navy); font-family: "Playfair Display", Georgia, serif; font-size: 16px; }
.ac-notice p { color: var(--ac-muted); font-size: 13px; margin: 3px 0 0; }

@media (max-width: 820px) {
    .ac-hero { min-height: 460px; }
    .ac-hero__content { padding-bottom: 72px; padding-top: 64px; }
    .ac-months { grid-template-columns: 1fr; }
    .ac-toolbar { align-items: stretch; flex-direction: column; }
    .ac-search { min-width: 0; width: 100%; }
}

@media (max-width: 560px) {
    .ac-container { padding-left: 18px; padding-right: 18px; }
    .ac-hero h2 { font-size: 40px; }
    .ac-hero__intro { font-size: 15px; }
    .ac-hero__stats div { padding: 0 10px; }
    .ac-hero__stats strong { font-size: 22px; }
    .ac-toolbar { padding: 20px; }
    .ac-month__header { padding: 18px; }
    .ac-month__events { padding: 2px 18px; }
    .ac-event { gap: 12px; grid-template-columns: 92px 1fr auto; }
    .ac-event__date { padding-right: 10px; }
    .ac-event__date strong { font-size: 12px; }
    .ac-notice { align-items: flex-start; padding: 20px; }
}
