/* =============================================
   BLOG — MOBILE BASE STYLES
   ============================================= */

/* Back link */
.blog_back {
  margin: 0 0 30px 0;
}
.blog_back a {
  font-size: 0.875rem;
  color: rgb(3, 70, 255);
  text-decoration: none;
  font-family: avenir-lt-pro, sans-serif;
  font-weight: 700;
  font-style: normal;
}
.blog_back a:hover {
  text-decoration: underline;
}

/* Blog Index Hero */
.blog_index_hero {
  background-image: url("../images/hero_bg.webp");
  background-size: cover;
  color: rgb(255, 255, 255);
  padding: 60px 0;
  position: relative;
}
.blog_index_hero:before {
  content: "";
  display: block;
  background-color: rgba(3, 70, 255, 0.92);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.blog_index_hero .wrap {
  margin: 0 20px;
  position: relative;
  z-index: 2;
}
.blog_index_hero .wrap h1 {
  font-size: 2rem;
  line-height: 1.15;
  color: rgb(255, 255, 255);
  font-family: avenir-lt-pro, sans-serif;
  font-weight: 700;
  font-style: normal;
  margin: 0 0 12px 0;
}
.blog_index_hero .wrap p {
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.85;
}

/* Blog Post Hero */
.blog_hero {
  background-color: rgb(247, 247, 247);
  padding: 60px 0;
  text-align: center;
}
.blog_hero .wrap {
  margin: 0 20px;
}
.blog_hero .wrap .tag {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgb(3, 70, 255);
  font-family: avenir-lt-pro, sans-serif;
  font-weight: 700;
  font-style: normal;
  display: block;
  margin: 0 0 16px 0;
}
.blog_hero .wrap h1 {
  font-size: 1.75rem;
  line-height: 1.15;
  color: rgb(56, 56, 56);
  font-family: avenir-lt-pro, sans-serif;
  font-weight: 700;
  font-style: normal;
  margin: 0 0 18px 0;
}
.blog_hero .wrap .meta {
  font-size: 0.875rem;
  color: rgb(150, 150, 150);
  margin: 0;
}

/* Blog Layout Container */
.blog_layout {
  margin: 50px 0 0 0;
}
.blog_layout .wrap {
  margin: 0 20px;
}

/* Article Typography */
.blog_article p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgb(56, 56, 56);
  margin: 0 0 22px 0;
}
.blog_article p:last-child {
  margin-bottom: 0;
}
.blog_article h2 {
  font-size: 1.375rem;
  line-height: 1.2;
  color: rgb(3, 70, 255);
  font-family: avenir-lt-pro, sans-serif;
  font-weight: 700;
  font-style: normal;
  margin: 45px 0 14px 0;
}
.blog_article h3 {
  font-size: 1.0625rem;
  line-height: 1.25;
  color: rgb(56, 56, 56);
  font-family: avenir-lt-pro, sans-serif;
  font-weight: 700;
  font-style: normal;
  margin: 32px 0 10px 0;
}
.blog_article .callout {
  background-color: rgb(247, 247, 255);
  border-left: 3px solid rgb(3, 70, 255);
  border-radius: 0 4px 4px 0;
  padding: 18px 22px;
  margin: 32px 0;
  font-size: 1rem;
  line-height: 1.65;
  color: rgb(3, 70, 255);
  font-style: italic;
}
.blog_article .process_list {
  list-style: none;
  margin: 0 0 25px 0;
  padding: 0;
  counter-reset: process;
}
.blog_article .process_list li {
  position: relative;
  padding: 22px 22px 22px 64px;
  background-color: rgb(247, 247, 247);
  border-radius: 6px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgb(56, 56, 56);
  counter-increment: process;
}
.blog_article .process_list li:before {
  content: counter(process);
  position: absolute;
  left: 22px;
  top: 20px;
  font-size: 1.375rem;
  font-family: avenir-lt-pro, sans-serif;
  font-weight: 700;
  font-style: normal;
  color: rgb(3, 70, 255);
  line-height: 1;
}
.blog_article .process_list li strong {
  display: block;
  font-family: avenir-lt-pro, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 0.9375rem;
  margin: 0 0 5px 0;
  color: rgb(56, 56, 56);
}
.blog_article .process_list li + li {
  margin: 8px 0 0 0;
}
.blog_article .bullet_list {
  list-style: none;
  margin: 0 0 22px 0;
  padding: 0;
}
.blog_article .bullet_list li {
  font-size: 1rem;
  line-height: 1.65;
  color: rgb(56, 56, 56);
  padding: 0 0 0 18px;
  position: relative;
  margin: 0 0 8px 0;
}
.blog_article .bullet_list li:before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  background-color: rgb(3, 70, 255);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 9px;
}
.blog_article hr {
  border: 0;
  border-top: 1px solid rgb(220, 220, 220);
  margin: 40px 0;
}

