/* "How this page works" modal. Pico styles <dialog> + <article>; this only
   adds the big corner close button, a width cap, and in-modal scrolling. */

#howModal > article {
  position: relative;
  width: min(var(--modal-w, 90vw), 36rem);
  max-height: var(--modal-h, 85vh);
  overflow-y: auto;
  margin: 0;
  padding: 2rem 1.75rem 1.5rem;
}

#howModal h2 {
  font-size: 1.3rem;
  margin: 0 2.5rem 1rem 0;
}

#howModal ul {
  margin-bottom: 0;
}

#howModal li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

#howModal .size-note {
  margin: 0 2.5rem 1rem 0;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--pico-primary);
  background: var(--pico-card-sectioning-background-color);
  font-size: 0.9rem;
}

/* Large × in the top-right corner. Overrides Pico's filled button look. */
#howModal .modal-x {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  line-height: 1;
  color: #555555;
  background: transparent;
  border: none;
  box-shadow: none;
}

#howModal .modal-x:hover,
#howModal .modal-x:focus {
  color: #000000;
  background: transparent;
}
