/* Static, same-origin bot entry: no third-party widgets or tracking. */
.telegram-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto 74px; grid-template-areas: "copy actions qr"; gap: 16px; align-items: center; margin: 0 0 24px; padding: 12px 16px; border: 1px solid #305446; border-radius: 12px; background: var(--forest); color: var(--white); }
.telegram-entry[hidden], .telegram-contact-link[hidden] { display: none !important; }
.telegram-entry-copy { grid-area: copy; min-width: 0; }
.telegram-entry h2 { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
.telegram-entry-actions { grid-area: actions; display: flex; align-items: center; min-width: 0; }
.telegram-entry-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 13px; border: 1px solid #a4bcb0; border-radius: 8px; color: var(--white); background: #ffffff0a; font-size: 13px; line-height: 1.4; font-weight: 600; text-decoration: none; white-space: nowrap; }
.telegram-entry-button:hover { background: #ffffff18; border-color: #d3dfd8; }
.telegram-entry-button span { color: #d3dfd8; font-size: 15px; }
.telegram-entry-handle { display: inline-block; margin-top: 4px; color: #d3dfd8; font-size: 11px; line-height: 1.4; }
.telegram-entry-qr { grid-area: qr; display: flex; align-items: center; justify-content: center; min-width: 0; text-decoration: none; }
/* Keep an integer scale of the 37-module QR, including its white quiet zone. */
.telegram-entry-qr img { display: block; width: 74px; height: auto; aspect-ratio: 1; background: #fff; border-radius: 6px; }
.telegram-entry a:focus-visible, .telegram-contact-link:focus-visible { outline-color: var(--lime); }
.contact-card > .telegram-contact-link { margin-top: 12px; }
@media (max-width: 600px) {
  .telegram-entry { grid-template-columns: minmax(0, 1fr) 74px; grid-template-areas: "copy qr" "actions qr"; gap: 6px 12px; margin-bottom: 20px; padding: 12px 14px; }
  .telegram-entry h2 { font-size: 16px; }
  .telegram-entry-qr img { width: 74px; }
  .telegram-entry-button { min-height: 44px; width: 100%; font-size: 12px; padding-inline: 8px; }
}
