/* Reset for list and link styles */
ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  font-size: var(--m);
  margin: 0;
}

/* List items */
li {
  font-size: var(--m);
  padding-left: 0;
  margin: 0.25em 0;
}

li a {
  text-decoration: none;
  padding-left: 0 !important;
  margin-left: 0;
  display: inline-block;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
}


li a::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='7 7 17 7 17 17'/%3E%3C/svg%3E");
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.35em;
  transform: translateY(-1px);
}

/* Partner logos behind names */
.info-section-partners .partner-item {
  display: inline-flex;
  align-items: center;
}

.info-section-partners .partner-item--logo::after {
  content: "";
  display: inline-block;
  width: 2.5em;
  height: 2.5em;
  margin-left: 0.4em;
  background-image: var(--partner-logo);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

/* ----------------------------- */
/* Responsive grid for INFO pane */
/* ----------------------------- */

/* Container for info sections */
#info-container {
  padding: 0 1em;
}

/* Turn the <nav> inside into a grid */
#info-container > nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 1rem 1.25rem;              /* row gap / column gap */
  align-items: start;
}

/* Each section card */
.info-section {
  margin: 0;                      /* grid handles spacing */
  break-inside: avoid;            /* avoid column breaks (just in case) */
  padding: 0.75rem 0 1rem 0;
}

/* Section title (the first <p>) */
.info-section > p:first-child {
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Sub-list spacing */
.info-section ul {
  display: block;
}

/* ----------------------------- */
/* Breakpoints                   */
/* ----------------------------- */

/* Large desktops */
@media (max-width: 1400px) {
  #info-container > nav {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
  }
}

/* Tablets / small laptops */
@media (max-width: 1024px) {
  #info-container > nav {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
  }
}

/* Tablets portrait / large phones */
@media (max-width: 768px) {
  #info-container > nav {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  /* Slightly tighter titles on mobile */
  .info-section > p:first-child {
    margin-bottom: 0.4rem;
  }
}

/* Phones */
@media (max-width: 520px) {
  #info-container > nav {
    grid-template-columns: 1fr;   /* single column for clean mobile view */
  }

  /* Bigger tap targets */
  li a {
    padding: 0.15rem 0;
  }

  /* Keep things breathable */
  .info-section {
    padding: 0.5rem 0 0.75rem 0;
  }
}
