/* Vital SEO | Backlink Overview Generator */
/* Dedicated animated hero artwork */

.backlink-hero-art {
  position: relative;
  width: 100%;
  min-height: 290px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.backlink-hero-network {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1.55;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 50%, rgba(25, 145, 221, .16), transparent 52%),
    linear-gradient(145deg, rgba(27, 128, 209, .10), rgba(23, 195, 185, .08));
}

.backlink-hero-node {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #27a7db;
  border: 3px solid rgba(255, 255, 255, .85);
  box-shadow: 0 0 0 7px rgba(39, 167, 219, .12);
  transform: translate(-50%, -50%);
  animation: backlink-node-pulse 3.8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  z-index: 2;
}

.backlink-hero-node.is-target {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #1688d5, #16c5b8);
  box-shadow: 0 0 0 12px rgba(22, 136, 213, .12);
  z-index: 3;
}

.backlink-hero-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(39, 167, 219, .35), #19b9bd);
  transform-origin: left center;
  z-index: 1;
}

.backlink-hero-line::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  top: -3px;
  left: 0;
  border-radius: 50%;
  background: #16c5b8;
  box-shadow: 0 0 12px rgba(22, 197, 184, .8);
  animation: backlink-flow 3s linear infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes backlink-flow {
  from { left: 0; }
  to { left: calc(100% - 8px); }
}

@keyframes backlink-node-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.22); }
}

[data-theme="dark"] .backlink-hero-network {
  background:
    radial-gradient(circle at 50% 50%, rgba(25, 145, 221, .23), transparent 55%),
    linear-gradient(145deg, rgba(10, 45, 80, .72), rgba(10, 78, 86, .38));
}

[data-theme="dark"] .backlink-hero-node {
  border-color: rgba(15, 37, 61, .95);
}

@media (max-width: 700px) {
  .backlink-hero-art { min-height: 210px; }
  .backlink-hero-network { width: min(100%, 360px); }
}

@media (prefers-reduced-motion: reduce) {
  .backlink-hero-node,
  .backlink-hero-line::after {
    animation: none !important;
  }
}


/* Backlink Overview Generator | Import and dashboard */

.backlink-generator-section {
  --backlink-border: rgba(93, 127, 157, .22);
  --backlink-panel: #f5f9fd;
  --backlink-card: #ffffff;
  --backlink-muted: #52677c;
  --backlink-accent: #1688d5;
}

.backlink-generator-section .tool-shell {
  position: relative;
}

.backlink-upload-panel,
.backlink-summary-card,
.backlink-chart-card {
  border: 1px solid var(--backlink-border);
  border-radius: 26px;
  background: var(--backlink-card);
  box-sizing: border-box;
}

.backlink-upload-panel {
  margin-top: 24px;
  padding: clamp(20px, 3vw, 32px);
}

.backlink-upload-panel {
  display: grid;
  gap: 14px;
  background: var(--backlink-panel);
}

.backlink-upload-panel h3,
.backlink-dashboard h3 {
  margin: 0 0 8px;
}

.backlink-upload-panel label {
  font-weight: 650;
}

.backlink-upload-panel input[type="file"] {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid var(--backlink-border);
  border-radius: 16px;
  background: var(--backlink-card);
  color: inherit;
  font: inherit;
}

.backlink-upload-panel input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 10px 16px;
  border: 1px solid var(--backlink-border);
  border-radius: 12px;
  background: var(--backlink-panel);
  color: inherit;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.backlink-upload-panel .btn {
  justify-self: start;
  max-width: 100%;
  white-space: normal;
}

#backlinkStatus {
  margin: 0;
  color: var(--backlink-muted);
  overflow-wrap: anywhere;
}

.backlink-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0;
}

.backlink-table-scroll table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  text-align: left;
}

.backlink-table-scroll th,
.backlink-table-scroll td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--backlink-border);
  vertical-align: top;
}

.backlink-table-scroll th {
  background: var(--backlink-panel);
  font-weight: 700;
}

.backlink-table-scroll tbody tr:last-child td {
  border-bottom: 0;
}

.backlink-dashboard {
  margin-top: 36px;
}

.backlink-dashboard[hidden] {
  display: none !important;
}

