.info-note {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  vertical-align: middle;
  line-height: 1;
}

.info-note > .info-note__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  margin: 0;
  padding: 2px 0 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-text, #475569);
  font: 700 20px/1 var(--font-sans, system-ui, sans-serif);
  text-decoration: none;
  cursor: pointer;
}

.info-note > .info-note__trigger:hover,
.info-note > .info-note__trigger[aria-expanded="true"] {
  background: #f1f5f9;
  color: var(--foreground, #0f172a);
}

.info-note > .info-note__trigger:focus-visible {
  outline: 2px solid var(--ring, #172d78);
  outline-offset: 2px;
}

.info-note__panel {
  position: fixed;
  inset: auto;
  z-index: 1000;
  width: 340px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  box-sizing: border-box;
  overflow: auto;
  overscroll-behavior: contain;
  margin: auto;
  padding: 14px 16px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  box-shadow: 0 10px 36px rgb(15 23 42 / 16%);
  font: 400 13px/1.6 var(--font-sans, system-ui, sans-serif);
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  overflow-wrap: anywhere;
}

.info-note__panel:popover-open { display: block; }
.info-note__panel::backdrop { background: transparent; }
.info-note__panel > :first-child { margin-top: 0; }
.info-note__panel > :last-child { margin-bottom: 0; }
.info-note__panel p { margin: 0 0 8px; }
.info-note__panel a {
  display: inline;
  min-height: 0;
  padding: 0;
  color: #172d78;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.info-note__panel a:hover { color: #0f766e; }
.info-note__panel strong { color: #0f172a; }
.info-note__panel ul { margin: 8px 0; padding-left: 20px; }

.partner-action-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.partner-action-row > .info-note { order: 2; }
.partner-action-row > :not(.info-note) {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.footer-site-note .info-note__trigger { color: inherit; }
.cat-section-heading:has(> .info-note) { flex-direction: row; align-items: center; gap: 6px; }
.cat-section-heading:has(> .info-note) > h2 { flex: 1 1 auto; min-width: 0; }

/* Native click disclosure remains available before the module loads. */
@supports selector(:popover-open) {
  .info-note__panel:not([data-info-note-positioned]):popover-open {
    inset: 50% auto auto 50%;
    margin: 0;
    transform: translate(-50%, -50%);
  }
}

/* Older browsers still expose the information as ordinary readable text. */
@supports not selector(:popover-open) {
  .info-note { display: inline; }
  .info-note > .info-note__trigger { display: none; }
  .info-note__panel {
    position: static;
    display: block;
    width: auto;
    max-width: 100%;
    max-height: none;
    margin-top: 6px;
    box-shadow: none;
  }
}
