/* Center inner column */
.content-page .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Wrapper for conferences page */
.conferences-content {
  width: 100%;
  max-width: 700px;
  text-align: left;
}

/* Local nav */
.conferences-nav {
  margin-bottom: 2rem;
  position: sticky;
  top: 90px;
  z-index: 40;
  background-color: var(--bg-color);
  padding: 0.5rem 0 0.75rem;
}

.conferences-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.conferences-nav a {
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  color: var(--muted-text);
}

.conferences-nav a.is-active {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  font-weight: 600;
}

.conferences-nav a:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

/* Conference sections */
.conference-section {
  margin-top: -4.5rem;
  scroll-margin-top: 70px;
}

.conference-section h2 {
  margin-bottom: 0.75rem;
  font-family: var(--font-family-heading);
  font-size: 1.4rem;
}

.conference-list {
  max-width: 100%;
  margin: 0;
}

.conference-list ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* Single row style */
.conference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  margin-bottom: 0.75rem;
}

.conference-row:last-child {
  margin-bottom: 0;
}

.conference-left {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.conference-roles {
  flex-basis: 100%;
  font-size: 0.82rem;
  color: #374151;
  margin-top: 0.15rem;
}

.conf-name {
  font-family: var(--font-family-heading);
  font-weight: 600;
}

.conf-separator {
  color: var(--muted-text);
}

.conf-location {
  color: var(--muted-text);
  font-size: 0.9rem;
}

.conference-info {
  flex-basis: 100%;
  font-size: 0.8rem;
  color: var(--muted-text);
  margin-top: 0.1rem;
}

.conference-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  justify-content: flex-end;
  white-space: nowrap;
}

/* Link chips */
.conf-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background-color: var(--light-color);
  color: var(--secondary-color);
  font-weight: 500;
}

.conf-link-chip i {
  font-size: 0.8rem;
}

/* Graphs */
.chart-wrapper {
  max-width: 800px;
  width: 100%;
  height: 420px;
  margin-top: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem;
  background-color: #ffffff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

#aimeChart,
#countriesChart {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Multi-line conference location */
.conf-location {
  display: block;           /* ensures it can stack lines under the title */
  margin-top: 0.15rem;
}

.conf-location-line {
  display: block;           /* each line on its own line */
  line-height: 1.25;
}

/* Optional: make the extra lines look slightly secondary */
.conf-location-line + .conf-location-line {
  margin-top: 0.15rem;
  opacity: 0.85;
  font-size: 0.95em;
}
