/* ============================================
   Telegram Blog Article Content Styles
   Extracted from telegram.org css/telegram.css
   Used by: blog-contact.php + editor preview
   ============================================ */

/* Base content typography */
#dev_page_content,
#dev_page_content p {
  font-size: 14px;
  line-height: 1.5;
}

#dev_page_content img.icon {
  vertical-align: top;
  width: auto;
  height: 20px;
}

#dev_page_content img.emoji {
  width: 1.285em !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: text-bottom;
}

#dev_page_content img.icon,
#dev_page_content img.emoji {
  -webkit-user-drag: none;
  user-drag: none;
  cursor: text;
}

/* Wrappers */
#dev_page_content_wrap {
  padding: 20px 0;
  max-width: 800px;
  margin: 0 auto;
  direction: ltr;
}

#dev_page_content_wrap.is_rtl {
  direction: rtl;
}

#dev_page_title {
  position: static;
  margin-bottom: 20px;
  line-height: 1.3;
}

/* Breadcrumbs */
.dev_page_bread_crumbs .breadcrumb {
  margin-bottom: 10px;
  border-radius: 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  margin: 20px 0 10px 0;
  position: relative;
}

a.anchor {
  text-decoration: none;
  line-height: 1;
  margin-left: -22px;
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
}

.anchor-icon::before {
  content: '¶';
  font-size: 20px;
  color: #179cde;
}

/* Blockquote */
blockquote {
  border-left: 4px solid #179cde;
  padding: 5px 17px;
  margin: 15px 0;
}

blockquote p {
  font-size: 14px;
  font-weight: normal;
  line-height: 20px;
  margin-bottom: 10px;
}

/* Lists */
#dev_page_content > ul:not(.nav),
#dev_page_content ul.bulleted {
  list-style-type: none;
  padding-left: 10px;
}

#dev_page_content ul.bulleted li {
  background-image: url(../img/bullet.png?3);
  background-repeat: no-repeat;
  background-position: 0px 8px;
  padding-left: 20px;
  margin-bottom: 4px;
}

.is_rtl #dev_page_content ul.bulleted li {
  background-position: 100% 8px;
  padding-left: 0;
  padding-right: 20px;
}

#dev_page_content > ol {
  padding-left: 25px;
}

#dev_page_content > ol > li {
  padding-left: 5px;
  margin-bottom: 4px;
}

#dev_page_content > ul:not(.nav) li,
#dev_page_content > ol:not(.nav) ul:not(.nav) li,
#dev_page_content ul.bulleted li {
  background-image: url(../img/bullet.png?3);
  background-repeat: no-repeat;
  background-position: 0px 8px;
  padding-left: 20px;
  margin-bottom: 4px;
}

.is_rtl #dev_page_content > ul:not(.nav) li,
.is_rtl #dev_page_content > ol:not(.nav) ul:not(.nav) li,
.is_rtl #dev_page_content ul.bulleted li {
  background-position: 100% 8px;
  padding-left: 0;
  padding-right: 20px;
}

ul ul, ol ul, ul ol, ol ol {
  margin-bottom: 8.5px;
}

/* Tables */
.table td, .table th {
  border-top-color: #eee;
}

/* Code blocks */
#dev_page_content pre {
  overflow-x: auto;
  border-radius: 4px;
  background: #ecf3f8;
  padding: 9.5px;
  margin: 0 0 10px;
}

#dev_page_content pre code {
  overflow-wrap: normal;
  white-space: pre;
  font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 20px;
}

#dev_page_content .richcode {
  display: block;
  padding: 9.5px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 20px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  color: #546172;
  background: #ecf3f8;
  font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
}

#dev_page_content .richcode code {
  background: #FFF;
}

.richcode p:last-child {
  margin-bottom: 0;
}

/* Links */
#dev_page_content a.current_page_link {
  color: #468847;
  text-decoration: underline;
}

#dev_page_content a.nonexisting_page_link {
  color: #FF0000;
  text-decoration: underline;
}

/* Blog images */
.blog_wide_image img {
  width: 100%;
  padding-bottom: 20px;
}

.blog_wide_image a {
  display: block;
}

.blog_image_wrap {
  width: 275px;
  margin: 10px auto 20px;
}

.blog_image_wrap a {
  display: block;
}

.blog_image_wrap img {
  width: 275px;
  padding: 10px 5px;
}

.blog_medium_image_wrap,
.blog_medium_image_wrap img {
  width: 400px;
}

.blog_wide_image_wrap,
.blog_wide_image_wrap img {
  width: 100%;
  max-width: auto;
}

/* #dev_page_content specific image rules */
#dev_page_content .blog_wide_image img {
  width: 100%;
  padding-bottom: 20px;
}

#dev_page_content .blog_image_wrap {
  width: 275px;
  margin: 10px auto 20px;
}

#dev_page_content .blog_image_wrap img {
  /*width: 275px;*/
  padding: 10px 5px;
}

#dev_page_content .blog_image_wrap p,
#dev_page_content .blog_video_player_wrap p {
  text-align: center;
  color: #808080;
  font-size: 12px;
  margin: 10px 0 0;
  line-height: 150%;
  padding: 0 10px;
}

/* Video player */
.blog_video_player_wrap {
  max-width: 600px;
  margin: 20px auto 20px;
  text-align: center;
}

.blog_video_player_wrap video {
  max-width: 600px;
  width: 100%;
}

/* Side image */
.blog_side_image_wrap {
  margin: 0 0 20px 0;
}

.blog_side_image {
  max-width: 160px;
}

/* Footer */
.blog_footer {
  font-style: italic;
}

/* Two/three images */
.blog_2images_wrap,
.blog_3images_wrap {
  margin: 20px 0;
}

/* Dev side image */
.dev_side_image {
  max-width: 200px;
  float: right;
  padding: 0 0 0 20px;
}

.dev_side_image img {
  max-width: 180px;
}

.dev_side_image picture {
  max-width: 180px;
}

#dev_page_content .dev_side_image {
  max-width: 200px;
  float: right;
  padding: 0 0 0 20px;
}
