/* Shared Editorial help. Text stays in the HTML with or without JavaScript. */
.toggletip {
  --tip-shadow: 0 3px 12px rgb(24 35 29 / 12%);
  --tip-layer: 20;
  --tip-text-size: 15px;
  display: inline;
  white-space: normal;
}

.toggletip > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 5px;
  border: 0;
  border-radius: var(--radius, 6px);
  background: transparent;
  color: var(--muted, #50584f);
  font: 500 var(--tip-text-size)/1.5 var(--sans, sans-serif);
  vertical-align: baseline;
  cursor: pointer;
}

.toggletip > button:hover,
.toggletip > button[aria-expanded="true"] {
  background: var(--cream, #eee9de);
  color: var(--ink, #18231d);
}

.toggletip > button:focus-visible {
  outline: 2px solid var(--ink, #18231d);
  outline-offset: 3px;
}

/* Anchor the no-script fallback to the containing paragraph or table cell. */
p:has(> .toggletip),
th:has(> .toggletip) {
  position: relative;
}

.toggletip-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: -1px;
  padding: 0;
  border: 0;
  /* Keep the closed text from creating a scroll extent inside the 1px box. */
  font-size: 0;
  letter-spacing: 0;
  word-spacing: 0;
  pointer-events: none;
}

.toggletip:not(.is-enhanced):hover > .toggletip-content,
.toggletip:not(.is-enhanced):focus-within > .toggletip-content,
.toggletip.is-open > .toggletip-content {
  top: 100%;
  left: 0;
  z-index: var(--tip-layer);
  display: block;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 24px));
  height: auto;
  overflow: visible;
  clip-path: none;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--rule, #d8d8cb);
  border-radius: var(--radius, 6px);
  background: var(--sheet, #fffdf8);
  box-shadow: var(--tip-shadow);
  color: var(--muted, #50584f);
  font: 400 var(--tip-text-size)/1.5 var(--sans, sans-serif);
  text-align: left;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
  white-space: normal;
  pointer-events: auto;
}

.toggletip:not(.is-enhanced):hover > .toggletip-content,
.toggletip:not(.is-enhanced):focus-within > .toggletip-content {
  transition: clip-path 0s 100ms;
}

.toggletip.is-enhanced.is-open > .toggletip-content {
  position: fixed;
  top: 0;
  left: 12px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}
