/* Plain words: a tapped term opens a short sheet with the plain answer. DS3 tokens only. */
html .fg-words { display: contents; }
html main button.fg-word.fg-word { all: unset; display: inline !important; cursor: pointer; font: inherit; line-height: inherit; vertical-align: baseline;
  /* DS3 makes every button in main a 48px control with !important; a word inside a sentence is not one */
  min-height: 0 !important; min-width: 0 !important; height: auto !important; width: auto !important; padding: 0 !important;
  border: 0 !important; border-radius: 3px !important; background: none !important; box-shadow: none !important;
  color: inherit !important; font-size: inherit !important; font-weight: inherit !important; outline: none;
  text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  text-decoration-color: var(--fg-secondary, #6b6b6b); -webkit-tap-highlight-color: transparent; }
html main button.fg-word.fg-word:hover { text-decoration-color: currentColor; }
html main button.fg-word.fg-word:focus-visible { outline: 2px solid var(--fg-ink, #1f1f1f) !important; outline-offset: 2px; }
html main button.fg-word.fg-word:active { background: var(--fg-well, #f6f6f4) !important; }

html .fg-word-sheet { position: fixed; inset: auto 0 0 0; margin: 0 auto max(12px, env(safe-area-inset-bottom)); width: min(520px, calc(100% - 24px));
  box-sizing: border-box; padding: 20px 20px 16px; border: 1px solid var(--fg-line, #e8e8e8); border-radius: 16px; background: #fff;
  color: var(--fg-ink, #1f1f1f); box-shadow: 0 12px 40px rgba(0, 0, 0, .18); font-family: inherit; text-align: left; }
html .fg-word-sheet::backdrop { background: rgba(0, 0, 0, .16); }
html .fg-word-sheet .fg-word-term { margin: 0 0 6px; font-size: 18px; line-height: 1.25; font-weight: 700; }
html .fg-word-sheet .fg-word-text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--fg-ink-2, #3d3d3d); }
html .fg-word-sheet button.fg-word-close.fg-word-close { display: block; width: 100%; min-height: 44px; margin: 16px 0 0; padding: 0 16px; box-sizing: border-box;
  border: 1px solid var(--fg-line-strong, #dcdcdc); border-radius: 999px; background: #fff; box-shadow: none; color: var(--fg-ink, #1f1f1f);
  font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; }
html .fg-word-sheet button.fg-word-close.fg-word-close:hover { border-color: var(--fg-ink, #1f1f1f); }
@media (min-width: 760px) { html .fg-word-sheet { margin-bottom: 32px; } }
@media (prefers-reduced-motion: no-preference) {
  html .fg-word-sheet { transition: opacity 200ms cubic-bezier(.2, 0, 0, 1), translate 240ms cubic-bezier(.2, 0, 0, 1), overlay 240ms allow-discrete, display 240ms allow-discrete; }
  html .fg-word-sheet:not(:popover-open) { opacity: 0; translate: 0 16px; }
  @starting-style { html .fg-word-sheet:popover-open { opacity: 0; translate: 0 16px; } }
}
html .fg-word-sheet a.fg-word-all { display: inline-block; margin: 12px 0 0; font-size: 15px; font-weight: 600; color: var(--fg-ink, #1f1f1f); text-underline-offset: 3px; }
/* /words/: one page of every term */
html .fgw .fgw-term { max-width: 44rem; margin: 0 0 1.5rem; scroll-margin-top: 5rem; }
html .fgw .fgw-term h3 { margin: 0 0 .25rem; font-size: 1.0625rem; font-weight: 700; }
html .fgw .fgw-term p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--fg-ink-2, #3d3d3d); }
html .fgw .fgw-term p.fgw-seen { margin-top: .375rem; font-size: .875rem; line-height: 1.5; color: var(--fg-secondary, #6b6b6b); }
html .fgw .fgw-seen a { color: inherit; text-underline-offset: 3px; }
html .fgw .fgw-term:target h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
