/*
 * Webasyst Default 4.0 theme family
 *
 * Blog app CSS
 * (requires linking base default.css file from the Site app)
 *
 * @link http://www.webasyst.com/
 * @author Webasyst LLC
 * @copyright 2015 Webasyst LLC
 * @package Webasyst
 *
 * ... extends base Site app's default.css
 */

:root {
    --comment-new-bg: light-dark(color-mix(in srgb, var(--accent-color) 15%, white 0%), color-mix(in srgb, var(--accent-color) 10%, black 0%));
}

@supports not (color: light-dark(white, black)) {
    :root {
        --comment-new-bg: color-mix(in srgb, var(--accent-color) 15%, white 0%);
    }
}

.sidebar .search { margin: 16px 26px 16px 16px; }
.sidebar .search .search-wrapper { background: #fff; }
.sidebar .search input { margin-bottom: 0; }
.sidebar .timeline { margin-top: 0; }
.sidebar .timeline li a {
    padding:         0;
    display:         block;
    text-decoration: none;
    font-size:       16px;
}
.sidebar .timeline li a:not(:last-child) {
    margin-bottom:   8px;
}
.sidebar .timeline ul {
    padding-left:  0;
    margin-bottom: 0;
    list-style:    none;
}
.sidebar .timeline li:not(:last-child) ul {
    margin-bottom: 32px;
}

.sidebar .timeline ul a {
    padding:   3px 0;
    font-size: 14px;
}

.subscribe { }
.subscribe ul { list-style: none; padding-left: 0; margin-bottom: 0; margin-top: 0; }
.subscribe ul li:not(:last-child) { margin-bottom: 12px; }
.subscribe ul li a { text-decoration: none; font-size: 16px; color: var(--text-color-secondary); }
.subscribe ul li i.icon16 { margin-top: 0.1em; margin-right: 0.5em; width: 24px; height: 24px; background-position: 0 -50px;}
.subscribe #twitter-follow-code { overflow: hidden; }

.post { margin-bottom: 20px; padding: 30px; background-color: var(--bg-gray-color); box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06); border-radius: var(--element-border-radius); }
.post h3 { font-size: 2em; margin-right: 5px; margin-bottom: 24px; }
.post h3 a { text-decoration: none; }
.post img { max-width: 100%; height: auto !important; }
.post iframe { max-width: 100%; }
.post .text { margin-top: 5px; margin-right: 10px; font-size: 16px;}
.post textarea { width: 100%; min-height: 300px; margin-top: 10px; height: 250px; }
.post.search-match { margin-top: 20px; margin-bottom: 50px; }
.post.search-match h3 { font-size: 1.5em; margin-bottom: 5px; }
.post.search-match p { margin-top: 5px; }
.post li, .post lh { line-height: 1.4em; }

.credentials { overflow: hidden; line-height: 1.3em; }
.credentials a,
.credentials span:not(.staff) { display: inline-block; vertical-align: middle; padding-left: 0; }
.credentials .staff { background-color: var(--bg_tr_25); }
.credentials .userpic { min-width: 20px; display: block; float: left; margin-right: 2px; border-radius: 50%; }
.credentials .username { margin: 0; }
.credentials .username, .credentials .username a { color: var(--text-color-secondary); padding: 0; display: inline; font-size: 16px; }
.credentials a.username:hover { color: red; }
.credentials .date {color: var(--text-color-additional);}
.credentials .date,
.credentials .icon16 { margin: 0 3px; }
.credentials img.userpic { width: 20px; }
.post .credentials { margin-bottom: 24px;}

.photo-album-attachment ul.thumbs { padding-left: 0; }
.photo-album-attachment ul.thumbs li { list-style: none; display: inline-block; margin: 0 20px 20px 0; }
.photo-album-attachment .photo { margin-bottom: 20px; }
.photo-album-attachment .photo img { margin-top: -10px; }
.post .photo-album-attachment { padding-top: 10px; }

