/* ==========================================================
   MODERN AGENDA — PROJECT EXTENSIONS
   Rosetta documentation primitives live in rosetta-docs.css.
   This file contains only agenda-specific reusable components.
   ========================================================== */

summary {
  cursor: pointer;
}

summary:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

.agenda {
  gap: var(--space-3);
}

/* Compatibility for the currently published Angular build. */
.agenda-header {
  justify-content: space-between;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(95, 200, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(95, 200, 255, 0.12), transparent 42%),
    var(--navy);
  box-shadow: var(--shadow);
}

.agenda-header h1 {
  margin-bottom: 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}

.agenda-header .label {
  color: var(--blue-light);
}

.agenda-header .meta,
.agenda-header .notice {
  color: #b8c8d7;
}

.agenda-day {
  overflow: hidden;
  background: var(--surface);
}

.day-heading {
  position: relative;
  justify-content: space-between;
  min-height: 66px;
  padding: 1rem 1.25rem;
  list-style: none;
  border-bottom: 1px solid transparent;
  background: #f9b23d;
  /* #f9b23d */
}

.day-heading::-webkit-details-marker {
  display: none;
}

.agenda-day[open] .day-heading {
  border-bottom-color: var(--border-blue);
}

.date {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.day-toggle {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid var(--border-blue);
  border-radius: 50%;
  background: var(--surface);
}

.day-toggle::before,
.day-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1px;
  content: "";
  background: var(--blue);
  transform: translate(-50%, -50%);
}

.day-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.agenda-day[open] .day-toggle::after {
  display: none;
}

.day-body {
  gap: 0;
}

.session {
  gap: var(--space-3);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--border);
}

.session:last-child {
  border-bottom: 0;
}

.session-heading h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.session-place {
  display: grid;
  gap: 0.1rem;
  min-width: 180px;
  text-align: right;
}

.faculty {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.faculty--compact {
  max-width: 240px;
  text-align: right;
}

.faculty-label {
  margin-right: 0.35rem;
  color: var(--text);
  font-weight: 750;
}

.section {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface-soft);
}

.section-heading h3 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.time {
  margin-bottom: 0.3rem;
  color: var(--rosetta);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.subsection {
  padding: 0.95rem;
  border-left: 2px solid var(--rosetta);
  background: rgba(255, 108, 128, 0.04);
}

.subsection-heading h4 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: 0.9rem;
}

.segment-content h4 {
  margin-bottom: 0.2rem;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

:where(.segment-content) .tag[href="#"] {
  border-color: var(--border);
  color: var(--muted-light);
  background: var(--surface-soft);
  cursor: default;
  pointer-events: none;
}

@media (max-width: 680px) {
  .agenda-header {
    align-items: flex-start;
  }

  .session-place,
  .faculty--compact {
    min-width: 0;
    max-width: none;
    text-align: left;
  }
}
