/* A compact directory of official destinations. Loaded only on /telegram. */
.public-shell:has(.telegram-hub) > main { justify-content: center; }
.site-header .site-login { width: auto; }
.telegram-hub { width: min(calc(100% - 48px), 900px); margin: 0 auto; padding: 30px 0; }
.tg-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.tg-heading > .bi { color: #a9dcca; font-size: 28px; }
.tg-heading h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 550; letter-spacing: -.035em; }
.tg-directory { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid #c3d9e224; border-radius: 18px; background: #141e2c9c; overflow: hidden; }
.tg-directory h2 { margin: 0 0 9px; font-weight: 550; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
.tg-directory p { margin: 0; font-size: 14px; line-height: 1.65; color: #aebdcc; max-width: 32ch; }
.tg-bot { padding: 36px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border-right: 1px solid #c3d9e21c; background: #a2d9be05; }
.tg-bot h2 { font-size: 27px; margin-bottom: 12px; }
.tg-primary { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 10px; background: #a4e6bd; color: #11271c; font-size: 13px; font-weight: 650; margin-top: 26px; }
.tg-primary:hover { background: #b8f0ce; }
.tg-secondary { padding: 0 28px; }
.tg-secondary section { padding: 24px 0 18px; }
.tg-secondary section + section { border-top: 1px solid #c3d9e21c; }
.tg-secondary a { display: inline-flex; align-items: center; min-height: 40px; color: #b7e8ce; font-size: 13px; text-decoration: underline; text-decoration-color: #b7e8ce50; text-underline-offset: 5px; margin-top: 3px; }
.tg-secondary a:hover, .tg-browser a:hover { color: #e1f8eb; text-decoration-color: currentColor; }
.tg-browser { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding-top: 12px; font-size: 12px; }
.tg-browser > span { color: #90a2b6; }
.tg-browser nav { display: flex; flex-wrap: wrap; gap: 18px; }
.tg-browser a { min-height: 40px; display: inline-flex; align-items: center; color: #c2cedc; text-decoration: underline; text-decoration-color: #c2cedc40; text-underline-offset: 4px; }
@media (max-width: 599px) {
  .telegram-hub { width: calc(100% - 32px); padding: 20px 0; }
  .tg-heading { gap: 10px; margin-bottom: 18px; }
  .tg-heading > .bi { font-size: 24px; }
  .tg-heading h1 { font-size: 25px; }
  .tg-directory { grid-template-columns: minmax(0, 1fr); border-radius: 14px; }
  .tg-bot { border-right: 0; border-bottom: 1px solid #c3d9e21c; padding: 20px; }
  .tg-bot h2 { font-size: 23px; margin-bottom: 7px; }
  .tg-directory p { font-size: 13px; line-height: 1.5; }
  .tg-bot p { max-width: none; }
  .tg-primary { margin-top: 16px; min-height: 42px; padding: 9px 18px; }
  .tg-secondary { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
  .tg-secondary section { min-width: 0; padding: 18px 16px 10px; display: flex; flex-direction: column; align-items: flex-start; }
  .tg-secondary section + section { border-top: 0; border-left: 1px solid #c3d9e21c; }
  .tg-secondary h2 { font-size: 16px; margin-bottom: 8px; }
  .tg-secondary p { padding-bottom: 4px; }
  .tg-secondary a { font-size: 12px; margin-top: auto; }
  .tg-browser { font-size: 11px; gap: 0 12px; padding-top: 7px; }
  .tg-browser nav { gap: 12px; }
}
@media (max-height: 720px) and (min-width: 600px) {
  .telegram-hub { padding-block: 18px; }
  .tg-heading { margin-bottom: 16px; }
  .tg-secondary section { padding-block: 16px 10px; }
}
.tg-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; width: min(calc(100% - 48px), 1100px); margin: 0 auto; padding: 12px 140px 12px 0; color: #94a5b7; font-size: 11px; line-height: 1.5; border-top: 1px solid #c3d9e21c; }
.tg-footer nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.tg-footer a { display: inline-flex; align-items: center; min-height: 32px; }
.tg-footer a:hover { color: #c8efda; }
.tg-footer > span { white-space: nowrap; }
@media (max-width: 599px) {
  .tg-footer { width: calc(100% - 32px); flex-wrap: wrap; gap: 2px 16px; padding: 8px 0; font-size: 10px; }
  .tg-footer nav { width: 100%; padding-right: 125px; gap: 0 12px; }
}
@media (max-width: 599px) and (max-height: 720px) {
  .telegram-hub { padding-block: 14px; }
  .tg-heading { margin-bottom: 12px; }
  .tg-heading h1 { font-size: 23px; }
  .tg-bot { padding: 16px; }
  .tg-bot h2 { font-size: 21px; }
  .tg-primary { margin-top: 12px; }
  .tg-secondary section { padding: 14px 12px 8px; }
}
@media (max-width: 360px) and (max-height: 640px) {
  .tg-heading { gap: 8px; }
  .tg-heading h1 { font-size: 22px; }
  .tg-heading > .bi { font-size: 22px; }
  .tg-secondary { grid-template-columns: minmax(0, 1fr); }
  .tg-secondary section { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 8px; padding: 4px 14px; }
  .tg-secondary section + section { border-left: 0; border-top: 1px solid #c3d9e21c; }
  .tg-secondary h2 { font-size: 15px; margin: 0; }
  .tg-secondary p { display: none; }
  .tg-secondary a { min-height: 44px; margin: 0; }
}