.backlink-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 28px;
}

.backlink-summary-card {
  padding: 22px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.backlink-summary-card span {
  color: var(--backlink-muted);
  font-size: .95rem;
}

.backlink-summary-card strong {
  color: var(--backlink-accent);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.backlink-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.backlink-chart-card {
  min-width: 0;
  padding: clamp(18px, 2.5vw, 28px);
}

.backlink-chart-card h4 {
  margin: 0 0 20px;
  line-height: 1.4;
}

.backlink-chart-card > div {
  min-width: 0;
  min-height: 220px;
  overflow-wrap: anywhere;
}

.backlink-generator-section :is(
  input[type="file"],
  button
):focus-visible {
  outline: 3px solid var(--backlink-accent);
  outline-offset: 3px;
}

[data-theme="dark"] .backlink-generator-section {
  --backlink-border: rgba(139, 178, 211, .26);
  --backlink-panel: #102b43;
  --backlink-card: #142f49;
  --backlink-muted: #b7cce0;
  --backlink-accent: #65c9f5;
}

@media (max-width: 900px) {
  .backlink-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .backlink-chart-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .backlink-upload-panel .btn {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 420px) {
  .backlink-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .backlink-upload-panel input[type="file"]::file-selector-button {
    margin-bottom: 8px;
  }
}


/* Backlink Overview Generator | Visualisation styling */

.backlink-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.backlink-bar-row {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.backlink-bar-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: .9rem;
}

.backlink-bar-heading span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.backlink-bar-heading strong {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: var(--backlink-accent);
}

.backlink-bar-track {
  width: 100%;
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--backlink-panel);
  border: 1px solid var(--backlink-border);
  box-sizing: border-box;
}

.backlink-bar-fill {
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1688d5, #16c5b8);
  transform-origin: left center;
  animation: backlink-bar-reveal .65s ease-out both;
}

.backlink-chart-empty {
  padding: 30px 18px;
  margin: 0;
  border-radius: 16px;
  background: var(--backlink-panel);
  color: var(--backlink-muted);
  text-align: center;
}

.backlink-chart-note {
  margin: 20px 0 0;
  color: var(--backlink-muted);
  font-size: .85rem;
  line-height: 1.6;
}

@keyframes backlink-bar-reveal {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

[data-theme="dark"] .backlink-bar-fill {
  background: linear-gradient(90deg, #369de5, #20cdbf);
}

@media (max-width: 700px) {
  .backlink-bars {
    gap: 16px;
  }

  .backlink-bar-heading {
    font-size: .85rem;
  }

  .backlink-bar-track {
    height: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .backlink-bar-fill {
    animation: none !important;
  }
}


/* Full-width expandable backlink reporting sections */
.backlink-chart-card > summary {
  cursor: pointer;
  font-weight: 700;
  color: inherit;
  padding: 4px 0;
}

.backlink-chart-card > summary {
  font-size: 1.08rem;
  margin-bottom: 0;
}

.backlink-chart-card[open] > summary {
  margin-bottom: 20px;
}

.backlink-chart-card > summary:focus-visible {
  outline: 3px solid #287fbc;
  outline-offset: 5px;
  border-radius: 5px;
}

.backlink-chart-card:not([open]) {
  padding-top: 18px;
  padding-bottom: 18px;
}




/* Backlink destination doughnut chart */
.backlink-doughnut-panel {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--backlink-border);
}

.backlink-doughnut-panel h5 {
  margin: 0 0 24px;
  font-size: 1.1rem;
}

.backlink-doughnut-layout {
  display: grid;
  grid-template-columns: minmax(220px, 380px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.backlink-doughnut-chart {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
}

.backlink-doughnut-centre {
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: var(--backlink-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.backlink-doughnut-centre strong {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
}

.backlink-doughnut-centre span {
  font-size: .85rem;
  color: var(--backlink-muted);
}

.backlink-doughnut-legend {
  display: grid;
  gap: 18px;
}

.backlink-doughnut-legend-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.backlink-doughnut-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.backlink-doughnut-legend-row strong {
  color: var(--backlink-accent);
  white-space: nowrap;
}

@media (max-width: 700px) {
  .backlink-doughnut-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .backlink-doughnut-chart {
    max-width: 320px;
    margin: 0 auto;
  }
}


/* Vital SEO follow/nofollow gauge */
.backlink-follow-gauge-panel {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--backlink-border);
}

.backlink-follow-gauge-panel h5 {
  margin: 0 0 22px;
  font-size: 1.1rem;
}

.backlink-follow-gauge-layout {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(220px, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.backlink-follow-gauge-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 340;
}

.backlink-follow-gauge-visual svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.backlink-follow-gauge-centre {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  white-space: nowrap;
}

.backlink-follow-gauge-centre strong {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--backlink-accent);
  line-height: 1.1;
}

.backlink-follow-gauge-centre span {
  margin-top: 6px;
  font-weight: 600;
}

.backlink-follow-gauge-centre small {
  margin-top: 6px;
  color: var(--backlink-muted);
}

.backlink-follow-gauge-legend {
  display: grid;
  gap: 20px;
}

.backlink-follow-gauge-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.backlink-follow-gauge-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.backlink-follow-gauge-item strong {
  color: var(--backlink-accent);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .backlink-follow-gauge-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .backlink-follow-gauge-visual {
    max-width: 560px;
    margin: 0 auto;
  }

  .backlink-follow-gauge-legend {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
}


/* Vital SEO authority mountain chart */
.backlink-mountain-panel {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--backlink-border);
}

.backlink-mountain-panel h5 {
  margin: 0 0 20px;
  font-size: 1.1rem;
}

.backlink-mountain-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.backlink-mountain-controls button {
  padding: 10px 20px;
  border: 1px solid var(--backlink-border);
  border-radius: 16px;
  background: var(--backlink-panel);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.backlink-mountain-controls button.is-active {
  background: #1688d5;
  color: #fff;
  border-color: #1688d5;
}

.backlink-mountain-chart {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 0;
}

.backlink-mountain-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.backlink-mountain-summary {
  text-align: center;
  color: var(--backlink-muted);
  font-size: .9rem;
  margin: 16px 0 0;
}

@media (max-width: 600px) {
  .backlink-mountain-controls button {
    flex: 1 1 auto;
  }
}


/* Vital SEO referring-domain bubble constellation */
.backlink-bubbles-panel {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--backlink-border);
}

.backlink-bubbles-panel h5 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.backlink-bubbles-description {
  color: var(--backlink-muted);
  font-size: .9rem;
  margin: 8px 0 18px;
}

.backlink-bubbles-viewport {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  background: var(--backlink-panel);
  border: 1px solid var(--backlink-border);
  border-radius: 26px;
  overflow: hidden;
}

.backlink-bubbles-viewport svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1100 / 600;
}

/* Subtle independent floating movement for 3D bubble groups */
@keyframes backlinkBubbleFloat {
  0%, 100% {
    translate: 0 0;
  }
  35% {
    translate: 1px -2.5px;
  }
  70% {
    translate: -1px 1.5px;
  }
}

.backlink-bubbles-viewport .backlink-bubble-node {
  animation-name: backlinkBubbleFloat;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  transform-box: fill-box;
  transform-origin: center;
  transition: scale .25s ease, filter .25s ease;
}

.backlink-bubbles-viewport .backlink-bubble-node:hover,
.backlink-bubbles-viewport .backlink-bubble-node:focus-within {
  scale: 1.035;
  filter: brightness(1.07);
}

.backlink-bubbles-viewport circle {
  transition: stroke-width .2s ease, fill-opacity .2s ease;
}

.backlink-bubbles-viewport circle:hover {
  fill-opacity: 1;
}

.backlink-bubbles-viewport circle:focus {
  outline: none;
  stroke: #f4c84a;
  stroke-width: 6;
}

.backlink-bubbles-detail {
  min-height: 42px;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--backlink-panel);
  color: inherit;
  font-weight: 600;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .backlink-bubbles-viewport .backlink-bubble-node {
    animation: none !important;
    transition: none;
  }

  .backlink-bubbles-viewport circle {
    transition: none;
  }
}


/* Vital SEO backlink acquisition landscape */
.backlink-acquisition-panel {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--backlink-border);
}

.backlink-acquisition-panel h5 {
  margin: 0 0 22px;
  font-size: 1.1rem;
}

.backlink-acquisition-viewport {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  overflow: hidden;
}

.backlink-acquisition-viewport svg {
  display: block;
  width: 100%;
  height: auto;
}

.backlink-acquisition-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}

.backlink-acquisition-legend span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .9rem;
}

.backlink-acquisition-legend i {
  display: inline-block;
  width: 18px;
  height: 10px;
  border-radius: 3px;
}

.backlink-acquisition-note {
  margin: 18px auto 0;
  max-width: 900px;
  color: var(--backlink-muted);
  text-align: center;
  font-size: .9rem;
}


/* Vital SEO geographical backlink map */
.backlink-geo-description {
  color: var(--backlink-muted);
  font-size: .9rem;
  margin: 12px 0 20px;
}

.backlink-geo-viewport {
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--backlink-border);
}

.backlink-geo-viewport svg {
  display: block;
  width: 100%;
  height: auto;
}

.backlink-geo-ranking {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin-top: 24px;
}

.backlink-geo-entry {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  border: 1px solid var(--backlink-border);
  border-radius: 14px;
  background: var(--backlink-panel);
}

.backlink-geo-entry strong {
  color: var(--backlink-accent);
  white-space: nowrap;
}

@media (max-width: 680px) {
  .backlink-geo-ranking {
    grid-template-columns: 1fr;
  }
}


/* Vital SEO reusable chart details popup */
.backlink-chart-details {
  margin: 20px 0 0;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--backlink-border);
  border-left: 4px solid var(--backlink-accent);
  border-radius: 20px;
  background: var(--backlink-panel);
  color: inherit;
  box-shadow: 0 10px 28px rgba(0, 25, 55, .10);
  outline: none;
}

