img.image {
  border: 1px solid #9e9e9e;
  border-radius: 4px;
  box-shadow: var(--md-shadow-z1);
}

img.border {
  border: 1px solid #9e9e9e;
  box-shadow: var(--md-shadow-z1);
}

img.round {
  border-radius: 4px;
}

.grid {
  grid-gap: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.grid:has(> *:only-child) {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 43.3rem) {
  .grid:has(> *:only-child) {
    grid-template-columns: unset;
  }
}

.grid article {
  margin-bottom: 0;
}

.grid article .preview {
  display: none;
  margin-bottom: 1rem;
}

.grid > article .preview a {
  display: block;
  width: 100%;
  height: 100%;
}

.grid article .intro {
  white-space: break-spaces;
  margin-bottom: .75rem;
}

.grid article .md-post__action .twemoji {
  vertical-align: middle;
}

.grid--homepage > article:first-child {
  grid-column: 1 / -1;
  border-bottom: .05rem solid var(--md-default-fg-color--lightest);
  padding-bottom: 2.5rem;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  grid-gap: 2rem;
}

@media (max-width: 43.3rem) {
  .grid--homepage > article:first-child {
    flex-direction: column;
  }
}

.grid--homepage > article:first-child > div {
  width: 50%;
}

@media (max-width: 43.3rem) {
  .grid--homepage > article:first-child > div {
    width: 100%;
  }
}

.grid--homepage > article:first-child .preview {
  display: block;
}

.grid--categorypage {
  margin-top: 2rem;
}

.grid--categorypage > article .preview {
  display: block;
  width: 100%;
  height: 10rem;
  opacity: .75;
  position: relative;
}

.grid--categorypage > article .preview img {
  max-height: 100%;
  max-width: 80%;
}

@media (max-width: 43.3rem) {
  .grid--categorypage > article .preview {
    text-align: center;
  }
}

.grid--categorypage > article .preview:hover {
  opacity: 1;
}

.green {
  color: green;
}

.red {
  color: #cc0000;
}

.toc_preview {
  margin-bottom: 1em;
  max-width: 100%;
}

.md-header__option .md-icon svg {
  width: 1rem;
  height: 1rem;
}

.gm-footer {
  background: var(--md-primary-fg-color);
  padding: 1.4rem 0;
}

.gm-footer__body {
  max-width: 61rem;
  margin: 0 auto;
  padding: 0 264px;
}

.gm-footer__title {
  margin: 0 !important;
}

.gm-footer__text {
  margin-top: .5rem;
}

.gm-footer__actions {
  margin-top: .6rem;
}

.gm-footer__actions .md-button {
  color: #fff;
  padding: .35rem .75rem;
  background: transparent;
}

.gm-footer__actions .md-button:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .2);
}

.gm-footer__body {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.gm-footer__body::before {
  content: "";
  width: 7rem;
  height: 7rem;
  background: url( "/assets/i/footer.webp" ) transparent no-repeat 0 0;
  background-size: contain;
  flex-shrink: 0;
}

@media (max-width: 76.2344em) {
  .gm-footer__body {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 40em) {
  
  .gm-footer__body {
    flex-direction: column;
    gap: 0;
  }

  .gm-footer__title {
    text-align: center;
  }

  .gm-footer__text {
    text-align: center;
  }

  .gm-footer__actions {
    text-align: center;
  }
}

figure.gm-figure {
  background:#f0f0f0;
  margin-top:.5rem;
  margin-bottom:.5rem;
  width:100%;
}

.gs-banner {
  background: #F5F9FF;
  padding: .5rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.gs-banner .gs-banner-image {
  max-width: 30%;
  flex-shrink: 0;
}

@media (max-width: 33em) {
  .gs-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 0;
  }

  .gs-banner .gs-banner-image {
    max-width: 50%;
  }
}


.gs-comment {
  background: #F5F5F5;
  padding: .5rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.gs-comment .gs-comment-image {
  max-width: 25%;
  flex-shrink: 0;
}

.gs-comment .gs-comment-image img {
  border-radius: 100%;
}

@media (max-width: 33em) {

  .gs-comment {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 0;
  }

  .gs-comment .gs-comment-image {
    max-width: 50%;
  }

}

.md-pagination {
  margin-top: 2rem;
}

.banner-custom {
  margin-top: .8rem;
  margin-bottom: .8rem;
  padding: .6rem .6rem 0 .6rem;
}

.banner-custom__title {
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .7rem;
}

.banner-custom__title::before {
  content: "";
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-right: .2rem;
}

.banner-custom__title--telegram::before {
  background: url( "/assets/i/fontawesome/telegram.svg" ) transparent no-repeat 0 0;
  background-size: contain;
}

.banner-custom__title--notifications::before {
  background: url( "/assets/i/material/notifications.svg" ) transparent no-repeat 0 0;
  background-size: contain;
}

.banner-custom__text {
  font-size: .55rem;
  line-height: .8rem;
  padding: .2rem;
}

.banner-custom__icons {
  display: flex;
  gap: .3rem;
}

.banner-custom__icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  color: #000 !important;
  background-color: currentColor;
  opacity: .85;

  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;

  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.banner-custom__icon:hover {
  opacity: 1;
}

.banner-custom__icon--telegram {
  -webkit-mask-image: url("/assets/i/fontawesome/telegram.svg");
  mask-image: url("/assets/i/fontawesome/telegram.svg");
  color: #46A2DC !important;
}

.banner-custom__icon--x {
  -webkit-mask-image: url("/assets/i/fontawesome/x.svg");
  mask-image: url("/assets/i/fontawesome/x.svg");
}

.banner-custom__icon--facebook {
  -webkit-mask-image: url("/assets/i/fontawesome/facebook.svg");
  mask-image: url("/assets/i/fontawesome/facebook.svg");
  color: #2B65F7 !important;
}

.banner-custom__icon--linkedin {
  -webkit-mask-image: url("/assets/i/fontawesome/linkedin.svg");
  mask-image: url("/assets/i/fontawesome/linkedin.svg");
  color: #2764C0 !important;
}

.banner-custom__icon--youtube {
  -webkit-mask-image: url("/assets/i/fontawesome/youtube.svg");
  mask-image: url("/assets/i/fontawesome/youtube.svg");
  color: #EC0000 !important;
}

.banner-custom__icon--discord {
  -webkit-mask-image: url("/assets/i/fontawesome/discord.svg");
  mask-image: url("/assets/i/fontawesome/discord.svg");
  color: #5A63EE !important;
}

.banner-custom__action {
  margin-top: -.2rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .7rem;
  padding: .2rem;
}

.banner-custom__action::after {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: .2rem;
  
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-image: url("/assets/i/material/arrow_right.svg");
  
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  mask-image: url("/assets/i/material/arrow_right.svg");

  background-color: currentColor;
  color: #3E95F6 !important;
}

.banner-custom__action--blank::after {
  -webkit-mask-image: url("/assets/i/material/north_east.svg");
  mask-image: url("/assets/i/material/north_east.svg");
}

.banner-custom__action:hover::after {
  color: #5188FF !important;
}