/* Sidebar */
.blog_sidebar {
  margin: 40px 0 0 0;
}
.blog_sidebar .sidebar_card {
  background-color: rgb(247, 247, 247);
  border-radius: 6px;
  padding: 25px;
}
.blog_sidebar .sidebar_card + .sidebar_card {
  margin: 15px 0 0 0;
}
.blog_sidebar .sidebar_card h3 {
  font-size: 1rem;
  font-family: avenir-lt-pro, sans-serif;
  font-weight: 700;
  font-style: normal;
  color: rgb(56, 56, 56);
  margin: 0 0 10px 0;
}
.blog_sidebar .sidebar_card p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgb(99, 99, 99);
  margin: 0 0 16px 0;
}
.blog_sidebar .sidebar_card a.btn {
  display: block;
  text-align: center;
  background-color: rgb(3, 70, 255);
  color: rgb(255, 255, 255);
  font-size: 0.875rem;
  font-family: avenir-lt-pro, sans-serif;
  font-weight: 700;
  font-style: normal;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 20px;
  cursor: pointer;
  -webkit-transition: background-color 200ms ease;
  transition: background-color 200ms ease;
}
.blog_sidebar .sidebar_card a.btn:hover {
  background-color: rgb(2, 55, 200);
}
.blog_sidebar .sidebar_card .api_snippet {
  background-color: rgb(18, 22, 34);
  border-radius: 6px;
  padding: 16px;
  margin: 0 0 16px 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.blog_sidebar .sidebar_card .api_snippet pre {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.6875rem;
  line-height: 1.6;
  color: rgb(200, 210, 240);
  white-space: pre;
  margin: 0;
}
.blog_sidebar .sidebar_card .api_snippet pre .key {
  color: rgb(130, 200, 240);
}
.blog_sidebar .sidebar_card .api_snippet pre .string {
  color: rgb(180, 230, 150);
}
.blog_sidebar .sidebar_card .api_snippet pre .status_ok {
  color: rgb(100, 220, 130);
  font-weight: bold;
}
.blog_sidebar .sidebar_card .api_snippet pre .method {
  color: rgb(100, 180, 255);
  font-weight: bold;
}

/* In-article API preview — tighten margin and remove inner wrap padding */
.blog_article .api_preview {
  margin: 30px 0;
}
.blog_article .api_preview .wrap {
  margin: 0;
  width: auto;
  max-width: none;
}

/* Blog Post Cards (Index page) */
.blog_list {
  margin: 50px 0 70px 0;
}
.blog_list .wrap {
  margin: 0 20px;
}
.blog_list .wrap .posts_grid .blog_card {
  background-color: rgb(247, 247, 247);
  border-radius: 6px;
  padding: 28px;
  text-decoration: none;
  display: block;
  -webkit-transition: background-color 200ms ease;
  transition: background-color 200ms ease;
}
.blog_list .wrap .posts_grid .blog_card:hover {
  background-color: rgb(240, 240, 248);
}
.blog_list .wrap .posts_grid .blog_card + .blog_card {
  margin: 12px 0 0 0;
}
.blog_list .wrap .posts_grid .blog_card .card_tag {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgb(3, 70, 255);
  font-family: avenir-lt-pro, sans-serif;
  font-weight: 700;
  font-style: normal;
  display: block;
  margin: 0 0 10px 0;
}
.blog_list .wrap .posts_grid .blog_card h2 {
  font-size: 1.125rem;
  line-height: 1.3;
  color: rgb(56, 56, 56);
  font-family: avenir-lt-pro, sans-serif;
  font-weight: 700;
  font-style: normal;
  margin: 0 0 10px 0;
  -webkit-transition: color 200ms ease;
  transition: color 200ms ease;
}
.blog_list .wrap .posts_grid .blog_card:hover h2 {
  color: rgb(3, 70, 255);
}
.blog_list .wrap .posts_grid .blog_card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgb(99, 99, 99);
  margin: 0 0 14px 0;
}
.blog_list .wrap .posts_grid .blog_card .card_meta {
  font-size: 0.8125rem;
  color: rgb(150, 150, 150);
  margin: 0;
}
.blog_list .wrap .posts_grid .blog_card .read_link {
  display: inline-block;
  font-size: 0.875rem;
  color: rgb(3, 70, 255);
  font-family: avenir-lt-pro, sans-serif;
  font-weight: 700;
  font-style: normal;
  text-decoration: none;
  margin: 14px 0 0 0;
}
