/* Shared base + tooltip styles for the four TV-channel demo pages. */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #FFFFFF;
  color: #0F172A;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* Demo links are inert (clicks are blocked in _shared.js so the iframe
   doesn't scroll). Don't pretend they're clickable. Tooltip anchors
   override this with cursor: help below. */
a:not(.hd-anchor),
[href]:not(.hd-anchor) {
  cursor: default;
}

/* Tooltip anchor — dashed underline, help cursor */
.hd-anchor {
  cursor: help;
  background-image: linear-gradient(transparent calc(100% - 1px), currentColor 1px);
  background-size: 6px 100%;
  background-repeat: repeat-x;
  background-position: bottom;
  opacity: 0.95;
  transition: opacity 0.15s;
}
.hd-anchor:hover { opacity: 1; }

/* Tooltip — no badge, paid-tier look */
.hd-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: 260px;
  background: #FFFFFF;
  color: #1A1A1A;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 6px;
  padding: 12px 14px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.14), 0 1px 3px rgba(15, 23, 42, 0.07);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
}
.hd-tooltip.visible { opacity: 1; transform: translateY(0); }

/* Caret pointing at the anchor. JS sets --arrow-x to the anchor's
   horizontal center relative to the tooltip's left edge, and
   data-placement="top"|"bottom" depending on whether the tooltip
   sits above or below the anchor. */
.hd-tooltip::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  left: var(--arrow-x, 50%);
  margin-left: -6px;
  transform: rotate(45deg);
}
.hd-tooltip[data-placement="top"]::before {
  bottom: -7px;
  border-right: 1px solid rgba(26, 26, 26, 0.08);
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}
.hd-tooltip[data-placement="bottom"]::before {
  top: -7px;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  border-left: 1px solid rgba(26, 26, 26, 0.08);
}
.hd-tooltip[data-placement="right"]::before {
  left: -7px;
  top: var(--arrow-y, 50%);
  margin-top: -6px;
  margin-left: 0;
  border-left: 1px solid rgba(26, 26, 26, 0.08);
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.hd-tooltip-title {
  font-weight: 600;
  margin: 0 0 3px;
  font-size: 13.5px;
  letter-spacing: -0.005em;
}
.hd-tooltip-body { color: rgba(26, 26, 26, 0.72); margin: 0; }
