/* Tooltips for your site: snippet card, demo on a light and a dark "host page", reference. */

.em { max-width: 960px; }
.em h1 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.em h2 { margin: 30px 0 8px; font-size: 19px; }
.em h3 { margin: 16px 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.em-lede { margin: 4px 0 8px; color: var(--muted); font-size: 14px; max-width: 72ch; line-height: 1.55; }
.em-free { margin: 0 0 18px; display: inline-block; padding: 6px 12px; border-radius: 8px; font-size: 14px;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.em-note { color: var(--muted); font-size: 13.5px; max-width: 75ch; }

.em-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px 16px; }
.em-card h2 { margin-top: 14px; }
.em-code { position: relative; }
.em pre {
  margin: 6px 0; padding: 12px 14px; border-radius: 8px; overflow-x: auto;
  background: var(--bg); border: 1px solid var(--line); font: 13.5px/1.5 var(--code); color: var(--str);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.em-code pre { padding-right: 96px; font-size: 14px; }
.em-copy {
  position: absolute; top: 7px; right: 7px; height: 30px; padding: 0 14px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--gold); color: #1a1400; font-weight: 600;
}
.em-opts { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 14px; }
.em-check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.em-check input { accent-color: var(--gold); width: 16px; height: 16px; }
.em-check select { height: 30px; padding: 0 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); }

.em-demos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.em-demo { position: relative; border-radius: 10px; padding: 30px 18px 10px; font: 15px/1.6 Georgia, "Times New Roman", serif; }
.em-demo p { margin: 0 0 10px; }
/* stand-ins for someone else's site: fixed colors, not the EverlookDB theme */
.em-demo-light { background: #fbfaf7; color: #222; border: 1px solid #ddd8cc; }
.em-demo-light a { color: #1a55b0; }
.em-demo-dark { background: #17181c; color: #ddd; border: 1px solid #33353d; }
.em-demo-dark a { color: #7fb4ff; }
.em-demo-label { position: absolute; top: 8px; left: 18px; font: 600 12px var(--ui); opacity: .6; }
.em-tag { font: 12.5px var(--code); border-bottom: 1px dotted currentColor; cursor: help; }

.em-how { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 14px; }
.em-how dt { font-weight: 600; padding-top: 2px; }
.em-how dd { margin: 0; color: var(--muted); min-width: 0; }
.em-how pre { color: var(--text); }
.em-tablewrap { overflow-x: auto; }
.em-table { font-size: 13.5px; }
.em-table th { position: static; cursor: default; }
.em-table td { white-space: normal; vertical-align: top; max-width: none; }
.em-table code { font: 12.5px var(--code); color: var(--field); white-space: nowrap; }
.em-table tbody tr { cursor: default; }
.em-table tbody tr:hover td { background: none; }

@media (max-width: 760px) {
  .em-demos { grid-template-columns: 1fr; }
  .em-how { grid-template-columns: 1fr; }
  .em-how dd { margin-bottom: 8px; }
}