.comments { margin-top: 50px; }
.comments h3 { margin: 0; font-size: 24px; }
.comments h4 { margin: 0 0 10px; }
.comments .credentials .date { margin: 0 5px; padding-top: 1px; }
.comments .credentials .userpic { margin-right: 5px; }
.comments .credentials .userpic.icon16 { min-width: 0; width: 16px; height: 16px; margin: 7px 4px 0; }
.comments textarea { height: 100px; min-height: 100px; width: 75%; margin-top: 0; }
.comments ul { padding: 0; margin: 0 0 20px 0; list-style: none;}
.comments ul li:not(:last-child) { margin-bottom: 1rem; }
.comments ul li ul { margin: 20px 0 0 0; }
.comments ul li span.hint a { color: #aaa; text-decoration: underline; }
.comments .text { color:#808080;font-size: 14px; word-break: break-word; }
.comments .actions { margin-top: 8px; font-size: 0.9em; }
.comments ul li a.comment-delete { margin: 0 0 0 5px; padding: 0; color: #d99; text-decoration: underline; }
.comments ul li a.comment-delete:hover { background: red; color: white; }
.comments ul li ul { padding-left: 18px; }
.comments ul li .comment-form { margin-top: 16px; }
.comments ul li .comment-form textarea { min-height: 100px; }
.comment { border: 1px solid var(--divider-color); border-radius: var(--element-border-radius);background: var(--bg_tr_8); padding: 18px;}
.comment.in-reply-to { position: relative; }
.comment.new { background: var(--comment-new-bg); margin-left: -13px; }
.comment .credentials { margin-bottom: 16px; }

ul.auth-type { padding: 0 0 10px !important; list-style: none; }
ul.auth-type li { padding-right: 10px; display: inline-block; float: left \9; display: inline \9; }
ul.auth-type li a { padding: 5px 6px; }
ul.auth-type li a img { margin-right: 5px; top: 4px; position: relative; }

.comment-form { padding: 0; margin-top: 30px; }
.comment-form h4 { margin: 0 0 20px; font-weight: normal; }
.comment-form-fields p { margin: 0 0 10px; }
.comment-form-fields p a { display: inline !important; }
.comment-form-fields label { width: 160px; display: block; clear: left; float: left; margin: 0 10px 0 0; color: #aaa; padding-top: 3px; }
.comment-form-fields input { width: 20em; }
.comment-form textarea { min-width: 70%; min-height: 160px; }
.comment-form .comment-submit { }
.comment-form .userpic { width: 20px; height: 20px; float: left; margin-right: 5px; border-radius: 50%; }
.comment-form ul.menu-h.auth-type li a img { float: left; margin-right: 3px; position: relative; top: 2px; }
.comment-form ul.menu-h.auth-type { padding-bottom: 20px; }

.pageless-wrapper { font-style: italic; }

html.realtime-preview,
html.realtime-preview body { background: #fff; }
html.realtime-preview .globalheader,
html.realtime-preview .globalfooter { display: none; }
html.realtime-preview .content { margin-right: 0; }
html.realtime-preview .page { top: 0; margin: 10px 0; }

/* Plugins
---------- */

ul.menu-v.categories { }
ul.menu-v.categories li { border: none; }
ul.menu-v.categories li:not(:last-child)  { margin-bottom: 16px; }
ul.menu-v.categories li a { padding: 0; }
ul.menu-v.categories li.selected a { color: #000; text-decoration: none; font-weight: bold; }

.tags.cloud { text-align: center; }


/* TABLET
========= */

@media screen and (min-width: 760px) and (max-width: 1024px) {

    .post { overflow-x: hidden; }

    .comment-form-fields input,
    .comment-form textarea { width: auto; min-width: 0; }

    .subscribe { padding-left: 10px; padding-right: 10px; }

}


/* MOBILE
========= */

@media screen and (max-width: 760px) {

    .category-plugin,
    .tag-plugin,
    .nav-sidebar hr,
    .timeline { display: none; }

    .subscribe ul li { display: inline-block; }

    .subscribe ul li a span { display: none; }

    .subscribe #twitter-follow-code { display: none; }

    .post { margin-right: 0 !important; overflow-x: hidden; }

    .post h3 { font-size: 1.6em; }

    .post img { max-width: 100%; height: auto !important; }

    .comment-form-fields label { width: auto; float: none; }

    .comment-form-fields input { width: 80%; }

    .comment-form textarea { width: 90%; }

    .comment-form .comment-submit { padding-left: 0; }

    .comment-form .wa-captcha img { margin-bottom: 10px; }

    html.realtime-preview body { padding-top: 0; }

    html.realtime-preview .container { margin: 0 10px; }

    html.realtime-preview .post h1 { font-size: 2.6em; }

}


/* Biolica editorial article layout: light paper canvas, no dark card. */
body {
  background: #f6f3eb !important;
  color: #1d2928 !important;
}
.maincontent,
.maincontent > .container {
  background: transparent !important;
}
.post {
  background: #ffffff !important;
  border: 1px solid rgba(23, 75, 73, .10);
  border-radius: 20px !important;
  box-shadow: 0 12px 34px rgba(29, 41, 40, .10) !important;
  color: #1d2928 !important;
}
.post h1 {
  color: #174b49 !important;
  font-size: clamp(2rem, 4vw, 3.2rem) !important;
  line-height: 1.12 !important;
  margin: 0 0 18px !important;
}
.post .credentials {
  color: #6b7b78 !important;
  margin-bottom: 28px !important;
}
.post .credentials .username,
.post .credentials .date {
  color: #6b7b78 !important;
}
.post .text {
  color: #1d2928 !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  margin-right: 0 !important;
}
.post .text figure {
  margin: 0 0 30px !important;
}
.post .text figure img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 16px;
}
.post .text h2,
.post .text h3 {
  color: #174b49 !important;
  line-height: 1.25 !important;
  margin-top: 34px !important;
}
.post .text a {
  color: #174b49 !important;
}
.post .text blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid #d9a441;
  background: #f6f3eb;
  border-radius: 0 12px 12px 0;
}
@media screen and (max-width: 760px) {
  .post {
    padding: 20px !important;
    border-radius: 16px !important;
  }
  .post h1 {
    font-size: 2rem !important;
  }
  .post .text {
    font-size: 16px !important;
    line-height: 1.62 !important;
  }
  .post .text figure {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .post .text figure img {
    max-height: none;
    border-radius: 12px;
  }
}

/* Biolica compact blog stream 2026-08-31 */
#post-stream {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

#post-stream > .post {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e3e8e5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(29, 41, 40, 0.08);
}

#post-stream > .post h3 {
  order: 2;
  margin: 18px 20px 8px;
  font-size: 21px;
  line-height: 1.2;
}

#post-stream > .post h3 a {
  color: #173f3d !important;
  text-decoration: none;
}

#post-stream > .post .credentials {
  order: 3;
  margin: 0 20px 20px;
  color: #6b7b78 !important;
  font-size: 13px;
}

#post-stream > .post .text {
  order: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #52625f !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

#post-stream > .post .text figure {
  height: 220px;
  margin: 0;
  overflow: hidden;
  background: #f6f3eb;
}

