/* TeliportMe marketing — dark mode.
   js/theme.js sets <html data-theme="dark"> from the device setting or the visitor's choice (nav button).
   How it works: the brand runs on tokens (tokens.css). In dark mode the paper surface turns dark and ink text turns light,
   while the bands that are already dark (.on-ink, the nav bar, the footer) keep their light-mode tokens, so they look
   exactly as they always do. Rules below fix the few places that hard-code a light colour.
   Coral stays a highlight, never a fill; links use the on-dark coral (coral-400). */

/* ---------- tokens: the paper side goes dark ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #12121E;
  --white: #1C1C2D;
  --ink: #ECE9E9;
  --ink-rgb: 236, 233, 233;
  --navy: #FFFFFF;           /* only the hover of an ink button reads it on this side: lighter, like on the ink bands */
  --blue: #9FB4D9;
  --text-on-paper: #ECE9E9;
  --text-on-paper-2: rgba(236, 233, 233, 0.72);
  --text-on-paper-3: rgba(236, 233, 233, 0.54);
  --text-on-ink: #12121E;     /* text on an "ink" surface, which is light on this side (buttons, chips) */
  --text-on-ink-2: rgba(18, 18, 30, 0.72);
  --text-on-ink-3: rgba(18, 18, 30, 0.54);
  --hair-on-paper: rgba(236, 233, 233, 0.14);
  --hair-on-ink: rgba(18, 18, 30, 0.14);
  --hl-on-paper: var(--coral-400);
  --hl-on-ink: var(--coral-700);
  --dk-tint: rgba(236, 233, 233, 0.06);   /* hover and zebra tints that were ink at 3–7% */
}

/* ---------- the bands that are dark already keep their light-mode tokens ---------- */
/* also the cards and panels that are ink in light mode: they stay ink, a step lighter than the dark page;
   and labels drawn on top of a photo (tour tiles, "Explore the tour"), which keep the colours they were drawn for */
:root[data-theme="dark"] :is(.on-ink, .tn, .footer--full, .room, .feats, .tile.is--all, .cmp_card.is--us, .pg-ctacard, .pg-prose pre,
  .docs-help, .ind-steps, .pr-quote, .cd_toast, .sv_toast, .site-header-content, .kg-header-card.kg-style-dark,
  .tile, .pg-tour, .ind-tour_media, .ind-tile_media, .feat_media, .tour-card_frame, .bf_media, .bf_stage) {
  --paper: #F9F7F7;
  --white: #FFFFFF;
  --ink: #1A1A2E;
  --ink-rgb: 26, 26, 46;
  --navy: #16213E;
  --blue: #0F3460;
  --text-on-paper: #1A1A2E;
  --text-on-paper-2: rgba(26, 26, 46, 0.70);
  --text-on-paper-3: rgba(26, 26, 46, 0.50);
  --text-on-ink: #F9F7F7;
  --text-on-ink-2: rgba(249, 247, 247, 0.72);
  --text-on-ink-3: rgba(249, 247, 247, 0.50);
  --hair-on-paper: rgba(26, 26, 46, 0.12);
  --hair-on-ink: rgba(249, 247, 247, 0.14);
  --hl-on-paper: var(--coral-700);
  --hl-on-ink: var(--coral-400);
  --dk-tint: rgba(26, 26, 46, 0.05);
  --color-darkgrey: #1A1A2E;     /* Ghost's dark card colour (blog) */
}

/* the nav's drop-down panels sit on the page, so they follow the page */
:root[data-theme="dark"] .tn .tn-panel {
  --paper: #1C1C2D;
  --white: #24243A;
  --ink: #ECE9E9;
  --ink-rgb: 236, 233, 233;
  --navy: #12121E;
  --text-on-paper: #ECE9E9;
  --text-on-paper-2: rgba(236, 233, 233, 0.72);
  --text-on-paper-3: rgba(236, 233, 233, 0.54);
  --hair-on-paper: rgba(236, 233, 233, 0.14);
  --hl-on-paper: var(--coral-400);
  --dk-tint: rgba(236, 233, 233, 0.06);
}

/* ---------- the theme button in the nav ---------- */
.tn-theme { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: 4px; border-radius: var(--r-button); color: var(--text-on-ink-2); transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.tn-theme:hover { color: var(--paper); background-color: rgba(249, 247, 247, 0.08); }
.tn-theme:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.tn-theme svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tn-theme_sun { display: none; }
[data-theme="dark"] .tn-theme_sun { display: block; }
[data-theme="dark"] .tn-theme_moon { display: none; }
.tn.is-sheet .tn-theme { visibility: hidden; }

/* ink cards keep a hairline so they still read as cards on the dark page */
:root[data-theme="dark"] :is(.cmp_card.is--us, .pg-ctacard, .docs-help, .ind-steps, .pr-quote) { box-shadow: inset 0 0 0 1px rgba(236, 233, 233, 0.10); }

/* ---------- things that hard-code a light-mode colour ---------- */
/* logos are drawn black on paper; on the dark page they are drawn light */
:root[data-theme="dark"] .logos_img { filter: brightness(0) invert(1) opacity(0.72); }
/* a frame from another site (the chat bubble, tours, maps) keeps its own colours: without this the browser paints it an opaque white box */
:root[data-theme="dark"] iframe { color-scheme: light; }
/* Webflow paints every link and heading a fixed near-black; on the dark page they take the text colour around them.
   :where() keeps these at the weight of Webflow's own rules, so any link or heading with its own colour keeps it. */
:where(:root[data-theme="dark"]) a { color: inherit; }
:where(:root[data-theme="dark"]) :is(h1, h2, h3, h4, h5, h6) { color: inherit; }
/* links written as a bare secondary button (no inner .btn_text) */
:root[data-theme="dark"] a.btn_secondary { color: var(--ink); }
/* plan cards on /pricing: the feature names that link to a guide */
:root[data-theme="dark"] .card_pricing a.check-item_text { color: var(--ink); }
/* the tick in the plan lists is a dark drawing */
:root[data-theme="dark"] .check-item_icon { filter: brightness(0) invert(0.92); }
/* Ghost's caption under a post's cover */
:root[data-theme="dark"] .article-image figcaption { color: var(--text-on-paper-3); }
/* Ghost's own colours (blog.css sets them from the brand tokens): links in the on-dark coral, no pink wash */
:root[data-theme="dark"] { --ghost-accent-color: var(--coral-400); --color-wash: var(--white); }
/* the filter drop-downs on /features: a light chevron */
:root[data-theme="dark"] .ff_sel select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23ECE9E9' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* the nav drop-down: a hairline, so its edge shows against the dark bar and page */
:root[data-theme="dark"] .tn .tn-panel { box-shadow: 0 0 0 1px rgba(236, 233, 233, 0.12), 0 24px 48px -16px rgba(0, 0, 0, 0.7); }
