/* ToolGuest — shared YouTube thumbnail engine.
 *
 * One stylesheet for /thumbnail-downloader and its eight specialised landing
 * pages. Every page mounts the same markup and the same engine
 * (/assets/thumbnail-tool.js) with a different config, so a change here reaches
 * all nine pages at once.
 *
 * Class prefix `td-` keeps these rules out of the way of the page-level
 * Tailwind utilities, and every rule ships its own light and dark values so the
 * three dark-mode conventions on this site (html.dark, html[data-theme="dark"],
 * body.dark) all work without per-page patches.
 */

.td-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.td-wrap--narrow { max-width: 880px; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.td-hero { padding: 40px 0 26px; text-align: center; }
.td-badge {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 18px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(24, 24, 27, .12); background: rgba(255, 255, 255, .7);
  font-size: 12px; font-weight: 600; color: #52525b;
}
.td-badge .td-tick { color: #10b981; font-weight: 800; }
.td-h1 {
  margin: 0 auto; max-width: 940px; text-wrap: balance;
  font-size: clamp(2rem, 5.2vw, 3.35rem); font-weight: 800;
  line-height: 1.07; letter-spacing: -.032em; color: #18181b;
}
.td-h1 .td-grad {
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.td-lede {
  margin: 18px auto 0; max-width: 720px; text-wrap: pretty;
  font-size: 1.02rem; line-height: 1.68; color: #52525b;
}
.td-lede strong { color: #18181b; font-weight: 650; }
.td-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.td-btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 12px;
  padding: 12px 22px; font-size: 14px; font-weight: 650; text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.td-btn--primary { background: #18181b; color: #fff; box-shadow: 0 12px 26px -12px rgba(24, 24, 27, .55); }
.td-btn--primary:hover { transform: translateY(-1px); background: #27272a; }
.td-btn--ghost { border: 1px solid rgba(24, 24, 27, .14); background: rgba(255, 255, 255, .7); color: #3f3f46; }
.td-btn--ghost:hover { background: #fff; }
.td-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  margin-top: 22px; font-size: 12px; color: #71717a;
}
.td-trust span { display: inline-flex; align-items: center; gap: 6px; }
.td-trust svg { color: #10b981; }

/* ── Tool shell ───────────────────────────────────────────────────────── */
.td-shell {
  border: 1px solid rgba(24, 24, 27, .12); border-radius: 22px; overflow: hidden;
  background: rgba(255, 255, 255, .74); backdrop-filter: blur(18px);
  box-shadow: 0 26px 60px -34px rgba(24, 24, 27, .35);
}
.td-pane { padding: 18px; border-bottom: 1px solid rgba(24, 24, 27, .08); }
.td-pane:last-child { border-bottom: 0; }
.td-label {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: #a1a1aa;
}
.td-field { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.td-input {
  flex: 1 1 auto; width: 100%; border-radius: 12px; padding: 12px 14px;
  border: 1px solid rgba(24, 24, 27, .14); background: #fff; color: #18181b;
  font-family: ui-monospace, "JetBrains Mono", monospace; font-size: 13.5px;
  outline: none; transition: border-color .16s ease, box-shadow .16s ease;
}
.td-input::placeholder { color: #a1a1aa; }
.td-input:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99, 102, 241, .18); }
.td-go {
  flex: 0 0 auto; border: 0; border-radius: 12px; padding: 12px 20px; cursor: pointer;
  background: #18181b; color: #fff; font-size: 14px; font-weight: 650;
  transition: background .16s ease;
}
.td-go:hover { background: #3f3f46; }
.td-samples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.td-chip {
  border: 1px solid rgba(24, 24, 27, .14); border-radius: 9px; padding: 6px 10px;
  background: transparent; color: #52525b; font-size: 11.5px; font-weight: 650;
  cursor: pointer; transition: background .16s ease, color .16s ease;
}
.td-chip:hover { background: rgba(24, 24, 27, .06); color: #18181b; }
.td-id { font-family: ui-monospace, monospace; font-size: 11px; color: #a1a1aa; }
.td-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 18px; border-bottom: 1px solid rgba(24, 24, 27, .08);
}
.td-tabs { display: flex; gap: 4px; border-radius: 12px; background: rgba(24, 24, 27, .06); padding: 4px; }
.td-tab {
  border: 0; border-radius: 9px; padding: 7px 14px; cursor: pointer;
  background: transparent; color: #71717a; font-size: 12.5px; font-weight: 650;
  white-space: nowrap; transition: background .16s ease, color .16s ease;
}
.td-tab:hover { color: #18181b; }
.td-tab[aria-selected="true"] { background: #fff; color: #18181b; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.td-format { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; color: #52525b; }
.td-error {
  display: flex; gap: 8px; align-items: flex-start; padding: 12px 18px;
  border-bottom: 1px solid rgba(244, 63, 94, .22); background: rgba(244, 63, 94, .08);
  font-size: 13px; color: #be123c;
}
.td-error[hidden] { display: none; }
.td-results { padding: 16px; }
.td-empty {
  border: 1px dashed rgba(24, 24, 27, .22); border-radius: 16px; padding: 44px 20px;
  text-align: center;
}
.td-empty svg { margin: 0 auto; color: #a1a1aa; }
.td-empty p { margin: 12px 0 0; font-size: 14px; font-weight: 650; color: #18181b; }
.td-empty span { display: block; margin-top: 4px; font-size: 12px; color: #71717a; }
.td-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .td-grid { grid-template-columns: 1fr 1fr; } }
.td-card {
  overflow: hidden; border: 1px solid rgba(24, 24, 27, .12); border-radius: 16px;
  background: #fff; transition: opacity .2s ease, border-color .2s ease;
}
.td-card[data-missing="true"] { opacity: .55; }
.td-card__img { position: relative; aspect-ratio: 16 / 9; background: #f4f4f5; }
.td-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.td-card__badge {
  position: absolute; left: 10px; top: 10px; border-radius: 999px; padding: 4px 9px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6); color: #fff;
  font-size: 9.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.td-card__fallback {
  position: absolute; inset: 0; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; text-align: center;
  background: rgba(244, 244, 245, .96); font-size: 11.5px; color: #71717a;
}
.td-card[data-missing="true"] .td-card__fallback { display: flex; }
.td-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; }
.td-card__name { font-size: 13px; font-weight: 700; color: #18181b; }
.td-card__note { display: block; margin-top: 2px; font-size: 11px; color: #71717a; }
.td-card__actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.td-icon-btn {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid rgba(24, 24, 27, .14); background: transparent; color: #52525b;
  cursor: pointer; transition: background .16s ease, color .16s ease;
}
.td-icon-btn:hover { background: rgba(24, 24, 27, .06); color: #18181b; }
.td-dl {
  display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 9px;
  padding: 8px 12px; cursor: pointer; background: #18181b; color: #fff;
  font-size: 12px; font-weight: 650; transition: background .16s ease;
}
.td-dl:hover { background: #3f3f46; }
.td-dl:disabled { cursor: not-allowed; opacity: .45; }
.td-note { margin: 12px 0 0; text-align: center; font-size: 11px; color: #a1a1aa; }

/* ── Workflow bar (companion tools) ───────────────────────────────────── */
.td-workflow {
  margin-top: 26px; border: 1px solid rgba(99, 102, 241, .26); border-radius: 20px;
  padding: 18px 20px; background: linear-gradient(135deg, rgba(99, 102, 241, .09), rgba(6, 182, 212, .06));
}
.td-workflow__title { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -.015em; color: #18181b; }
.td-workflow__sub { margin: 4px 0 0; font-size: 12.5px; color: #52525b; }
.td-wf-grid { display: grid; gap: 10px; margin-top: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .td-wf-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .td-wf-grid { grid-template-columns: repeat(4, 1fr); } }
.td-wf-card {
  display: block; border: 1px solid rgba(24, 24, 27, .10); border-radius: 13px;
  padding: 12px 13px; background: rgba(255, 255, 255, .78); text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.td-wf-card:hover { transform: translateY(-2px); border-color: rgba(99, 102, 241, .45); box-shadow: 0 14px 30px -20px rgba(79, 70, 229, .5); }
.td-wf-card b { display: block; font-size: 12.5px; font-weight: 700; color: #18181b; }
.td-wf-card span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.45; color: #71717a; }

/* ── Content sections ─────────────────────────────────────────────────── */
.td-section { margin-top: 54px; }
.td-eyebrow {
  display: inline-block; margin-bottom: 8px; font-size: .72rem; font-weight: 800;
  letter-spacing: .17em; text-transform: uppercase; color: #6366f1;
}
.td-h2 {
  margin: 0; font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 800;
  letter-spacing: -.028em; line-height: 1.16; color: #18181b;
}
.td-h3 { margin: 0; font-size: 1rem; font-weight: 750; letter-spacing: -.015em; color: #18181b; }
.td-prose p { margin: 12px 0 0; font-size: .975rem; line-height: 1.78; color: #52525b; }
.td-prose p:first-child { margin-top: 14px; }
.td-prose strong { color: #18181b; font-weight: 650; }
.td-prose a { color: #4f46e5; text-decoration: none; border-bottom: 1px solid rgba(99, 102, 241, .35); }
.td-prose code {
  font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .86em;
  background: rgba(99, 102, 241, .1); color: #4f46e5; padding: .1em .4em;
  border-radius: .35em; border: 1px solid rgba(99, 102, 241, .18); word-break: break-word;
}

/* Instant answer */
.td-answer {
  margin-top: 14px; border: 1px solid rgba(99, 102, 241, .3); border-radius: 18px;
  padding: 20px 22px; background: linear-gradient(135deg, rgba(99, 102, 241, .1), rgba(34, 211, 238, .06));
}
.td-answer__label {
  display: inline-flex; align-items: center; gap: 6px; font-size: .71rem;
  font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: #4f46e5;
}
.td-answer p { margin: 8px 0 0; font-size: 1.01rem; line-height: 1.72; color: #3f3f46; }

/* Steps */
.td-steps { display: grid; gap: 18px; margin-top: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .td-steps { grid-template-columns: repeat(3, 1fr); } }
.td-step { display: flex; gap: 12px; }
.td-step__n {
  display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px;
  border-radius: 999px; background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-size: 13px; font-weight: 800;
}
.td-step p { margin: 5px 0 0; font-size: .93rem; line-height: 1.65; color: #52525b; }

/* Tables */
.td-tablewrap {
  margin-top: 20px; overflow-x: auto; border: 1px solid rgba(24, 24, 27, .1);
  border-radius: 16px; background: rgba(255, 255, 255, .7);
}
.td-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .9rem; text-align: left; }
.td-table th, .td-table td { padding: 13px 16px; border-bottom: 1px solid rgba(24, 24, 27, .08); vertical-align: top; }
.td-table tbody tr:last-child th, .td-table tbody tr:last-child td { border-bottom: 0; }
.td-table thead th {
  font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #71717a;
}
.td-table th[scope="row"] { font-weight: 650; color: #27272a; }
.td-table code {
  font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .86em;
  background: rgba(99, 102, 241, .1); color: #4f46e5; padding: .08em .35em; border-radius: .3em;
}
.td-yes { color: #059669; font-weight: 650; }
.td-no { color: #71717a; }

/* FAQ */
.td-faq { display: grid; gap: 10px; margin-top: 20px; }
.td-faq details {
  border: 1px solid rgba(24, 24, 27, .1); border-radius: 14px; padding: 0 18px;
  background: rgba(255, 255, 255, .7);
}
.td-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 0; cursor: pointer; list-style: none; font-size: .95rem;
  font-weight: 700; letter-spacing: -.01em; color: #18181b;
}
.td-faq summary::-webkit-details-marker { display: none; }
.td-faq summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; color: #a1a1aa; }
.td-faq details[open] summary::after { content: "\2013"; }
.td-faq p { margin: 0 0 15px; font-size: .93rem; line-height: 1.72; color: #52525b; }
.td-faq code {
  font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .86em;
  background: rgba(99, 102, 241, .1); color: #4f46e5; padding: .08em .35em; border-radius: .3em;
}

/* Cluster link grid */
.td-cluster { display: grid; gap: 10px; margin-top: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .td-cluster { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .td-cluster { grid-template-columns: repeat(3, 1fr); } }
.td-cluster a {
  display: block; border: 1px solid rgba(24, 24, 27, .1); border-radius: 13px;
  padding: 13px 15px; background: rgba(255, 255, 255, .72); text-decoration: none;
  transition: transform .16s ease, border-color .16s ease;
}
.td-cluster a:hover { transform: translateY(-2px); border-color: rgba(99, 102, 241, .45); }
.td-cluster b { display: block; font-size: 13px; font-weight: 700; color: #18181b; }
.td-cluster span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.5; color: #71717a; }
.td-cluster a[aria-current="page"] { border-color: rgba(99, 102, 241, .5); background: rgba(99, 102, 241, .07); }

/* ── Dark mode: all three conventions ─────────────────────────────────── */
html.dark body, html[data-theme="dark"] body, body.dark {
  color-scheme: dark;
}
html.dark .td-badge, html[data-theme="dark"] .td-badge, body.dark .td-badge {
  border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #a1a1aa;
}
html.dark .td-h1, html[data-theme="dark"] .td-h1, body.dark .td-h1 { color: #fafafa; }
html.dark .td-lede, html[data-theme="dark"] .td-lede, body.dark .td-lede { color: #a1a1aa; }
html.dark .td-lede strong, html[data-theme="dark"] .td-lede strong, body.dark .td-lede strong { color: #f4f4f5; }
html.dark .td-btn--primary, html[data-theme="dark"] .td-btn--primary, body.dark .td-btn--primary {
  background: #fff; color: #18181b; box-shadow: 0 12px 26px -14px rgba(255, 255, 255, .35);
}
html.dark .td-btn--primary:hover, html[data-theme="dark"] .td-btn--primary:hover, body.dark .td-btn--primary:hover { background: #e4e4e7; }
html.dark .td-btn--ghost, html[data-theme="dark"] .td-btn--ghost, body.dark .td-btn--ghost {
  border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #d4d4d8;
}
html.dark .td-btn--ghost:hover, html[data-theme="dark"] .td-btn--ghost:hover, body.dark .td-btn--ghost:hover { background: rgba(255, 255, 255, .1); }
html.dark .td-trust, html[data-theme="dark"] .td-trust, body.dark .td-trust { color: #71717a; }

html.dark .td-shell, html[data-theme="dark"] .td-shell, body.dark .td-shell {
  border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .035);
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, .8);
}
html.dark .td-pane, html[data-theme="dark"] .td-pane, body.dark .td-pane { border-bottom-color: rgba(255, 255, 255, .07); }
html.dark .td-controls, html[data-theme="dark"] .td-controls, body.dark .td-controls { border-bottom-color: rgba(255, 255, 255, .07); }
html.dark .td-label, html[data-theme="dark"] .td-label, body.dark .td-label { color: #71717a; }
html.dark .td-input, html[data-theme="dark"] .td-input, body.dark .td-input {
  border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #fafafa;
}
html.dark .td-go, html[data-theme="dark"] .td-go, body.dark .td-go { background: #fff; color: #18181b; }
html.dark .td-go:hover, html[data-theme="dark"] .td-go:hover, body.dark .td-go:hover { background: #e4e4e7; }
html.dark .td-chip, html[data-theme="dark"] .td-chip, body.dark .td-chip {
  border-color: rgba(255, 255, 255, .12); color: #a1a1aa;
}
html.dark .td-chip:hover, html[data-theme="dark"] .td-chip:hover, body.dark .td-chip:hover { background: rgba(255, 255, 255, .08); color: #fff; }
html.dark .td-tabs, html[data-theme="dark"] .td-tabs, body.dark .td-tabs { background: rgba(255, 255, 255, .06); }
html.dark .td-tab, html[data-theme="dark"] .td-tab, body.dark .td-tab { color: #a1a1aa; }
html.dark .td-tab:hover, html[data-theme="dark"] .td-tab:hover, body.dark .td-tab:hover { color: #fff; }
html.dark .td-tab[aria-selected="true"], html[data-theme="dark"] .td-tab[aria-selected="true"], body.dark .td-tab[aria-selected="true"] {
  background: rgba(255, 255, 255, .12); color: #fff;
}
html.dark .td-format, html[data-theme="dark"] .td-format, body.dark .td-format { color: #a1a1aa; }
html.dark .td-error, html[data-theme="dark"] .td-error, body.dark .td-error { color: #fda4af; }
html.dark .td-empty, html[data-theme="dark"] .td-empty, body.dark .td-empty { border-color: rgba(255, 255, 255, .14); }
html.dark .td-empty p, html[data-theme="dark"] .td-empty p, body.dark .td-empty p { color: #fafafa; }
html.dark .td-empty span, html[data-theme="dark"] .td-empty span, body.dark .td-empty span { color: #71717a; }
html.dark .td-card, html[data-theme="dark"] .td-card, body.dark .td-card {
  border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04);
}
html.dark .td-card__img, html[data-theme="dark"] .td-card__img, body.dark .td-card__img { background: #000; }
html.dark .td-card__fallback, html[data-theme="dark"] .td-card__fallback, body.dark .td-card__fallback {
  background: rgba(0, 0, 0, .78); color: #a1a1aa;
}
html.dark .td-card__name, html[data-theme="dark"] .td-card__name, body.dark .td-card__name { color: #fafafa; }
html.dark .td-card__note, html[data-theme="dark"] .td-card__note, body.dark .td-card__note { color: #71717a; }
html.dark .td-icon-btn, html[data-theme="dark"] .td-icon-btn, body.dark .td-icon-btn {
  border-color: rgba(255, 255, 255, .12); color: #a1a1aa;
}
html.dark .td-icon-btn:hover, html[data-theme="dark"] .td-icon-btn:hover, body.dark .td-icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
html.dark .td-dl, html[data-theme="dark"] .td-dl, body.dark .td-dl { background: #fff; color: #18181b; }
html.dark .td-dl:hover, html[data-theme="dark"] .td-dl:hover, body.dark .td-dl:hover { background: #e4e4e7; }

html.dark .td-workflow, html[data-theme="dark"] .td-workflow, body.dark .td-workflow {
  border-color: rgba(129, 140, 248, .28);
}
html.dark .td-workflow__title, html[data-theme="dark"] .td-workflow__title, body.dark .td-workflow__title { color: #fafafa; }
html.dark .td-workflow__sub, html[data-theme="dark"] .td-workflow__sub, body.dark .td-workflow__sub { color: #a1a1aa; }
html.dark .td-wf-card, html[data-theme="dark"] .td-wf-card, body.dark .td-wf-card {
  border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05);
}
html.dark .td-wf-card b, html[data-theme="dark"] .td-wf-card b, body.dark .td-wf-card b { color: #fafafa; }
html.dark .td-wf-card span, html[data-theme="dark"] .td-wf-card span, body.dark .td-wf-card span { color: #a1a1aa; }

html.dark .td-eyebrow, html[data-theme="dark"] .td-eyebrow, body.dark .td-eyebrow { color: #818cf8; }
html.dark .td-h2, html[data-theme="dark"] .td-h2, body.dark .td-h2 { color: #fafafa; }
html.dark .td-h3, html[data-theme="dark"] .td-h3, body.dark .td-h3 { color: #fafafa; }
html.dark .td-prose p, html[data-theme="dark"] .td-prose p, body.dark .td-prose p { color: #a1a1aa; }
html.dark .td-prose strong, html[data-theme="dark"] .td-prose strong, body.dark .td-prose strong { color: #f4f4f5; }
html.dark .td-prose a, html[data-theme="dark"] .td-prose a, body.dark .td-prose a { color: #a5b4fc; }
html.dark .td-prose code, html[data-theme="dark"] .td-prose code, body.dark .td-prose code {
  background: rgba(129, 140, 248, .14); color: #c7d2fe; border-color: rgba(129, 140, 248, .24);
}
html.dark .td-answer__label, html[data-theme="dark"] .td-answer__label, body.dark .td-answer__label { color: #a5b4fc; }
html.dark .td-answer p, html[data-theme="dark"] .td-answer p, body.dark .td-answer p { color: #d4d4d8; }
html.dark .td-step p, html[data-theme="dark"] .td-step p, body.dark .td-step p { color: #a1a1aa; }
html.dark .td-tablewrap, html[data-theme="dark"] .td-tablewrap, body.dark .td-tablewrap {
  border-color: rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .03);
}
html.dark .td-table th, html[data-theme="dark"] .td-table th, body.dark .td-table th,
html.dark .td-table td, html[data-theme="dark"] .td-table td, body.dark .td-table td {
  border-bottom-color: rgba(255, 255, 255, .07);
}
html.dark .td-table th[scope="row"], html[data-theme="dark"] .td-table th[scope="row"], body.dark .td-table th[scope="row"] { color: #e4e4e7; }
html.dark .td-yes, html[data-theme="dark"] .td-yes, body.dark .td-yes { color: #34d399; }
html.dark .td-faq details, html[data-theme="dark"] .td-faq details, body.dark .td-faq details {
  border-color: rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .03);
}
html.dark .td-faq summary, html[data-theme="dark"] .td-faq summary, body.dark .td-faq summary { color: #fafafa; }
html.dark .td-faq p, html[data-theme="dark"] .td-faq p, body.dark .td-faq p { color: #a1a1aa; }
html.dark .td-cluster a, html[data-theme="dark"] .td-cluster a, body.dark .td-cluster a {
  border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04);
}
html.dark .td-cluster b, html[data-theme="dark"] .td-cluster b, body.dark .td-cluster b { color: #fafafa; }
html.dark .td-cluster span, html[data-theme="dark"] .td-cluster span, body.dark .td-cluster span { color: #a1a1aa; }
html.dark .td-cluster a[aria-current="page"], html[data-theme="dark"] .td-cluster a[aria-current="page"], body.dark .td-cluster a[aria-current="page"] {
  border-color: rgba(129, 140, 248, .5); background: rgba(129, 140, 248, .12);
}

/* Market / entity cards. Six cards naming the countries areaServed declares. */
.td-markets { display: grid; gap: 12px; margin-top: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .td-markets { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .td-markets { grid-template-columns: repeat(3, 1fr); } }
.td-market {
  border: 1px solid rgba(24, 24, 27, .1); border-radius: 13px; padding: 15px 17px;
  background: rgba(255, 255, 255, .72);
}
.td-market__place { display: block; font-size: 12px; font-weight: 700; letter-spacing: .01em; color: #18181b; }
.td-market p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; color: #71717a; }

html.dark .td-market, html[data-theme="dark"] .td-market, body.dark .td-market {
  border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04);
}
html.dark .td-market__place, html[data-theme="dark"] .td-market__place, body.dark .td-market__place { color: #fafafa; }
html.dark .td-market p, html[data-theme="dark"] .td-market p, body.dark .td-market p { color: #a1a1aa; }