#post-stream > .post .text figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

#post-stream > .post .text > p:first-of-type {
  display: -webkit-box;
  margin: 0 20px 18px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#post-stream > .post .text > h2,
#post-stream > .post .text > h3,
#post-stream > .post .text > p:not(:first-of-type),
#post-stream > .post .text > ul,
#post-stream > .post .text > ol,
#post-stream > .post .text > blockquote,
#post-stream > .post .text > .photo-album-attachment,
#post-stream > .post .text_before,
#post-stream > .post .text_after {
  display: none;
}

#post-stream > .post:first-of-type {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas:
    "image title"
    "image excerpt"
    "image credentials";
  min-height: 340px;
}

#post-stream > .post:first-of-type h3 {
  grid-area: title;
  align-self: end;
  margin: 30px 32px 10px;
  font-size: 30px;
}

#post-stream > .post:first-of-type .credentials {
  grid-area: credentials;
  align-self: start;
  margin: 0 32px 30px;
}

#post-stream > .post:first-of-type .text {
  display: contents;
}

#post-stream > .post:first-of-type .text figure {
  grid-area: image;
  height: 100%;
  min-height: 340px;
}

#post-stream > .post:first-of-type .text > p:first-of-type {
  grid-area: excerpt;
  align-self: start;
  display: -webkit-box;
  margin: 0 32px;
  font-size: 17px !important;
  line-height: 1.55 !important;
  -webkit-line-clamp: 4;
}