.backlink-chart-details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.backlink-chart-details-header h5 {
  margin: 0;
  font-size: 1.15rem;
}

.backlink-chart-details-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--backlink-border);
  border-radius: 12px;
  background: var(--backlink-card);
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.backlink-chart-details-close:hover,
.backlink-chart-details-close:focus-visible {
  border-color: var(--backlink-accent);
  outline: 2px solid var(--backlink-accent);
  outline-offset: 2px;
}

.backlink-chart-details-description {
  margin: 12px 0;
  color: var(--backlink-muted);
}

.backlink-chart-details-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 0;
}

.backlink-chart-details-list > div {
  min-width: 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--backlink-card);
  border: 1px solid var(--backlink-border);
}

.backlink-chart-details-list dt {
  color: var(--backlink-muted);
  font-size: .85rem;
}

.backlink-chart-details-list dd {
  margin: 6px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.backlink-chart-details h6 {
  margin: 20px 0 10px;
  font-size: 1rem;
}

.backlink-chart-details-records {
  margin: 0;
  padding-left: 22px;
  max-height: 240px;
  overflow: auto;
  overflow-wrap: anywhere;
}

.backlink-chart-details-records li {
  padding: 4px 0;
}

@media (max-width: 600px) {
  .backlink-chart-details-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .backlink-chart-details {
    scroll-behavior: auto;
  }
}


/* Vital SEO interactive backlink network styling */
.backlink-network-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0;
}

