/* The Encyclopedia VirginIslandia's map family: one welcome card and one tools-and-layers tour, the same file on
   Maps, Geo and the Lens (Brian, 2026-11-30: "a pop up that quickly explains what maps is geo is lens is. With a
   smaller link to the tours tab. One highlighted tools and layer use tour presented."). Colors come from each site's
   own tokens (--panel, --ink, --muted, --rule, --chip), with fallbacks, so light and dark follow the site. */
.tv-veil { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(6, 20, 26, .5); }
.tv-veil[hidden] { display: none; }
.tv-card { width: min(430px, 100%); max-height: 100%; overflow-y: auto; box-sizing: border-box; background: var(--panel, #fbf8f1); color: var(--ink, #1d2731);
  border-radius: 12px; border-top: 3px solid #b08d3c; box-shadow: 0 14px 44px rgba(0, 0, 0, .35); padding: 14px 16px 12px; font: 14px/1.45 'DM Sans', system-ui, sans-serif; }
.tv-imprint { font: 600 11px 'Cormorant Garamond', Georgia, serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #5c6670); }
.tv-card h2 { font: 500 25px/1.15 'Cormorant Garamond', Georgia, serif; margin: 2px 0 4px; }
.tv-lede { margin: 0 0 10px; color: var(--muted, #5c6670); font-size: 13.5px; }
.tv-sites { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.tv-sites a, .tv-sites div { display: block; text-decoration: none; color: inherit; border: 1px solid var(--rule, #d5d9de); border-radius: 9px; padding: 8px 10px; }
.tv-sites a:hover { border-color: #123f7b; }
.tv-sites .here { border: 2px solid #123f7b; padding: 7px 9px; background: var(--chip, #eef1f5); }
.tv-sites b { font: 600 14.5px 'DM Sans', system-ui, sans-serif; }
.tv-sites i { float: right; font: 600 11px 'DM Sans', system-ui, sans-serif; color: var(--accent, #123f7b); font-style: normal; }
.tv-sites span { display: block; font-size: 12.5px; color: var(--muted, #5c6670); margin-top: 1px; }
.tv-go { display: block; width: 100%; border: 0; background: #123f7b; color: #fff; border-radius: 10px; padding: 11px 14px; font: 600 15px 'DM Sans', system-ui, sans-serif;
  cursor: pointer; text-align: left; }
.tv-go span { display: block; font-weight: 400; font-size: 12.5px; opacity: .85; margin-top: 1px; }
.tv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.tv-skip { border: 1px solid var(--rule, #d5d9de); background: var(--chip, #eef1f5); color: var(--ink, #1d2731); border-radius: 999px; padding: 8px 14px; font: 600 13px 'DM Sans', system-ui, sans-serif; cursor: pointer; min-height: 36px; }
.tv-more { font: 500 12.5px 'DM Sans', system-ui, sans-serif; color: var(--accent, #123f7b); text-decoration: underline; text-underline-offset: 2px; background: none; border: 0; cursor: pointer; padding: 4px 0; }
.tv-note { margin: 10px 0 0; font-size: 11.5px; color: var(--muted, #5c6670); }

/* the tour: a ring around the real button, a card beside it */
.tv-coach { position: fixed; inset: 0; z-index: 61; }
.tv-coach[hidden] { display: none; }
.tv-ring { position: fixed; border: 2px solid #e0b64a; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(6, 20, 26, .55); pointer-events: none;
  transition: left .2s, top .2s, width .2s, height .2s; }
.tv-ring.none { left: 50% !important; top: 50% !important; width: 0 !important; height: 0 !important; border: 0; }
.tv-tip { position: fixed; left: 12px; width: min(360px, calc(100vw - 24px)); box-sizing: border-box; background: var(--panel, #fbf8f1); color: var(--ink, #1d2731);
  border-radius: 12px; border-top: 3px solid #b08d3c; box-shadow: 0 10px 34px rgba(0, 0, 0, .35); padding: 10px 14px 10px; font: 14px/1.45 'DM Sans', system-ui, sans-serif; }
.tv-tip .k { display: flex; align-items: center; gap: 8px; font: 600 11px 'DM Sans', system-ui, sans-serif; letter-spacing: .04em; color: var(--muted, #5c6670); }
.tv-tip .k span { flex: 1; }
.tv-tip .k button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--rule, #d5d9de); background: var(--chip, #eef1f5); color: var(--ink, #1d2731); font-size: 16px; cursor: pointer; }
.tv-tip h3 { font: 600 16px/1.3 'DM Sans', system-ui, sans-serif; margin: 4px 0 3px; }
.tv-tip p { margin: 0 0 8px; font-size: 14px; }
.tv-tip .f { display: flex; align-items: center; gap: 8px; }
.tv-tip .dots { display: flex; gap: 4px; margin-right: auto; }
.tv-tip .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule, #d5d9de); }
.tv-tip .dots i.on { background: #123f7b; }
.tv-tip .f button { border: 1px solid #123f7b; background: none; color: var(--accent, #123f7b); border-radius: 999px; padding: 6px 14px; font: 600 13px 'DM Sans', system-ui, sans-serif; cursor: pointer; min-height: 34px; }
.tv-tip .f button.p { background: #123f7b; color: #fff; }
.tv-tip .f button:disabled { opacity: .35; cursor: default; }
@media (prefers-reduced-motion: reduce) { .tv-ring { transition: none; } }

/* the sheet's head, the same on all three (Brian, 2026-11-30: "Id prefer it look more or less fully the same in the
   menu"): imprint, title, then the light/dark and Hide buttons; the Maps / Geo / Lens switcher; one early-release
   line; search; the tabs. Each site keeps its tabs and panes. On phones the site lands with the sheet folded to its
   title line, the map first. Load this after the site's own styles. */
#panel .tv-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 12px 14px 6px; }
#panel .tv-head > div:first-child { display: contents; }   /* the imprint takes its own line; the buttons sit beside the title */
#panel .tv-head .imprint, #panel .tv-head .by, #panel .tv-head .sub { grid-column: 1 / -1; }
#panel .tv-head h1 { grid-column: 1; grid-row: 2; }
#panel .tv-head .tv-hbtns { grid-column: 2; grid-row: 2; }
#panel .imprint { display: block; font: 600 11px 'Cormorant Garamond', Georgia, serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; padding: 0; }
#panel h1 { font: 500 28px/1.1 'Cormorant Garamond', Georgia, serif; margin: 2px 0 0; letter-spacing: .01em; text-wrap: balance; }
#panel .by { font: italic 13px Cambria, Georgia, serif; color: var(--muted); margin: 3px 0 0; }
#panel .tv-hbtns { display: flex; gap: 6px; flex: none; }
#panel .tv-hbtns button { min-height: 34px; min-width: 34px; margin: 0; border: 1px solid var(--rule); background: var(--chip); color: var(--ink); border-radius: 8px;
  font: 600 13px 'DM Sans', system-ui, sans-serif; padding: 0 12px; cursor: pointer; }
#panel .tv-hbtns .tv-theme { padding: 0; font-size: 15px; }
#panel nav.family { display: flex; gap: 2px; padding: 3px; margin: 4px 14px 8px; background: var(--chip); border: 1px solid var(--rule); border-radius: 999px; }
#panel nav.family a { flex: 1; text-align: center; text-decoration: none; color: var(--ink); padding: 7px 8px; border-radius: 999px; font: 600 13px 'DM Sans', system-ui, sans-serif; border: 0; }
#panel nav.family a[aria-current="page"] { background: #123f7b; color: #fff; }
#panel nav.family a:not([aria-current]):hover { background: var(--panel); }
#panel .tv-early { display: block; box-sizing: border-box; width: calc(100% - 28px); margin: 0 14px 8px; padding: 6px 9px; border-radius: 8px; background: var(--chip);
  border: 1px solid var(--rule); font: 12px/1.4 'DM Sans', system-ui, sans-serif; color: var(--muted); text-align: left; }
#panel button.tv-early { cursor: pointer; }
#panel .tv-early b { color: var(--ink); }
@media (max-width: 640px) {
  #panel .by, #panel .sub { display: none; }
  #panel .tv-head { padding: 10px 14px 6px; }
  #panel h1 { font-size: 26px; }
  #panel input[type="search"] { font-size: 16px; }   /* under 16px, iPhone zooms the page on focus */
  #panel.min .imprint, #panel.min nav.family, #panel.min .tv-early { display: none; }
  #panel.min .tv-head { padding: 8px 14px 10px; align-items: center; }
}

/* where each layer covers: a chip beside its name; a layer with nothing on screen is grayed, with a way there */
.tv-cov { display: inline-block; vertical-align: 1px; margin-left: 6px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--rule, #d5d9de);
  font: 600 10px/16px 'DM Sans', system-ui, sans-serif; letter-spacing: .03em; color: var(--muted, #5c6670); white-space: nowrap; font-style: normal; text-transform: none; }
.tv-cov.part { border-color: #c79a2e; color: var(--ink, #1d2731); background: rgba(199, 154, 46, .14); }
.tv-out > label, .tv-out > span, .tv-out > .tv-dim { opacity: .5; }
.tv-there { grid-column: 2 / -1; justify-self: start; display: block; margin: 2px 0 2px 24px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rule, #d5d9de);
  background: var(--chip, #eef1f5); color: var(--accent, #123f7b); font: 600 11.5px 'DM Sans', system-ui, sans-serif; cursor: pointer; min-height: 26px; }
.lyr .tv-there { margin-left: 0; }
.tv-there[hidden] { display: none; }
