/* ============================================================
   EURO-NEWS — кастомная тема BroadcastChannel для канала
   «Европейская школа. Официальный канал» (tgnews.2580777.ru)
   Стиль = сайт школы eurosperm.tilda.ws (комикс-брутал):
   кремовый фон #fcfbfa, паттерн «ключи», чёрные рамки 2–3px,
   жёсткие тени, жёлтый #FFD700 + голубой #00E5FF, Arial.
   Подключение:
     HEADER_INJECT='<link rel="stylesheet" href="/themes/euro-news.css">'
   Файл кладётся в public/themes/ рядом со встроенными темами.
   ============================================================ */

:root {
  --width: 720px;
  --body-padding-inline: 0px;
  --font-main: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --font-secondary: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --font-scale: 1rem;
  --background-color: #fcfbfa;
  --heading-color: #000000;
  --text-color: #1a1a1a;
  --link-color: #0057B8;
  --visited-color: #4a3d8f;
  --code-background-color: #f4f1ea;
  --code-color: #1a1a1a;
  --blockquote-color: #333333;
  --accent-color: #FFD700;
  --border-color: #000000;
  --focus-color: #0057B8;
  --link-hover-color: #004a99;
  --muted-color: #4B5563;
  --surface-color: #ffffff;
  --quote-background: #FFF8DC;
  --quote-border: #FFD700;
  --reaction-paid-color: #5c4600;
  --reaction-paid-border-color: #000000;
  --reaction-paid-background-color: #FFF3B0;
  --code-muted-color: #4B5563;
  --code-accent-color: #0057B8;
  --code-alt-accent-color: #76518f;
  --shadow-soft: 3px 3px 0px #000000;
  --radius-panel: 14px;
  --radius-chip: 10px;
  --radius-media: 10px;
  --box-margin: 0px;
  --back-to-top-offset: max(1rem, env(safe-area-inset-right));
  --icon-hover-filter: none;
  --icon-secondary-filter: grayscale(1) opacity(0.68);
}

html {
  max-width: 100%;
  color-scheme: light;
  background: var(--background-color);
  overflow-x: clip;
}

body {
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0 var(--body-padding-inline);
  background: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-secondary);
  font-size: var(--font-scale);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #FFD700;
  color: #000000;
}

a:link {
  color: var(--link-color);
}

a:visited {
  color: var(--visited-color);
}

a:hover {
  color: var(--link-hover-color);
  text-underline-offset: 0.18em;
}

button,
input,
summary {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}

#main-content,
.posts-feed,
.posts-feed > li,
.post-entry,
.post-content,
.content {
  min-width: 0;
  max-width: 100%;
}

.skip-link {
  border: 2px solid #000000;
  border-radius: 10px;
  background: #FFD700;
  color: #000000;
  box-shadow: 3px 3px 0px #000000;
  font-family: Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
}

.skip-link:visited {
  color: #000000;
}

/* ---------- Шапка: белая полоса, чёрная нижняя рамка 3px ---------- */

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 52px;
  min-height: 52px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-block: 6px;
  padding-inline: max(10px, calc((100vw - var(--width)) / 2));
  border-bottom: 3px solid #000000;
  background: var(--surface-color);
  box-shadow: 0 3px 0px rgba(0, 0, 0, 0.12);
}

.site-header > .avatar-link {
  flex: 0 0 36px;
}

.channel-avatar {
  display: block;
  width: 36px;
  height: 36px;
  border: 2px solid #000000;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 2px 2px 0px #FFD700;
}

.site-header > .title,
.site-header > .title:visited {
  min-width: 0;
  max-width: 10.5rem;
  flex: 0 1 auto;
  color: var(--heading-color);
}

