/* Crypto Event Calendar — editorial layout matching design mockup */

:root {
  --ci-ev-red: #8b1538;
  --ci-ev-red-dark: #6f112d;
  --ci-ev-bg: #ffffff;
  --ci-ev-card: #ffffff;
  --ci-ev-text: #111111;
  --ci-ev-muted: #555555;
  --ci-ev-meta: #777777;
  --ci-ev-border: #e5e5e5;
  --ci-ev-border-dark: #1a1a1a;
  --ci-ev-font-header: "Cormorant Garamond", "Times New Roman", Times, serif;
  --ci-ev-font-accent: "Playfair Display SC", "Playfair Display", "Times New Roman", Times, serif;
  --ci-ev-font-text: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.ci-event-calendar-page .page-heading.secondary-background,
body.ci-event-calendar-page .coin-news-section {
  display: none !important;
}

body.ci-event-calendar-page,
body.ci-event-calendar-page .main-wrapper,
body.ci-event-calendar-page #main {
  background: #ffffff;
}

.ci-event-cal,
.ci-event-cal-single {
  font-family: var(--ci-ev-font-text);
  color: var(--ci-ev-text);
  background: var(--ci-ev-bg);
}

.ci-event-cal__container,
.ci-event-cal-single__container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

/* Hero — editorial headline (mockup) */
.ci-event-cal__hero {
  margin-bottom: 8px;
}

.ci-event-cal__eyebrow {
  margin: 0 0 10px;
  font-family: var(--ci-ev-font-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ci-ev-red);
}

.ci-event-cal__title {
  margin: 0 0 14px;
  font-family: "Playfair Display", "Times New Roman", Times, serif !important;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800 !important;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #000000 !important;
}

.ci-event-cal__desc {
  margin: 0;
  max-width: 820px;
  font-family: var(--ci-ev-font-text);
  font-size: clamp(0.9375rem, 1vw, 1rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ci-ev-muted);
}

/* Filter pills + count */
.ci-event-cal__filters {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ci-event-cal__plan .ci-event-cal__filters {
  margin: 0 0 24px;
}

.ci-event-cal__filters-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.ci-event-cal__filter-btn {
  appearance: none;
  border: 1px solid var(--ci-ev-border);
  background: var(--ci-ev-card);
  color: var(--ci-ev-text);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--ci-ev-font-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ci-event-cal__filter-btn:hover {
  border-color: var(--ci-ev-red);
  color: var(--ci-ev-red);
}

.ci-event-cal__filter-btn.is-active {
  background: var(--ci-ev-red);
  border-color: var(--ci-ev-red);
  color: #fff;
}

.ci-event-cal__count {
  flex-shrink: 0;
  font-family: var(--ci-ev-font-accent);
  font-size: clamp(0.75rem, 1vw, 0.8125rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ci-ev-meta);
  padding-top: 10px;
}

/* Section headers */
.ci-event-cal__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ci-ev-border-dark);
}

.ci-event-cal__section-title {
  margin: 0;
  font-family: var(--ci-ev-font-text) !important;
  font-size: 18px;
  font-weight: 700 !important;
  font-style: normal;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ci-ev-red);
}

.ci-event-cal__section-title--solo {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ci-ev-border-dark);
}

.ci-event-cal__section-sub {
  margin: 0;
  font-family: var(--ci-ev-font-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ci-ev-meta);
  text-align: right;
  max-width: 280px;
}

/* Category tag */
.ci-event-cal__tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--ci-ev-font-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ci-ev-red);
  color: #fff;
  line-height: 1.2;
}

.ci-event-cal__tag--card {
  position: absolute;
  top: 16px;
  right: 16px;
}

/* Featured section */
.ci-event-cal__featured {
  margin-top: 32px;
  margin-bottom: 56px;
}

.ci-event-cal__featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ci-event-cal__featured-card {
  padding: 20px 22px 24px;
  border: 1px solid var(--ci-ev-border-dark);
  background: var(--ci-ev-card);
  box-sizing: border-box;
}

.ci-event-cal__featured-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ci-event-cal__featured-num {
  font-family: var(--ci-ev-font-header);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ci-ev-red);
  line-height: 1;
}

.ci-event-cal__featured-name {
  margin: 0 0 10px;
  font-family: var(--ci-ev-font-header);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  color: #000000;
}

.ci-event-cal__featured-name a {
  color: inherit;
  text-decoration: none;
  font-size: inherit;
}

.ci-event-cal__featured-name a:hover {
  color: var(--ci-ev-red);
}

.ci-event-cal__featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0 0 12px;
  font-family: var(--ci-ev-font-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ci-ev-meta);
}

.ci-event-cal__featured-meta .ci-event-cal__pin {
  color: var(--ci-ev-meta);
  flex-shrink: 0;
}

.ci-event-cal__meta-sep {
  margin: 0 2px;
}