.backlink-network-chart {
  width: 100%;
  min-width: 0;
  min-height: 360px;
  padding: 0.75rem;
  overflow: hidden;
  border: 1px solid #d7e5f2;
  border-radius: 18px;
  background: #f5faff;
  color: #263b55;
}

.backlink-network-chart svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 340px;
  touch-action: none;
  cursor: grab;
}

.backlink-network-chart svg:active {
  cursor: grabbing;
}

.backlink-network-node,
.backlink-network-edge {
  cursor: pointer;
}

.backlink-network-node {
  transition: opacity 0.18s ease;
}

.backlink-network-node:hover,
.backlink-network-node:focus-visible {
  opacity: 0.75;
  outline: none;
}

.backlink-network-edge {
  transition: stroke-opacity 0.18s ease;
}

.backlink-network-edge:hover,
.backlink-network-edge:focus-visible {
  stroke-opacity: 0.85;
  outline: none;
}

.backlink-network-label {
  fill: #263b55;
  font-size: 12px;
  font-weight: 600;
  paint-order: stroke;
  stroke: #f5faff;
  stroke-width: 3px;
  stroke-linejoin: round;
}

html[data-theme="dark"] .backlink-network-chart,
body.dark-mode .backlink-network-chart {
  background: #10243d;
  border-color: #35516e;
  color: #e7f1ff;
}

