/* TreatyLink widget. Every rule is scoped under .tl so a WordPress theme is not affected. */
.tl { --tl-ink: #1d2733; --tl-muted: #5b6573; --tl-line: #dde1e6; --tl-bg: #fff;
      --tl-accent: #0b5cad; --tl-soft: #eef4fb; font-size: 16px; line-height: 1.5;
      color: var(--tl-ink); }
.tl *, .tl *::before, .tl *::after { box-sizing: border-box; }
.tl-form { background: var(--tl-bg); border: 1px solid var(--tl-line); border-radius: 10px;
           padding: 16px; }
.tl-form label.tl-big { display: block; font-weight: 600; margin-bottom: 6px; }
.tl textarea { width: 100%; min-height: 150px; padding: 10px 12px; font: inherit;
               border: 1px solid var(--tl-line); border-radius: 8px; resize: vertical; }
.tl textarea:focus, .tl button:focus-visible, .tl summary:focus-visible {
  outline: 3px solid #9cc3ec; outline-offset: 1px; }
.tl-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 10px; }
.tl-fams { display: flex; flex-wrap: wrap; gap: 6px 14px; border: 0; padding: 0; margin: 0; }
.tl-fams legend { font-size: .9rem; color: var(--tl-muted); margin-bottom: 4px; }
.tl-fams label { font-size: .92rem; white-space: nowrap; }
.tl button.tl-go { background: var(--tl-accent); color: #fff; border: 0; border-radius: 8px;
                   padding: 10px 20px; font: inherit; font-weight: 600; cursor: pointer; }
.tl button.tl-go[disabled] { opacity: .6; cursor: wait; }
.tl-privacy { font-size: .85rem; color: var(--tl-muted); margin: 8px 0 0; }
.tl-status { margin: 16px 0; color: var(--tl-muted); }
.tl-error { color: #a4161a; }
.tl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin-top: 18px; }
@media (max-width: 820px) { .tl-grid { grid-template-columns: 1fr; } }
.tl h2 { font-size: 1.1rem; margin: 0 0 10px; }
.tl-card { background: var(--tl-bg); border: 1px solid var(--tl-line); border-radius: 10px;
           padding: 14px 16px; margin-bottom: 12px; }
.tl-card h3 { font-size: 1.02rem; margin: 2px 0 2px; }
.tl-inst { font-size: .9rem; color: var(--tl-muted); }
.tl-meta { font-size: .82rem; color: var(--tl-muted); margin-top: 2px; }
.tl-badge { display: inline-block; font-size: .75rem; font-weight: 600; border-radius: 99px;
            padding: 1px 9px; margin-right: 6px; vertical-align: 1px; }
.tl-strong { background: #dff3e4; color: #1e6b34; }
.tl-possible { background: #fff3d6; color: #7a5300; }
.tl-weak { background: #eceef1; color: #4a5563; }
.tl-fam { background: var(--tl-soft); color: var(--tl-accent); }
.tl-label { background: #fde8e8; color: #8a1c1c; }
.tl-para { background: #fffbe8; border-left: 3px solid #e0b100; padding: 8px 10px; margin: 10px 0;
           white-space: pre-line; }
.tl-text { white-space: pre-line; margin: 8px 0 0; }
.tl details { margin-top: 8px; }
.tl summary { cursor: pointer; color: var(--tl-accent); font-size: .92rem; }
.tl-src { font-size: .85rem; margin-top: 10px; border-top: 1px dashed var(--tl-line); padding-top: 8px; }
.tl-src a { color: var(--tl-accent); }
.tl-notes { font-size: .82rem; color: var(--tl-muted); margin: 6px 0 0; padding-left: 18px; }
.tl-sdg { border-left: 6px solid #999; }
.tl-sdg .tl-code { font-weight: 700; }
.tl-prov { font-size: .78rem; color: var(--tl-muted); margin-top: 6px; }
.tl-notice { font-size: .85rem; color: var(--tl-muted); background: var(--tl-soft);
             border-radius: 8px; padding: 10px 12px; margin-top: 8px; }
.tl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