#post-stream > .post:first-of-type .text > h2,
#post-stream > .post:first-of-type .text > h3,
#post-stream > .post:first-of-type .text > p:not(:first-of-type),
#post-stream > .post:first-of-type .text > ul,
#post-stream > .post:first-of-type .text > ol,
#post-stream > .post:first-of-type .text > blockquote {
  display: none;
}

@media screen and (max-width: 900px) {
  #post-stream {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  #post-stream > .post:first-of-type {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "image"
      "title"
      "excerpt"
      "credentials";
  }

  #post-stream > .post:first-of-type .text figure {
    height: 260px;
    min-height: 0;
  }

  #post-stream > .post:first-of-type h3 {
    margin: 20px 20px 8px;
    font-size: 24px;
  }

  #post-stream > .post:first-of-type .text > p:first-of-type {
    margin: 0 20px 10px;
    font-size: 15px !important;
  }

  #post-stream > .post:first-of-type .credentials {
    margin: 0 20px 20px;
  }
}

@media screen and (max-width: 560px) {
  #post-stream {
    grid-template-columns: minmax(0, 1fr);
  }

  #post-stream > .post .text figure {
    height: 210px;
  }

  #post-stream > .post h3 {
    font-size: 20px;
  }
}

#post-stream > .pageless-wrapper {
  grid-column: 1 / -1;
  width: 100%;
}