html[data-theme="dark"] .backlink-network-label,
body.dark-mode .backlink-network-label {
  fill: #e7f1ff;
  stroke: #10243d;
}

@media (max-width: 700px) {
  .backlink-network-chart {
    padding: 0.35rem;
    min-height: 260px;
  }

  .backlink-network-chart svg {
    min-height: 250px;
  }

  .backlink-network-toolbar {
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .backlink-network-node,
  .backlink-network-edge {
    transition: none;
  }
}


/* Vital SEO permanent network watermark */
.backlink-network-chart {
  position: relative;
}

.backlink-network-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  width: max-content;
  max-width: 95%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1766a9;
  font-size: clamp(1.1rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}

html[data-theme="dark"] .backlink-network-watermark,
body.dark-mode .backlink-network-watermark {
  background: transparent;
  color: #8bd8ff;
}

@media (max-width: 700px) {
  .backlink-network-watermark {
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    font-size: clamp(1rem, 5vw, 2rem);
  }
}


/* Vital SEO interactive backlink treemap styling */
.backlink-treemap-chart {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0.75rem;
  overflow: hidden;
  border: 1px solid #d7e5f2;
  border-radius: 18px;
  background: #f5faff;
  color: #263b55;
}

.backlink-treemap-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.backlink-treemap-tile {
  cursor: pointer;
  transition: opacity 0.18s ease;
}

.backlink-treemap-tile:hover,
.backlink-treemap-tile:focus-visible {
  opacity: 0.78;
  outline: none;
}

.backlink-treemap-tile:focus-visible rect {
  stroke: #10243d;
  stroke-width: 4px;
}

.backlink-treemap-label {
  fill: #ffffff;
  font-size: 17px;
  font-weight: 800;
  pointer-events: none;
}

.backlink-treemap-value {
  fill: #ffffff;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

.backlink-treemap-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  width: max-content;
  max-width: 95%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1766a9;
  font-size: clamp(1.1rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}

html[data-theme="dark"] .backlink-treemap-chart,
body.dark-mode .backlink-treemap-chart {
  background: #10243d;
  border-color: #35516e;
  color: #e7f1ff;
}

html[data-theme="dark"] .backlink-treemap-watermark,
body.dark-mode .backlink-treemap-watermark {
  background: transparent;
  color: #8bd8ff;
}

@media (max-width: 700px) {
  .backlink-treemap-chart {
    padding: 0.35rem;
  }

  .backlink-treemap-watermark {
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    font-size: clamp(1rem, 5vw, 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .backlink-treemap-tile {
    transition: none;
  }
}


/* Vital SEO interactive political backlink map */

.backlink-geo-viewport {
  background: #edf5fa;
}

.backlink-geo-viewport svg > rect:first-child {
  fill: #edf5fa;
}

.backlink-political-country {
  fill: #b7cbd8;
  stroke: #ffffff;
  stroke-width: 0.85;
  stroke-linejoin: round;
  fill-rule: evenodd;
  cursor: pointer;
  transition: fill 180ms ease, stroke 180ms ease;
}

.backlink-political-country[data-has-backlinks="true"] {
  fill: #79b6c3;
}

.backlink-political-country:hover,
.backlink-political-country:focus-visible {
  fill: #42c5b8;
  stroke: #126b77;
  stroke-width: 1.5;
  outline: none;
}

html[data-theme="dark"] .backlink-geo-viewport,
body.dark-mode .backlink-geo-viewport {
  background: #102f4b;
}

html[data-theme="dark"] .backlink-geo-viewport svg > rect:first-child,
body.dark-mode .backlink-geo-viewport svg > rect:first-child {
  fill: #102f4b;
}

html[data-theme="dark"] .backlink-political-country,
body.dark-mode .backlink-political-country {
  fill: #315a73;
  stroke: #83a5b8;
}

html[data-theme="dark"] .backlink-political-country[data-has-backlinks="true"],
body.dark-mode .backlink-political-country[data-has-backlinks="true"] {
  fill: #327f88;
}

html[data-theme="dark"] .backlink-political-country:hover,
html[data-theme="dark"] .backlink-political-country:focus-visible,
body.dark-mode .backlink-political-country:hover,
body.dark-mode .backlink-political-country:focus-visible {
  fill: #16c5b8;
  stroke: #e4ffff;
}

@media (prefers-reduced-motion: reduce) {
  .backlink-political-country {
    transition: none;
  }
}

/* Vital SEO | Shared backlink chart watermarks */

/* Standard charts, including direct children of details elements. */
.backlink-chart-card > div[id$="Chart"]:not(
  #backlinkNetworkChart,
  #backlinkTreemapChart
),
.backlink-chart-content > div[id$="Chart"]:not(
  #backlinkNetworkChart,
  #backlinkTreemapChart
) {
  position: relative;
  isolation: isolate;
}

/* Place watermark above backgrounds without blocking interactions. */
.backlink-chart-card > div[id$="Chart"]:not(
  #backlinkNetworkChart,
  #backlinkTreemapChart
)::before,
.backlink-chart-content > div[id$="Chart"]:not(
  #backlinkNetworkChart,
  #backlinkTreemapChart
)::before {
  content: "www.vitalseo.co.uk";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 95%;
  color: #1766a9;
  font-size: clamp(1.1rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  white-space: nowrap;
  opacity: 0.10;
  pointer-events: none;
  user-select: none;
}

/* Dark-mode watermark colour. */
html[data-theme="dark"] .backlink-chart-card > div[id$="Chart"]:not(
  #backlinkNetworkChart,
  #backlinkTreemapChart
)::before,
html[data-theme="dark"] .backlink-chart-content > div[id$="Chart"]:not(
  #backlinkNetworkChart,
  #backlinkTreemapChart
)::before,
body.dark-mode .backlink-chart-card > div[id$="Chart"]:not(
  #backlinkNetworkChart,
  #backlinkTreemapChart
)::before,
body.dark-mode .backlink-chart-content > div[id$="Chart"]:not(
  #backlinkNetworkChart,
  #backlinkTreemapChart
)::before {
  color: #8bd8ff;
}

@media (max-width: 700px) {
  .backlink-chart-card > div[id$="Chart"]::before,
  .backlink-chart-content > div[id$="Chart"]::before {
    font-size: clamp(1rem, 5vw, 2rem);
  }
}


/* Vital SEO | Secondary backlink visualisation watermarks */

/*
 * Anchor watermarks to the actual visualisation, never to
 * expandable panels or selection details.
 */
#backlinkDestinationDoughnut::before,
#backlinkFollowGauge::before,
#backlinkAuthorityMountain::before,
#backlinkDomainBubbles::before,
#backlinkAcquisitionLandscape::before {
  content: none !important;
}

#backlinkDestinationDoughnut .backlink-doughnut-layout,
#backlinkFollowGauge .backlink-follow-gauge-visual,
#backlinkAuthorityMountain .backlink-mountain-chart,
#backlinkDomainBubbles .backlink-bubbles-viewport,
#backlinkAcquisitionLandscape .backlink-acquisition-viewport,
#backlinkGeoChart .backlink-geo-viewport {
  position: relative;
  isolation: isolate;
}

#backlinkDestinationDoughnut .backlink-doughnut-layout::before,
#backlinkFollowGauge .backlink-follow-gauge-visual::before,
#backlinkAuthorityMountain .backlink-mountain-chart::before,
#backlinkDomainBubbles .backlink-bubbles-viewport::before,
#backlinkAcquisitionLandscape .backlink-acquisition-viewport::before,
#backlinkGeoChart .backlink-geo-viewport::before {
  content: "www.vitalseo.co.uk";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  max-width: 95%;
  color: #1766a9;
  font-size: clamp(1.1rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  white-space: nowrap;
  opacity: 0.10;
  pointer-events: none;
  user-select: none;
}

html[data-theme="dark"] #backlinkDestinationDoughnut .backlink-doughnut-layout::before,
html[data-theme="dark"] #backlinkFollowGauge .backlink-follow-gauge-visual::before,
html[data-theme="dark"] #backlinkAuthorityMountain .backlink-mountain-chart::before,
html[data-theme="dark"] #backlinkDomainBubbles .backlink-bubbles-viewport::before,
html[data-theme="dark"] #backlinkAcquisitionLandscape .backlink-acquisition-viewport::before,
html[data-theme="dark"] #backlinkGeoChart .backlink-geo-viewport::before,
body.dark-mode #backlinkDestinationDoughnut .backlink-doughnut-layout::before,
body.dark-mode #backlinkFollowGauge .backlink-follow-gauge-visual::before,
body.dark-mode #backlinkAuthorityMountain .backlink-mountain-chart::before,
body.dark-mode #backlinkDomainBubbles .backlink-bubbles-viewport::before,
body.dark-mode #backlinkAcquisitionLandscape .backlink-acquisition-viewport::before,
body.dark-mode #backlinkGeoChart .backlink-geo-viewport::before {
  color: #8bd8ff;
}

@media (max-width: 700px) {
  #backlinkDestinationDoughnut .backlink-doughnut-layout::before,
  #backlinkFollowGauge .backlink-follow-gauge-visual::before,
  #backlinkAuthorityMountain .backlink-mountain-chart::before,
  #backlinkDomainBubbles .backlink-bubbles-viewport::before,
  #backlinkAcquisitionLandscape .backlink-acquisition-viewport::before,
  #backlinkGeoChart .backlink-geo-viewport::before {
    font-size: clamp(1rem, 5vw, 2rem);
  }
}

/* Vital SEO | Fixed primary chart watermarks */

/*
 * The outer chart containers can grow when selection details open.
 * Disable their watermark and anchor it to the bars instead.
 */
.backlink-chart-card > div[id$="Chart"]:has(> .backlink-bars)::before,
.backlink-chart-content > div[id$="Chart"]:has(> .backlink-bars)::before {
  content: none !important;
}

/* The bar chart itself remains independent of selection details. */
.backlink-chart-card > div[id$="Chart"] > .backlink-bars,
.backlink-chart-content > div[id$="Chart"] > .backlink-bars {
  position: relative;
  isolation: isolate;
}

.backlink-chart-card > div[id$="Chart"] > .backlink-bars::before,
.backlink-chart-content > div[id$="Chart"] > .backlink-bars::before {
  content: "www.vitalseo.co.uk";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 95%;
  color: #1766a9;
  font-size: clamp(1.1rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  white-space: nowrap;
  opacity: 0.10;
  pointer-events: none;
  user-select: none;
}

html[data-theme="dark"] .backlink-bars::before,
body.dark-mode .backlink-bars::before {
  color: #8bd8ff !important;
}

@media (max-width: 700px) {
  .backlink-chart-card > div[id$="Chart"] > .backlink-bars::before,
  .backlink-chart-content > div[id$="Chart"] > .backlink-bars::before {
    font-size: clamp(1rem, 5vw, 2rem);
  }
}

/* Vital SEO | Chart details close button refinement */

.backlink-chart-details .backlink-chart-details-header {
  align-items: center;
}

.backlink-chart-details .backlink-chart-details-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--backlink-border);
  border-radius: 50%;
  background: var(--backlink-card);
  color: inherit;
  font-family: inherit;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  box-shadow: none;
  transform: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.backlink-chart-details .backlink-chart-details-close:hover {
  background: var(--backlink-accent);
  border-color: var(--backlink-accent);
  color: #ffffff;
  transform: none;
}

.backlink-chart-details .backlink-chart-details-close:focus-visible {
  outline: 2px solid var(--backlink-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .backlink-chart-details .backlink-chart-details-close {
    transition: none;
  }
}

/* Vital SEO | Fixed map and doughnut watermark positioning */

/*
 * The map's outer container includes expandable selection details.
 * Only the map viewport should carry its watermark.
 */
.backlink-chart-card > #backlinkGeoChart::before,
.backlink-chart-content > #backlinkGeoChart::before {
  content: none !important;
}

/*
 * Industry and Assessment charts contain a doughnut visualisation
 * and may also contain expandable selection details.
 * Keep their watermarks on the visualisation itself.
 */
#backlinkIndustryChart::before,
#backlinkAssessmentChart::before {
  content: none !important;
}