.site-header > .title > h1 {
  overflow: hidden;
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-links,
.channel-description {
  display: none;
}

/* Навигация — кнопки-чипы как в меню школы (uppercase, жёлтая тень) */
.site-navigation {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
}

.site-navigation > ul {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-navigation a,
.site-navigation a:visited {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 9px;
  border: 2px solid #000000;
  border-radius: 10px;
  background: var(--surface-color);
  color: #000000;
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.site-navigation a:hover,
.site-navigation a[aria-current='page'] {
  background: #FFD700;
  color: #000000;
  text-decoration: none;
}

.desktop-search,
.mobile-search form {
  width: 8.25rem;
  min-width: 0;
  min-height: 32px;
  flex: 0 1 8.25rem;
  overflow: hidden;
  border: 2px solid #000000;
  border-radius: 10px;
  background: var(--surface-color);
  box-shadow: 2px 2px 0px #FFD700;
}

.mobile-search summary {
  border-radius: 8px;
  background: transparent;
}

.desktop-search:focus-within,
.mobile-search form:focus-within {
  box-shadow: 2px 2px 0px #00E5FF;
}

.search-field {
  min-height: 30px;
  gap: 4px;
  padding: 0 2px 0 8px;
}

.search-field > svg {
  width: 13px;
  height: 13px;
}

.search-input {
  min-height: 28px;
  padding: 2px 0;
  color: var(--text-color);
  font-size: 0.72rem;
}

.search-input::placeholder {
  color: #6b7280;
  opacity: 1;
}

.search-input:focus-visible {
  outline: 0;
}

.search-submit {
  width: 28px;
  height: 28px;
}

/* ---------- Фон: паттерн «ключи» как на сайте школы ---------- */

#main-content {
  padding: 14px 10px 18px;
  background-color: var(--background-color);
  background-image: url("https://static.tildacdn.com/tild6335-6362-4539-a565-643466313862/5287434225957150369.jpg");
  background-repeat: repeat;
  background-position: top left;
}

.posts-feed,
.pagination,
.directory {
  margin-inline: auto;
}

.posts-feed {
  width: min(100%, 560px);
  padding: 0;
  list-style: none;
}

.pagination,
.directory {
  width: min(100%, 500px);
}

/* ---------- Карточка поста: белая, чёрная рамка, жёсткая тень ---------- */

.post-entry {
  display: grid;
  grid-template-columns: 45px 515px;
  width: 560px;
  max-width: 560px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.posts-feed > li:last-child .post-entry {
  margin-bottom: 0;
  padding-bottom: 0;
  border: 0;
}

.post-meta {
  display: none;
}

.post-entry-avatar {
  display: block;
  grid-column: 1;
  grid-row: 1 / span 4;
  width: 38px;
  height: 38px;
  margin-top: 10px;
  border: 2px solid #000000;
  border-radius: 50%;
  background: #FFD700;
  object-fit: cover;
}

.post-entry-author,
.post-content,
.tg-message-meta {
  grid-column: 2;
  width: 515px;
  max-width: 515px;
  background: var(--surface-color);
}

.post-entry-author {
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 10px 14px 0;
  border: 2px solid #000000;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #FFD700;
  color: #000000;
  font-family: Arial, sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-content {
  padding: 8px 14px 0;
  border: 2px solid #000000;
  border-top: 0;
  color: var(--text-color);
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.tg-message-meta {
  display: flex;
  min-height: 22px;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0 14px 6px;
  border: 2px solid #000000;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  color: var(--muted-color);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  line-height: 14px;
  white-space: nowrap;
}

.tg-message-meta a,
.tg-message-meta a:visited {
  color: inherit;
  text-decoration: none;
}

/* Контент с медиа и без — рамка и тень держатся за счёт внутренней
   обёртки: тень вешаем на автора (верх) и мета (низ) вместе. */
.post-entry:has(
  .image-list-container,
  video:not(.sticker),
  audio,
  iframe,
  .tgme_widget_message_poll,
  .tgme_widget_message_document_wrap,
  .tgme_widget_message_location_wrap,
  .tgme_widget_message_link_preview,
  pre
) {
  width: 560px;
}

.post-reactions,
.post-tags,
.post-comments {
  grid-column: 2;
  width: 100%;
  max-width: 515px;
  padding-top: 5px;
}

.post-reactions > ul {
  gap: 4px;
}

/* Чипы реакций: белые с чёрной рамкой, hover — жёлтый */
.reaction,
.post-tags a {
  min-height: 24px;
  padding: 2px 9px;
  border: 2px solid #000000;
  border-radius: 10px;
  background: var(--surface-color);
  color: #1a1a1a;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.reaction:hover {
  background: #FFD700;
}

.reaction-paid {
  border-color: #000000;
  background: var(--reaction-paid-background-color);
  color: var(--reaction-paid-color);
}

.reaction-image {
  width: 16px;
  height: 16px;
}

.post-tags {
  gap: 4px 6px;
  margin: 0;
}

/* Теги — голубые чипы как кнопка ЭлЖур */
.post-tags a,
.post-tags a:visited {
  background: #00E5FF;
  color: #000000;
  text-decoration: none;
}

.post-tags a:hover {
  background: #00C4DD;
}

.tag-icon {
  display: none;
}

/* ---------- Пагинация, каталог, футер ---------- */

.pagination {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 2px dashed rgba(0, 0, 0, 0.35);
}

.pagination a,
#back-to-top {
  width: 44px;
  height: 44px;
  border: 3px solid #000000;
  border-radius: 12px;
  background: #FFD700;
  box-shadow: 3px 3px 0px #000000;
  transition: all 0.2s ease;
}

.pagination a:hover,
#back-to-top:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000000;
}

.directory {
  padding: 1rem;
  border: 3px solid #000000;
  border-radius: 14px;
  background: var(--surface-color);
  box-shadow: 5px 5px 0px #FFD700;
}

.directory h1 {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.directory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
  margin-top: 0.8rem;
}

.directory-list a {
  display: flex;
  min-height: 44px;
  align-items: center;
  overflow-wrap: anywhere;
}

.site-footer {
  margin: 0;
  padding: 1rem;
  border-top: 3px solid #000000;
  background: var(--surface-color);
  color: var(--muted-color);
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
}

.site-footer a {
  color: var(--link-color);
}

#back-to-top {
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
}

#back-to-top img {
  width: 1rem;
  height: 1rem;
  filter: none;
}

/* ---------- Контент сообщения ---------- */

.content {
  color: var(--text-color);
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.content p,
.content ul,
.content ol {
  margin-block: 0.6em;
}

.content ul,
.content ol {
  padding-inline-start: 1.4rem;
}

.content li,
.content a {
  line-break: anywhere;
  overflow-wrap: anywhere;
}

.content h1,
.content h2,
.content h3 {
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
}

/* Цитаты: светло-жёлтая плашка с жёлтой полосой */
.content blockquote,
.content .tg-expandable {
  margin: 8px 0;
  padding: 7px 10px;
  border: 0;
  border-left: 4px solid var(--quote-border);
  border-radius: 0 10px 10px 0;
  background: var(--quote-background);
  color: var(--blockquote-color);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.content .tgme_widget_message_reply {
  display: block;
  margin-bottom: 5px;
  color: inherit;
  text-decoration: none;
}

.content .tgme_widget_message_reply blockquote {
  margin: 0;
}

.content .tgme_widget_message_reply small {
  color: var(--muted-color);
  font-size: 11px;
  line-height: 15px;
}

.content .tgme_widget_message_forwarded_from {
  margin-bottom: 6px;
  color: var(--muted-color);
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
}

.content .tgme_widget_message_forwarded_from > a {
  font-weight: 800;
}

.content pre,
.highlight,
.code {
  max-width: 100%;
  overflow-x: auto;
  border: 2px solid #000000;
  border-radius: 10px;
  background: var(--code-background-color);
  color: var(--code-color);
  box-shadow: inset 4px 0 0 #FFD700;
  font-size: 12px;
  line-height: 17px;
  white-space: pre;
  overflow-wrap: normal;
}

.content pre,
.highlight,
.code {
  padding: 9px 10px;
}

.highlight pre,
.code pre {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.content :not(pre) > code {
  padding: 1px 4px;
  border: 1px solid #000000;
  border-radius: 4px;
  background: var(--code-background-color);
}

.content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* ---------- Медиа: чёрные рамки, скруглённые углы ---------- */

.content img,
.content video,
.content audio,
.content iframe,
.content figure,
.content .image-list-container {
  max-width: 100%;
}

.content img:not(.tg-emoji):not(.sticker):not(.link_preview_image):not(.modal-img),
.content > video:not(.sticker),
.content > iframe {
  display: block;
  width: 100%;
  border: 2px solid #000000;
  border-radius: var(--radius-media);
  background: #f4f1ea;
  box-shadow: none;
}

.content img:not(.tg-emoji):not(.sticker):not(.link_preview_image):not(.modal-img),
.content video:not(.sticker) {
  height: auto;
}

.content > video:not(.sticker) {
  max-height: min(72vh, 34rem);
  object-fit: contain;
}

.content > audio,
.content .tgme_widget_message_voice {
  display: block;
  width: 100%;
  min-height: 40px;
  margin-block: 5px;
}

.content figure {
  margin: 6px 0;
}

.content figcaption {
  color: var(--muted-color);
  font-size: 10.5px;
}

.content .image-list-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: 6px 0;
  overflow: hidden;
  border: 2px solid #000000;
  border-radius: var(--radius-media);
  background: #000000;
}

.content .image-list-container.image-list-odd > .image-preview-button:first-of-type {
  grid-column: 1 / -1;
}

.content .image-preview-button {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: #f4f1ea;
}

.content .image-preview-button img {
  width: 100%;
  height: 100%;
  min-height: 6.5rem;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

.content .sticker {
  display: block;
  width: auto;
  height: auto;
  max-width: min(220px, 72%);
  max-height: 220px;
  margin: 4px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.content .tgme_widget_message_document_wrap,
.content .tgme_widget_message_location_wrap,
.content .tgme_widget_message_video_player.not_supported,
.content .tgme_widget_message_poll {
  max-width: 100%;
  margin: 6px 0;
  padding: 8px;
  overflow: hidden;
  border: 2px solid #000000;
  border-radius: 10px;
  background: #FFF8DC;
  font-size: 12px;
}

/* ---------- Опросы ---------- */

.content .tgme_widget_message_poll_question {
  font-family: Arial, sans-serif;
  font-weight: 800;
}

.content .tgme_widget_message_poll_type,
.content .tgme_widget_message_poll_total {
  color: var(--muted-color);
  font-size: 10.5px;
}

.content .tgme_widget_message_poll_options {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.content .tgme_widget_message_poll_option {
  min-width: 0;
  padding: 5px 7px;
  border: 2px solid #000000;
  border-radius: 8px;
  background: #ffffff;
}

.content .tgme_widget_message_poll_option_percent {
  margin-right: 6px;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

/* ---------- Превью ссылок ---------- */

.content .tgme_widget_message_link_preview:has(.link_preview_site_name) {
  display: block;
  max-width: 100%;
  margin-top: 6px;
  padding: 7px 10px;
  overflow: hidden;
  border: 2px solid #000000;
  border-left: 4px solid #FFD700;
  border-radius: 0 10px 10px 0;
  background: var(--quote-background);
  text-decoration: none;
}

.content .link_preview_site_name {
  display: block;
  color: #0057B8;
  font-size: 10.5px;
  font-weight: 800;
}

.content .link_preview_title {
  display: block;
  color: #000000;
  font-size: 12.5px;
  font-weight: 800;
}

.content .link_preview_description {
  display: block;
  color: #333333;
  font-size: 11px;
}

.content .tgme_widget_message_link_preview:has(.link_preview_image) {
  position: relative;
  display: flex;
  padding: 0;
  overflow: hidden;
  border: 2px solid #000000;
  border-radius: var(--radius-media);
}

.content .link_preview_image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.content .tgme_widget_message_link_preview:has(.link_preview_image) .link_preview_site_name {
  position: absolute;
  bottom: 6px;
  left: 6px;
  max-width: calc(100% - 12px);
  padding: 2px 6px;
  overflow: hidden;
  border: 1px solid #000000;
  border-radius: 6px;
  background: #FFD700;
  color: #000000;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content .tgme_widget_message_link_preview:has(.link_preview_image) .link_preview_title,
.content .tgme_widget_message_link_preview:has(.link_preview_image) .link_preview_description {
  display: none;
}

/* ---------- Раскрышки и модалка ---------- */

.content .tg-expandable {
  position: relative;
  min-height: 48px;
  padding-right: 42px;
}

.content .tg-expandable__toggle {
  right: 3px;
  bottom: 3px;
  width: 34px;
  height: 34px;
  border: 2px solid #000000;
  background: #FFD700;
}

.content .tg-expandable__toggle::after {
  border-left-color: #000000;
  filter: none;
}

.content .tg-expandable:has(.tg-expandable__checkbox:focus-visible) .tg-expandable__toggle,
.content .spoiler-button:has(input:focus-visible) {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}

.content .modal {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.content .modal__close {
  width: 44px;
  height: 44px;
  border: 3px solid #000000;
  background: #FFD700;
  box-shadow: 3px 3px 0px #ffffff;
}

.content .modal-img {
  border: 3px solid #000000;
  border-radius: 12px;
}

/* ---------- Мобильная версия ---------- */

@media (max-width: 37.5rem) {
  .site-header {
    display: grid;
    height: auto;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 4px 7px;
    padding-inline: 10px;
    padding-bottom: 0;
  }

  .site-header > .avatar-link,
  .channel-avatar {
    width: 32px;
    height: 32px;
  }

  .site-header > .title {
    max-width: none;
  }

  .site-navigation {
    grid-column: 1 / -1;
    min-height: 42px;
  }

  .site-navigation > ul {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-navigation a,
  .mobile-search summary,
  .search-submit {
    min-width: 40px;
    min-height: 40px;
  }

  .mobile-search {
    flex: 0 0 40px;
  }

  .mobile-search[open] {
    width: 100%;
    flex-basis: 100%;
  }

  .mobile-search[open] form {
    width: 100%;
  }

  .search-input {
    font-size: 1rem;
  }

  #main-content {
    padding: 10px 8px 14px;
  }

  .posts-feed {
    width: 100%;
  }

  .post-entry {
    grid-template-columns: 28px minmax(0, 1fr);
    width: 100%;
    max-width: none;
    margin-bottom: 12px;
  }

  .post-entry:has(
    .image-list-container,
    video:not(.sticker),
    audio,
    iframe,
    .tgme_widget_message_poll,
    .tgme_widget_message_document_wrap,
    .tgme_widget_message_location_wrap,
    .tgme_widget_message_link_preview,
    pre
  ) {
    width: 100%;
  }

  .post-entry-avatar {
    width: 26px;
    height: 26px;
    margin-top: 8px;
  }

  .post-entry-author,
  .post-content,
  .tg-message-meta,
  .post-reactions,
  .post-tags,
  .post-comments {
    width: 100%;
    max-width: none;
  }

  .post-entry-author {
    padding-top: 6px;
    border-radius: 12px 12px 0 0;
    font-size: 11px;
    line-height: 16px;
  }

  .post-content {
    padding-inline: 11px;
    font-size: 14.5px;
  }

  .tg-message-meta {
    border-radius: 0 0 12px 12px;
  }

  .content .image-preview-button img {
    min-height: 5.5rem;
  }

  .directory-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .content .modal {
    padding: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after,
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root {
    --background-color: #fff;
    --heading-color: #000;
    --text-color: #111;
    --link-color: #000;
    --visited-color: #000;
    --code-background-color: #f2f2f2;
    --code-color: #000;
  }

  html,
  body {
    width: auto;
    max-width: none;
    padding: 0;
    background: #fff;
    color: #111;
    overflow: visible;
  }

  .skip-link,
  .site-navigation,
  .post-entry-avatar,
  .post-reactions,
  .post-comments,
  .pagination,
  .site-footer,
  #back-to-top-wrapper,
  .content .modal,
  .content .tg-expandable__toggle {
    display: none !important;
  }

  .site-header {
    height: auto;
    min-height: 0;
    padding: 0 0 0.6rem;
    border-bottom: 1px solid #777;
    box-shadow: none;
  }

  .site-header > .avatar-link {
    display: none;
  }

  #main-content {
    padding: 0.8rem 0 0;
    background: #fff;
  }

  .posts-feed,
  .post-entry {
    width: 100%;
    max-width: none;
  }

  .post-entry {
    display: block;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #999;
  }

  .post-entry-author,
  .post-content,
  .tg-message-meta {
    width: 100%;
    max-width: none;
    padding-inline: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .post-entry-author {
    background: transparent;
  }

  a:link,
  a:visited {
    color: #000;
    text-decoration: underline;
  }

  .content pre {
    overflow: visible;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .content .tg-expandable__content {
    display: block;
    overflow: visible;
    line-clamp: unset;
    -webkit-line-clamp: unset;
  }
}