/* Biolica editorial stream 2026-08-31 */
.row:has(#post-stream) > .col.w3 { display: none; }
.row:has(#post-stream) > .col.w9 { width: 100%; }
.row:has(#post-stream) > .col.w9 > .content.with-sidebar { width: 100%; }
#post-stream > h1 { display: none; }

.biolica-blog-hero {
    position: relative;
    min-height: 300px;
    margin: 0 0 24px;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(18,56,54,.92) 0%, rgba(18,56,54,.68) 40%, rgba(18,56,54,.12) 100%),
        url("https://biolica.pro/wa-data/public/site/themes/free/img/promoone.png?v=1788071511") center/cover no-repeat;
    color: #fff;
}
.biolica-blog-hero__copy { max-width: 620px; padding: 58px 56px; }
.biolica-blog-hero__eyebrow {
    display: block;
    margin-bottom: 14px;
    color: #d8edb8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.biolica-blog-hero h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 700;
}
.biolica-blog-hero p {
    max-width: 560px;
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: 17px;
    line-height: 1.5;
}
.biolica-blog-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}
.biolica-blog-topics a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid rgba(20,75,72,.16);
    border-radius: 999px;
    background: #fff;
    color: #174a48;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.biolica-blog-topics a:hover,
.biolica-blog-topics a.is-active {
    border-color: #174a48;
    background: #174a48;
    color: #fff;
}

@media (max-width: 900px) {
    .biolica-blog-hero__copy { padding: 44px 36px; }
    .biolica-blog-hero h1 { font-size: 36px; }
}
@media (max-width: 560px) {
    .biolica-blog-hero { min-height: 260px; border-radius: 18px; }
    .biolica-blog-hero__copy { padding: 34px 24px; }
    .biolica-blog-hero h1 { font-size: 30px; }
    .biolica-blog-hero p { font-size: 15px; }
    .biolica-blog-topics { gap: 8px; margin-bottom: 22px; }
    .biolica-blog-topics a { min-height: 34px; padding: 7px 12px; font-size: 12px; }
}


/* Biolica editorial card order 2026-08-31 */
#post-stream > .post:not(:first-child) .text { order: 2; }
#post-stream > .post:not(:first-child) h3 { order: 1; }
#post-stream > .post:not(:first-child) .credentials { order: 3; }

/* Biolica search and reusable article blocks 2026-08-31 */
#post-stream:has(> h1) .biolica-blog-hero,
#post-stream:has(> h1) .biolica-blog-topics { display: none; }
#post-stream:has(> h1) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#post-stream:has(> h1) > h1 { display: block; grid-column: 1 / -1; margin: 0; color: #174a48; font-size: 32px; }
#post-stream:has(> h1) > a[name] { display: none; }
#post-stream:has(> h1) > .post.search-match { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0 0 20px; border: 1px solid rgba(20,75,72,.12); border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 10px 25px rgba(20,75,72,.08); }
#post-stream:has(> h1) > .post.search-match::before { content: ""; display: block; width: 100%; height: 170px; flex: 0 0 170px; background: center / cover no-repeat; }
#post-stream:has(> h1) > .post.search-match#post-8::before { background-image: url("https://nsgroup.webasyst.cloud/wa-data/public/blog/img/article-01-proverka-produkta.png"); }
#post-stream:has(> h1) > .post.search-match#post-7::before { background-image: url("https://nsgroup.webasyst.cloud/wa-data/public/blog/img/article-02-chaga-sostav.png"); }
#post-stream:has(> h1) > .post.search-match#post-6::before { background-image: url("https://nsgroup.webasyst.cloud/wa-data/public/blog/img/article-03-maitake-x-fraction.png"); }
#post-stream:has(> h1) > .post.search-match#post-5::before { background-image: url("https://nsgroup.webasyst.cloud/wa-data/public/blog/img/article-04-reishi-polysaccharides.png"); }
#post-stream:has(> h1) > .post.search-match#post-4::before { background-image: url("https://nsgroup.webasyst.cloud/wa-data/public/blog/img/article-05-shiitake-lentinan.png"); }
#post-stream:has(> h1) > .post.search-match#post-3::before { background-image: url("https://nsgroup.webasyst.cloud/wa-data/public/blog/img/article-06-trametes-psk-krestin.png"); }
#post-stream:has(> h1) > .post.search-match#post-2::before { background-image: url("https://nsgroup.webasyst.cloud/wa-data/public/blog/img/article-07-lions-mane-erinacines.png"); }
#post-stream:has(> h1) > .post.search-match#post-1::before { background-image: url("https://nsgroup.webasyst.cloud/wa-data/public/blog/img/article-08-grain-mycelium.png"); }
#post-stream:has(> h1) > .post.search-match h3 { order: 1; margin: 20px 22px 8px; color: #174a48; font-size: 20px; line-height: 1.2; }
#post-stream:has(> h1) > .post.search-match p { order: 2; margin: 0 22px 12px; color: #55706e; font-size: 14px; line-height: 1.5; }
#post-stream:has(> h1) > .post.search-match .hint { order: 3; margin: 0 22px; color: #82908e; font-size: 12px; }
#post-stream:has(> h1) > .pageless-wrapper { grid-column: 1 / -1; }
.biolica-article-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 28px 0 34px; }
.biolica-article-toc, .biolica-article-products { padding: 22px 24px; border: 1px solid rgba(20,75,72,.12); border-radius: 18px; background: #f3f7f3; }
.biolica-article-tools__eyebrow { display: block; margin-bottom: 9px; color: #6a8b53; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.biolica-article-tools strong { display: block; margin-bottom: 13px; color: #174a48; font-size: 20px; line-height: 1.2; }
.biolica-article-toc__list { margin: 0; padding-left: 20px; color: #315c58; }
.biolica-article-toc__list li { margin: 7px 0; padding-left: 3px; }
.biolica-article-toc__list a, .biolica-article-products__links a { color: #174a48; text-decoration: none; }
.biolica-article-toc__list a:hover, .biolica-article-products__links a:hover { color: #6a8b53; text-decoration: underline; }
.biolica-article-products__links { display: grid; gap: 9px; }
.biolica-article-products__links a { display: block; padding: 9px 11px; border-radius: 10px; background: #fff; font-size: 14px; }
@media (max-width: 900px) {
    #post-stream:has(> h1) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .biolica-article-tools { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    #post-stream:has(> h1) { grid-template-columns: 1fr; gap: 16px; }
    #post-stream:has(> h1) > h1 { font-size: 26px; }
    #post-stream:has(> h1) > .post.search-match::before { height: 155px; flex-basis: 155px; }
    .biolica-article-tools { gap: 12px; margin: 22px 0 28px; }
    .biolica-article-toc, .biolica-article-products { padding: 18px; }
}