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;
}


.md-typeset .success>.admonition-title:before, 
.md-typeset .success>summary:before,
.md-typeset .tip>.admonition-title:before, 
.md-typeset .tip>summary:before,
.md-typeset .info>.admonition-title:before, 
.md-typeset .info>summary:before,
.md-typeset .example>.admonition-title:before, 
.md-typeset .example>summary:before,
.md-typeset .abstract>.admonition-title:before, 
.md-typeset .abstract>summary:before,
.md-typeset .note>.admonition-title:before, 
.md-typeset .note>summary:before {
  background-color: rgba(0, 148, 133, .65);
}

.md-typeset .admonition.success, 
.md-typeset details.success,
.md-typeset .admonition.tip, 
.md-typeset details.tip,
.md-typeset .admonition.info, 
.md-typeset details.info,
.md-typeset .admonition.example, 
.md-typeset details.example,
.md-typeset .admonition.abstract, 
.md-typeset details.abstract,
.md-typeset .admonition.note, 
.md-typeset details.note {
  border-color: rgba(0, 148, 133, .65);
}

.md-typeset .success>.admonition-title, 
.md-typeset .success>summary,
.md-typeset .tip>.admonition-title, 
.md-typeset .tip>summary,
.md-typeset .info>.admonition-title, 
.md-typeset .info>summary,
.md-typeset .example>.admonition-title, 
.md-typeset .example>summary,
.md-typeset .abstract>.admonition-title, 
.md-typeset .abstract>summary,
.md-typeset .note>.admonition-title, 
.md-typeset .note>summary {
    background-color: rgba(0, 148, 133, .2);
}

.md-typeset .admonition.success:focus-within,
.md-typeset details.success:focus-within,
.md-typeset .admonition.tip:focus-within,
.md-typeset details.tip:focus-within,
.md-typeset .admonition.info:focus-within,
.md-typeset details.info:focus-within,
.md-typeset .admonition.example:focus-within,
.md-typeset details.example:focus-within,
.md-typeset .admonition.abstract:focus-within,
.md-typeset details.abstract:focus-within,
.md-typeset .admonition.note:focus-within,
.md-typeset details.note:focus-within {
  background-color: rgba(0, 148, 133, .05);
}


:root {
  --md-admonition-icon--summary: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px"><path d="M200-200v-560 454-85 191Zm0 80q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v320h-80v-320H200v560h280v80H200Zm494 40L552-222l57-56 85 85 170-170 56 57L694-80ZM348.5-451.5Q360-463 360-480t-11.5-28.5Q337-520 320-520t-28.5 11.5Q280-497 280-480t11.5 28.5Q303-440 320-440t28.5-11.5Zm0-160Q360-623 360-640t-11.5-28.5Q337-680 320-680t-28.5 11.5Q280-657 280-640t11.5 28.5Q303-600 320-600t28.5-11.5ZM440-440h240v-80H440v80Zm0-160h240v-80H440v80Z"/></svg>')
}
.md-typeset .admonition.summary,
.md-typeset details.summary {
  border-color: rgba(0, 148, 133, .65);
}
.md-typeset .summary > .admonition-title,
.md-typeset .summary > summary {
  background-color: rgba(0, 148, 133, .2);
}
.md-typeset .summary > .admonition-title::before,
.md-typeset .summary > summary::before {
  background-color: rgba(0, 148, 133, .65);
  -webkit-mask-image: var(--md-admonition-icon--summary);
          mask-image: var(--md-admonition-icon--summary);
}
.md-typeset .admonition.summary:focus-within,
.md-typeset details.summary:focus-within {
  background-color: rgba(0, 148, 133, .05);
}

:root {
  --md-admonition-icon--bookmark: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="m389-400 91-55 91 55-24-104 80-69-105-9-42-98-42 98-105 9 80 69-24 104ZM200-120v-640q0-33 23.5-56.5T280-840h400q33 0 56.5 23.5T760-760v640L480-240 200-120Zm80-122 200-86 200 86v-518H280v518Zm0-518h400-400Z"/></svg>');
}
.md-typeset .admonition.bookmark,
.md-typeset details.bookmark {
  border-color: rgba(0, 148, 133, .65);
}
.md-typeset .bookmark > .admonition-title,
.md-typeset .bookmark > bookmark {
  background-color: rgba(0, 148, 133, .2);
}
.md-typeset .bookmark > .admonition-title::before,
.md-typeset .bookmark > bookmark::before {
  background-color: rgba(0, 148, 133, .65);
  -webkit-mask-image: var(--md-admonition-icon--bookmark);
          mask-image: var(--md-admonition-icon--bookmark);
}
.md-typeset .admonition.bookmark:focus-within,
.md-typeset details.bookmark:focus-within {
  background-color: rgba(0, 148, 133, .05);
}

.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__text {
  font-size: .55rem;
  line-height: .8rem;
  padding: .2rem;
}

.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;
  background-color: currentColor;
  -webkit-mask-image: url("/assets/i/material/arrow_right.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("/assets/i/material/arrow_right.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.banner-custom__action--blank::after {
  -webkit-mask-image: url("/assets/i/material/north_east.svg");
  mask-image: url("/assets/i/material/north_east.svg");
}