#backlinkIndustryChart .backlink-doughnut-layout,
#backlinkAssessmentChart .backlink-doughnut-layout {
  position: relative;
  isolation: isolate;
}

#backlinkIndustryChart .backlink-doughnut-layout::before,
#backlinkAssessmentChart .backlink-doughnut-layout::before {
  content: "www.vitalseo.co.uk";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  max-width: 95%;
  color: #1766a9;
  font-size: clamp(1.1rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  white-space: nowrap;
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}

html[data-theme="dark"] #backlinkIndustryChart .backlink-doughnut-layout::before,
html[data-theme="dark"] #backlinkAssessmentChart .backlink-doughnut-layout::before,
body.dark-mode #backlinkIndustryChart .backlink-doughnut-layout::before,
body.dark-mode #backlinkAssessmentChart .backlink-doughnut-layout::before {
  color: #8bd8ff;
}

@media (max-width: 700px) {
  #backlinkIndustryChart .backlink-doughnut-layout::before,
  #backlinkAssessmentChart .backlink-doughnut-layout::before {
    font-size: clamp(1rem, 5vw, 2rem);
  }
}

/* Vital SEO | Treemap watermark fixed to SVG */

/*
 * The watermark is a sibling of the SVG.
 * Anchor its vertical position to the SVG's rendered height,
 * not the container's height including selection details.
 */