.ci-event-cal__featured-desc {
  margin: 0;
  font-family: var(--ci-ev-font-text);
  font-size: clamp(0.9375rem, 1vw, 1rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ci-ev-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  min-height: calc(1.6em * 4);
}

/* Plan by date */
.ci-event-cal__plan {
  margin-bottom: 56px;
}

.ci-event-cal__plan-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 32px;
  align-items: start;
}

.ci-event-cal__calendar {
  background: var(--ci-ev-card);
  border: 1px solid var(--ci-ev-border);
  padding: 20px 18px 16px;
}

.ci-event-cal__cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ci-event-cal__cal-month {
  margin: 0;
  font-family: var(--ci-ev-font-header);
  font-size: clamp(1.375rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.2;
}

.ci-event-cal__cal-nav {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--ci-ev-red);
  color: #fff;
  cursor: pointer;
  padding: 0;
}

.ci-event-cal__cal-nav:hover {
  background: var(--ci-ev-red-dark);
}

.ci-event-cal__cal-nav.is-disabled,
.ci-event-cal__cal-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.ci-event-cal__cal-nav.is-disabled:hover,
.ci-event-cal__cal-nav:disabled:hover {
  background: var(--ci-ev-red);
}

.ci-event-cal__cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
  text-align: center;
  font-family: var(--ci-ev-font-text);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ci-ev-meta);
}

.ci-event-cal__cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.ci-event-cal__cal-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: none;
  font-family: var(--ci-ev-font-header);
  font-size: 14px;
  font-weight: 500;
  color: var(--ci-ev-text);
  cursor: default;
  padding: 0;
}

.ci-event-cal__cal-day.is-empty {
  visibility: hidden;
}

.ci-event-cal__cal-day.is-clickable {
  cursor: pointer;
}

.ci-event-cal__cal-day.is-clickable:hover {
  border-color: var(--ci-ev-red);
}

.ci-event-cal__cal-day.is-today {
  border-color: var(--ci-ev-red);
}

.ci-event-cal__cal-day.is-selected {
  border-color: var(--ci-ev-red);
  background: rgba(139, 21, 56, 0.06);
}

.ci-event-cal__cal-day.has-event::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ci-ev-red);
}

.ci-event-cal__cal-today {
  appearance: none;
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 8px;
  border: none;
  background: none;
  font-family: var(--ci-ev-font-text);
  font-size: 13px;
  font-weight: 600;
  color: var(--ci-ev-red);
  cursor: pointer;
  text-align: center;
}

.ci-event-cal__cal-today:hover {
  text-decoration: underline;
}

.ci-event-cal__plan-count {
  margin: 0 0 12px;
  font-family: var(--ci-ev-font-accent);
  font-size: clamp(0.75rem, 1vw, 0.8125rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ci-ev-meta);
}

.ci-event-cal__plan-list {
  display: flex;
  flex-direction: column;
}

.ci-event-cal__plan-item {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--ci-ev-border);
  cursor: pointer;
  text-align: left;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  width: 100%;
  font: inherit;
  color: inherit;
}

.ci-event-cal__plan-item:hover .ci-event-cal__plan-name {
  color: var(--ci-ev-red);
}

.ci-event-cal__plan-date {
  font-family: var(--ci-ev-font-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ci-ev-red);
}

.ci-event-cal__plan-month {
  display: inline-block;
  font-family: var(--ci-ev-font-header);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ci-ev-red);
  letter-spacing: 0.02em;
}

.ci-event-cal__plan-name {
  margin: 0 0 4px;
  font-family: var(--ci-ev-font-header);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  transition: color 0.15s ease;
}

.ci-event-cal__plan-location {
  margin: 0;
  font-family: var(--ci-ev-font-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ci-ev-meta);
}

.ci-event-cal__plan-item .ci-event-cal__tag {
  align-self: start;
}

/* Full calendar */
.ci-event-cal__month-group {
  margin-bottom: 40px;
}

.ci-event-cal__month-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ci-event-cal__month-label {
  font-family: var(--ci-ev-font-accent);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ci-ev-text);
}

.ci-event-cal__month-count {
  font-family: var(--ci-ev-font-accent);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ci-ev-meta);
}

.ci-event-cal__month-line {
  flex: 1;
  height: 1px;
  background: var(--ci-ev-border);
}

.ci-event-cal__full-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ci-event-cal__full-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  border: 1px solid var(--ci-ev-border);
  background: var(--ci-ev-card);
  scroll-margin-top: 100px;
}

.ci-event-cal__full-card.is-highlight {
  box-shadow: inset 0 0 0 2px var(--ci-ev-red);
}

.ci-event-cal__full-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  border-right: 1px solid var(--ci-ev-border);
  text-align: center;
}

