.rsema-agenda-wrap,
.rsema-single,
.rsema-accessibility {
  --rsema-bg: #ffffff;
  --rsema-border: #d9c8a7;
  --rsema-text: #1c2740;
  --rsema-muted: #556070;
  --rsema-accent: #b08b4f;
  --rsema-shadow: 0 18px 40px rgba(28,39,64,.06);
  color: var(--rsema-text);
  font-family: Georgia, "Times New Roman", serif;
}

.rsema-agenda-wrap {
  margin: 28px 0 48px;
}

.rsema-agenda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.rsema-card {
  background: var(--rsema-bg);
  border: 1px solid var(--rsema-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--rsema-shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.rsema-card-media,
.rsema-card-media:hover {
  display: block;
  text-decoration: none;
  line-height: 0;
}

.rsema-card-image,
.rsema-card-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #f8f5ef, #ece5d8);
}

.rsema-card-body {
  display: grid;
  grid-template-columns: 112px minmax(0,1fr);
  gap: 22px;
  padding: 24px;
  align-items: start;
}

.rsema-date-box {
  min-height: 142px;
  border: 1px solid var(--rsema-border);
  border-radius: 20px;
  background: #fffdf8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  text-align: center;
}

.rsema-date-box--empty {
  justify-content: center;
}

.rsema-date-day {
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.03em;
}

.rsema-date-month,
.rsema-date-year,
.rsema-date-time {
  display: block;
  margin-top: 6px;
}

.rsema-date-month {
  font-size: .95rem;
  letter-spacing: .08em;
  color: var(--rsema-accent);
}

.rsema-date-year,
.rsema-date-time {
  font-size: .92rem;
  line-height: 1.35;
  color: var(--rsema-muted);
}

.rsema-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rsema-card-title,
.rsema-card-title a {
  margin: 0;
  font-size: clamp(1.8rem, 2.2vw, 2.2rem);
  line-height: 1.04;
  color: var(--rsema-text);
  text-decoration: none;
  word-break: normal;
  overflow-wrap: anywhere;
  white-space: normal;
}

.rsema-card-subtitle,
.rsema-card-speaker {
  margin: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.rsema-card-subtitle {
  font-size: 1.05rem;
  color: var(--rsema-muted);
}

.rsema-card-speaker {
  font-size: 1.08rem;
  color: var(--rsema-text);
  font-weight: 600;
}

.rsema-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.rsema-btn,
.rsema-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--rsema-border);
  background: #fff;
  color: var(--rsema-text);
  text-decoration: none;
  font-size: .98rem;
  font-weight: 700;
  transition: transform .15s ease, background-color .15s ease;
}

.rsema-btn:hover,
.rsema-btn:focus {
  background: #f8f5ef;
  transform: translateY(-1px);
}

.rsema-btn-primary,
.rsema-btn-primary:visited {
  background: var(--rsema-text);
  color: #fff;
  border-color: var(--rsema-text);
}

.rsema-btn-primary:hover,
.rsema-btn-primary:focus {
  background: #0f1930;
}

.rsema-empty {
  grid-column: 1/-1;
  margin: 0;
  padding: 20px 24px;
  border: 1px solid var(--rsema-border);
  border-radius: 18px;
  background: #fff;
}

.rsema-accessibility {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
}

.rsema-accessibility-toggle,
.rsema-accessibility-panel button {
  font: inherit;
  border: 1px solid var(--rsema-border);
  border-radius: 999px;
  background: #fff;
  color: var(--rsema-text);
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
}

.rsema-accessibility-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 290px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--rsema-border);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: var(--rsema-shadow);
}

.rsema-contrast {
  filter: contrast(1.15);
}

.rsema-links a {
  text-decoration: underline !important;
}

.rsema-reduce-motion *,
.rsema-reduce-motion *::before,
.rsema-reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

.rsema-single {
  max-width: 1100px;
  margin: 36px auto;
  padding: 0 20px 40px;
}

.rsema-single-hero {
  background: #fff;
  border: 1px solid var(--rsema-border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--rsema-shadow);
}

.rsema-single-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.rsema-single-inner {
  padding: 28px;
}

.rsema-single-header {
  display: grid;
  grid-template-columns: 130px minmax(0,1fr);
  gap: 24px;
  align-items: start;
}

.rsema-single-title {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.rsema-single-subtitle {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.3;
  color: var(--rsema-text);
}

.rsema-single-speaker {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--rsema-muted);
  font-weight: 600;
}

.rsema-single-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.rsema-single-content {
  margin-top: 28px;
  font-size: 1.06rem;
  line-height: 1.8;
}

.rsema-single-share {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(176,139,79,.25);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rsema-single-share-title {
  flex-basis: 100%;
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--rsema-muted);
}

@media (max-width: 980px) {
  .rsema-card-body,
  .rsema-single-header {
    grid-template-columns: 1fr;
  }

  .rsema-date-box {
    min-height: auto;
    padding: 16px;
  }

  .rsema-card-title,
  .rsema-card-title a {
    font-size: 1.9rem;
  }
}

@media (max-width: 640px) {
  .rsema-agenda-grid {
    grid-template-columns: 1fr;
  }

  .rsema-card-body,
  .rsema-single-inner {
    padding: 18px;
  }

  .rsema-accessibility {
    right: 10px;
    bottom: 10px;
  }

  .rsema-accessibility-panel {
    width: min(280px, calc(100vw - 20px));
  }
}