.backlink-treemap-chart {
  container-type: inline-size;
}

.backlink-treemap-chart > .backlink-treemap-watermark {
  top: calc(0.75rem + (100cqw - 1.5rem) * 0.25);
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@media (max-width: 700px) {
  .backlink-treemap-chart > .backlink-treemap-watermark {
    top: calc(0.35rem + (100cqw - 0.7rem) * 0.25);
  }
}


/* Vital SEO | Network watermark fixed to SVG dimensions */

/*
 * The SVG viewBox is 1100 x 900.
 * Anchor the watermark to the displayed SVG height,
 * not the container height, which grows when details open.
 */
.backlink-network-chart {
  container-type: inline-size;
}

.backlink-network-chart > .backlink-network-watermark {
  top: calc(0.75rem + (100cqw - 1.5rem) * 9 / 22);
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@media (max-width: 700px) {
  .backlink-network-chart > .backlink-network-watermark {
    top: calc(0.35rem + (100cqw - 0.7rem) * 9 / 22);
  }
}

/* Vital SEO | Sample CSV download link final contrast */

a.btn.btn-primary[href$="backlink-overview-sample.csv"],
a.btn.btn-primary[href$="backlink-overview-sample.csv"]:link,
a.btn.btn-primary[href$="backlink-overview-sample.csv"]:visited,
a.btn.btn-primary[href$="backlink-overview-sample.csv"]:hover,
a.btn.btn-primary[href$="backlink-overview-sample.csv"]:focus-visible,
a.btn.btn-primary[href$="backlink-overview-sample.csv"]:active {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
}


/* Backlink Overview Generator: verified-admin on-screen watermark exemption. */
html[data-backlink-verified-admin="true"] .backlink-chart-card > div[id$="Chart"]::before,
html[data-backlink-verified-admin="true"] .backlink-chart-content > div[id$="Chart"]::before,
html[data-backlink-verified-admin="true"] .backlink-bars::before,
html[data-backlink-verified-admin="true"] .backlink-doughnut-layout::before,
html[data-backlink-verified-admin="true"] .backlink-follow-gauge-visual::before,
html[data-backlink-verified-admin="true"] .backlink-mountain-chart::before,
html[data-backlink-verified-admin="true"] .backlink-bubbles-viewport::before,
html[data-backlink-verified-admin="true"] .backlink-acquisition-viewport::before,
html[data-backlink-verified-admin="true"] .backlink-geo-viewport::before {
  content: none !important;
}

html[data-backlink-verified-admin="true"] .backlink-network-watermark,
html[data-backlink-verified-admin="true"] .backlink-treemap-watermark,
html[data-backlink-verified-admin="true"] .density-cloud-watermark {
  display: none !important;
}
