/* TLG article watermark — screen + print. Active when html[data-tlg-wm="1"]. */
#tlg-wm {
  display: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  overflow: hidden;
  background-repeat: repeat;
  background-position: 0 0;
  /* Diagonal tiled brand mark; opacity kept in CSS so print can raise it. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='340' viewBox='0 0 520 340'%3E%3Ctext x='260' y='180' fill='%231a1a1a' font-family='Georgia%2C%20Times%20New%20Roman%2C%20serif' font-size='20' letter-spacing='0.04em' text-anchor='middle' transform='rotate(-28 260 180)'%3Etlgrisk.com%20%20%C2%B7%20%20Tyler%20L.%20Gaynes%3C/text%3E%3C/svg%3E");
  background-size: 520px 340px;
  opacity: 0.08;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

html[data-tlg-wm="1"] #tlg-wm {
  display: block;
}

/* Print-only ownership line (article routes only). */
html[data-tlg-wm="1"] body::after {
  display: none;
  content: none;
}

@media print {
  html[data-tlg-wm="1"] #tlg-wm {
    display: block !important;
    position: fixed;
    inset: 0;
    opacity: 0.15;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    /* Fixed + repeating bg survives multi-page print in Chromium/WebKit/Firefox. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='340' viewBox='0 0 520 340'%3E%3Ctext x='260' y='180' fill='%231a1a1a' font-family='Georgia%2C%20Times%20New%20Roman%2C%20serif' font-size='20' letter-spacing='0.04em' text-anchor='middle' transform='rotate(-28 260 180)'%3Etlgrisk.com%20%20%C2%B7%20%20Tyler%20L.%20Gaynes%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 520px 340px;
  }

  html[data-tlg-wm="1"] body::after {
    display: block;
    content: "\00a9  Tyler L. Gaynes \00b7 tlgrisk.com";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0.35in;
    z-index: 46;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 9pt;
    color: #333;
    opacity: 0.85;
    pointer-events: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
