/* Feature-name info markers (templates/_name_tip.html, static/name-tip.js, names in ph/feature_names.py).
   A subtle (i) after the name. The rundown shows on hover (devices that can hover), on keyboard focus,
   or when tapped open (.open). Escape or a second tap adds .dismissed, which wins over hover and focus
   until the pointer or focus leaves. Colors are theme tokens, so night mode follows. */
.ntip { position: relative; display: inline; white-space: normal; }
/* The feature's name stands out in the brand color; its (i) stays quiet beside it. */
:root { --term: #0B7C83; }   /* feature names: a brighter teal than the dark --pine, so they stand out in day mode too */
@media screen and (prefers-color-scheme: dark) { :root:not([data-theme="day"]) { --term: #7FD6CC; } }
:root[data-theme="night"] { --term: #7FD6CC; }
.ntip .ntip-name { color: var(--term); font-weight: 650; cursor: pointer; }   /* teal: in the palette, but not the buttons' green or blue */
/* Every feature name is teal, in running text and in bold item headings alike (Effie, 2026-11-26). */
b .ntip .ntip-name, strong .ntip .ntip-name { font-weight: inherit; }
.ntip-btn { display: inline-grid; place-items: center; width: 16px; height: 16px; margin: 0 0 0 3px; padding: 0;
  border: 1px solid color-mix(in srgb, var(--muted, #56614F) 55%, transparent); border-radius: 50%; background: transparent;
  color: var(--muted, #56614F); opacity: .9;
  font: italic 700 10px/1 Georgia, "Times New Roman", serif; cursor: help; vertical-align: 2px;
  -webkit-tap-highlight-color: transparent; }
/* A bigger touch target than it looks, without moving the text around it. */
.ntip-btn { position: relative; }
.ntip-btn::after { content: ""; position: absolute; inset: -12px; }
.ntip-btn:hover, .ntip.open .ntip-btn { color: var(--ink, #1C2419); border-color: var(--accent, #46663C); }
.ntip-btn:focus-visible { outline: 2px solid var(--accent, #46663C); outline-offset: 2px; color: var(--ink, #1C2419); }
.ntip-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ntip-pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 60; display: none;
  width: max-content; max-width: min(300px, calc(100vw - 32px)); padding: 10px 12px;
  border: 1px solid var(--line, #DCE3D6); border-radius: 10px; background: var(--surface, #fff); color: var(--ink, #1C2419);
  box-shadow: var(--shadow, 0 8px 28px rgba(0,0,0,.12)); font: 400 13.5px/1.45 var(--font, system-ui, sans-serif);
  font-style: normal; letter-spacing: normal; text-align: left; text-transform: none;
  transform: translateX(var(--ntip-shift, 0px)); visibility: hidden; opacity: 0; transition: opacity .12s; pointer-events: none; }
.ntip-pop b { font-weight: 700; }
.ntip-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 9px; }   /* keeps hover across the gap */
.ntip.up .ntip-pop::before { top: auto; bottom: -9px; }
.ntip.up .ntip-pop { top: auto; bottom: calc(100% + 8px); }
@media (hover: hover) { .ntip:hover .ntip-pop { display: block; visibility: visible; opacity: 1; pointer-events: auto; } }
.ntip-btn:focus-visible + .ntip-pop, .ntip.open .ntip-pop { display: block; visibility: visible; opacity: 1; pointer-events: auto; }
.ntip.dismissed .ntip-pop { display: none; visibility: hidden; opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .ntip-pop { transition: none; } }
@media print { .ntip-btn, .ntip-pop { display: none; } }
/* The rundown keeps its own colors wherever it sits: inside a dark band (the home's privacy section makes bold text
   white) its title was white on the white rundown (Effie 2026-11-28). */
.ntip .ntip-pop, .ntip .ntip-pop b, .ntip .ntip-pop strong, .ntip .ntip-pop span, .ntip .ntip-pop p { color: var(--ink, #1C2419); }
.ntip .ntip-pop a { color: var(--accent, #46663C); }
