/* --- Metryqor: remove faint background lines, no JS/layout changes --- */
html, body { background:#f7f8fa !important; background-image:none !important; }
#grid, main, .container, .wrap { background:transparent !important; background-image:none !important; }
*::before, *::after { background-image:none !important; }

/* keep cards readable and soft */
.card, .news-card {
  background:#fff !important;
  border:1px solid #e9edf2 !important;
  box-shadow:0 1px 4px rgba(0,0,0,.06) !important;
  border-radius:10px !important;
}
/* === Hard kill for faint background writing / debug dumps === */

/* Some themes print the URL after links (print styles leaking to screen). Stop it. */
@media screen {
  a[href]::after { content: "" !important; }
}

/* Hide any raw JSON / debug / preformatted blocks that could bleed behind the grid */
pre, code,
.raw, .raw-json, .json-raw, .json-dump, .dump,
#raw, #rawjson, #json, #jsondump, #debug, .debug {
  display: none !important;
}

/* Prevent horizontal bleed and keep the grid on top */
body, #grid { overflow-x: hidden !important; }
#grid { position: relative !important; z-index: 1 !important; }

/* Keep card visuals intact */
.card, .news-card {
  background: #fff !important;
  border: 1px solid #e9edf2 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.06) !important;
  border-radius: 10px !important;
}
/* --- remove printed URL tails and stop long-underline overflow --- */

/* some themes add `a[href]::after { content: attr(href) }` — turn it off everywhere */
a[href]::after,
.card a[href]::after,
.news-card a[href]::after { content: "" !important; display: none !important; }

/* belt & suspenders: also clear ::before if used for the same trick */
a::before,
.card a::before,
.news-card a::before { content: "" !important; }

/* prevent a continuous underline / overflow from very long links */
.card a,
.news-card a {
  text-decoration: none !important;
  overflow-wrap: anywhere !important;   /* break long tokens */
  word-break: break-word !important;
  white-space: normal !important;
}

/* keep the grid on top just in case */
#grid { position: relative !important; z-index: 1 !important; }
/* --- Prevent <a> overflow lines showing behind cards --- */
a, a * {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

pre, code, .debug, .json-dump {
  display: none !important; /* Hide any raw <pre> JSON leaks */
}

.grid, .news-card, .card {
  overflow: hidden !important; /* stop background bleed */
}