.ci-event-cal__full-month {
  font-family: var(--ci-ev-font-accent);
  font-size: clamp(0.75rem, 1vw, 0.8125rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--ci-ev-red);
}

.ci-event-cal__full-day {
  font-family: var(--ci-ev-font-header);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.1;
  margin: 4px 0;
}

.ci-event-cal__full-range-end {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 2px 0 4px;
}

.ci-event-cal__full-day-part {
  font-family: var(--ci-ev-font-header);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.1;
}

.ci-event-cal__full-year {
  font-family: var(--ci-ev-font-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ci-ev-meta);
}

.ci-event-cal__full-date-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--ci-ev-border);
  margin-top: 10px;
}

.ci-event-cal__full-body {
  position: relative;
  padding: 18px 20px 20px;
}

.ci-event-cal__full-name {
  margin: 0 0 8px;
  padding-right: 80px;
  font-family: var(--ci-ev-font-header);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: #000000;
}

.ci-event-cal__full-name a {
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  transition: color 0.15s ease;
}

.ci-event-cal__full-name a:hover {
  color: var(--ci-ev-red);
}

.ci-event-cal__full-location {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 10px;
  font-family: var(--ci-ev-font-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ci-ev-meta);
}

.ci-event-cal__full-location .ci-event-cal__pin {
  color: var(--ci-ev-red);
}

.ci-event-cal__full-desc {
  margin: 0;
  font-family: var(--ci-ev-font-text);
  font-size: clamp(0.9375rem, 1vw, 1rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ci-ev-text);
  max-width: 720px;
}

.ci-event-cal__empty {
  font-family: var(--ci-ev-font-text);
  font-size: clamp(0.9375rem, 1vw, 1rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ci-ev-muted);
}

.ci-event-cal__pin {
  flex-shrink: 0;
}

/* Single event page */
.ci-event-cal-single {
  padding-bottom: 64px;
}

.ci-event-cal-single__back {
  margin-bottom: 24px;
}

.ci-event-cal-single__back a {
  font-family: var(--ci-ev-font-text);
  font-size: 13px;
  font-weight: 600;
  color: var(--ci-ev-red);
  text-decoration: none;
}

.ci-event-cal-single__back a:hover {
  text-decoration: underline;
}

.ci-event-cal-single__header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ci-ev-border);
}

.ci-event-cal-single__header .ci-event-cal__tag {
  margin-bottom: 12px;
}

.ci-event-cal-single__title {
  margin: 0 0 12px;
  font-family: var(--ci-ev-font-header) !important;
  font-size: clamp(2.125rem, 4.5vw, 3rem);
  font-weight: 500 !important;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.ci-event-cal-single__date,
.ci-event-cal-single__location {
  margin: 0 0 8px;
  font-family: var(--ci-ev-font-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ci-ev-muted);
}

.ci-event-cal-single__location {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ci-event-cal-single__location .ci-event-cal__pin {
  color: var(--ci-ev-red);
}

.ci-event-cal-single__cta {
  margin: 16px 0 0;
}

.ci-event-cal-single__btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--ci-ev-red);
  color: #fff;
  font-family: var(--ci-ev-font-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.ci-event-cal-single__btn:hover {
  background: var(--ci-ev-red-dark);
  color: #fff;
}

.ci-event-cal-single__content {
  font-family: var(--ci-ev-font-text);
  font-size: clamp(0.9375rem, 1vw, 1rem);
  font-weight: 400;
  line-height: 1.65;
  max-width: 760px;
}

.ci-event-cal-single__content p {
  margin: 0 0 1em;
}

.ci-event-cal-single__content h2,
.ci-event-cal-single__content h3,
.ci-event-cal-single__content h4 {
  font-family: var(--ci-ev-font-header) !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  color: var(--ci-ev-text);
}

.ci-event-cal-single__content h2 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem) !important;
  margin: 2rem 0 0.85rem;
}

.ci-event-cal-single__content h3 {
  font-size: 1.125rem !important;
  margin: 1.75rem 0 0.75rem;
}

/* Responsive */
@media (max-width: 960px) {
  .ci-event-cal__featured-grid {
    grid-template-columns: 1fr;
  }

  .ci-event-cal__plan-grid {
    grid-template-columns: 1fr;
  }

  .ci-event-cal__section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ci-event-cal__section-sub {
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .ci-event-cal__filters {
    flex-direction: column;
  }

  .ci-event-cal__count {
    padding-top: 0;
  }

  .ci-event-cal__full-card {
    grid-template-columns: 1fr;
  }

  .ci-event-cal__full-date {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    border-right: none;
    border-bottom: 1px solid var(--ci-ev-border);
    padding: 14px 16px;
  }

  .ci-event-cal__full-date-line {
    display: none;
  }

  .ci-event-cal__plan-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ci-event-cal__plan-item .ci-event-cal__tag {
    justify-self: start;
  }
}
