@charset "UTF-8";
#main_content .content_wrap .input {
  border-color: #e0e0e0;
}

.term_banner {
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: var(--theme-radius-lg, 16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.term_banner a, .term_banner picture, .term_banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.content_wrap {
  display: flex;
  width: 100%;
  gap: 20px;
}
.content_wrap.no_sidebar .sidebar {
  display: none;
}
.content_wrap .content_section {
  flex-grow: 1;
  width: 100%;
  padding: 28px;
  border-radius: var(--theme-radius-lg, 16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
@media (max-width: 640px) {
  .content_wrap .content_section {
    padding: 18px;
  }
}
.content_wrap .content_section h1.title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 900;
  color: #1e293b;
  padding-bottom: 20px;
  margin: 0 0 24px;
  border-bottom: 0px solid #f1f5f9;
}
.content_wrap .content_section h1.title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 24px;
  background: var(--color-primary);
  border-radius: 9999px;
  flex-shrink: 0;
}
.content_wrap .sidebar {
  width: 270px;
  flex-shrink: 0;
}
@media (max-width: 1024px) {
  .content_wrap {
    flex-direction: column;
  }
  .content_wrap .sidebar {
    width: 100%;
  }
}

.post_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}
@media (min-width: 1025px) {
  .post_grid .post_item {
    width: calc((100% - (var(--post-grid-desktop, 3) - 1) * 20px) / var(--post-grid-desktop, 3));
  }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .post_grid .post_item {
    width: calc((100% - (var(--post-grid-tablet, 3) - 1) * 20px) / var(--post-grid-tablet, 3));
  }
}
@media (max-width: 768px) and (min-width: 701px) {
  .post_grid .post_item {
    width: calc((100% - (var(--post-grid-mobile, 3) - 1) * 20px) / var(--post-grid-mobile, 3));
  }
}
@media (max-width: 700px) and (min-width: 501px) {
  .post_grid .post_item {
    width: calc((100% - (var(--post-grid-mobile, 2) - 1) * 20px) / var(--post-grid-mobile, 2));
  }
}
@media (max-width: 500px) {
  .post_grid .post_item {
    width: calc((100% - (var(--post-grid-mobile, 1) - 1) * 20px) / var(--post-grid-mobile, 1));
  }
}

.archive-empty {
  margin-top: 28px;
  padding: 32px 20px;
  text-align: center;
  border: 1px dashed var(--color-border);
  border-radius: var(--theme-radius-md, 12px);
  background: var(--color-surface-soft);
  color: var(--color-text);
}
.archive-empty .archive-empty-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: var(--theme-radius-sm, 8px);
  background: var(--color-surface);
  color: var(--color-text-muted);
}
.archive-empty .archive-empty-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.archive-empty strong {
  font-size: 14px;
  font-weight: 700;
}
.archive-empty p {
  margin: 6px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.9;
}

#archive_desc {
  margin-bottom: 60px;
}
@media (max-width: 1024px) {
  #archive_desc {
    margin-bottom: 20px;
  }
}
@media (max-width: 480px) {
  #archive_desc {
    margin-bottom: 12px;
  }
}
#archive_desc > .title {
  text-align: right;
  font-weight: bold;
  font-size: 18px;
  color: #333;
  padding-bottom: 10px;
  margin-bottom: 15px;
  position: relative;
  border-bottom: 1px solid var(--color-primary);
}
#archive_desc h1, #archive_desc h2, #archive_desc h3, #archive_desc h4, #archive_desc h5, #archive_desc h6 {
  color: var(--color-primary);
}
#archive_desc ul {
  list-style: none;
  padding-right: 10px;
}
#archive_desc ul li {
  position: relative;
}
#archive_desc ul li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 5px;
  margin-left: 5px;
  position: relative;
  top: 2px;
}
#archive_desc ol {
  padding-right: 26px;
}
#archive_desc ol li::marker {
  color: var(--color-primary);
}

.ma_post_list > .title {
  color: var(--color-primary);
  padding: 0 0 10px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--color-primary);
  font-weight: bold;
}
.ma_post_list .ma_post {
  display: flex;
  align-items: start;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dfdfdf;
  position: relative;
}
.ma_post_list .ma_post:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.ma_post_list .ma_post:hover .title {
  color: var(--color-primary);
  right: 5px;
}
.ma_post_list .ma_post img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  margin-left: 7px;
  border: 1px solid #dfdfdf;
}
.ma_post_list .ma_post .title {
  color: #424242;
  font-size: 13px;
  transition: 0.3s all ease;
  position: relative;
  right: 0;
}

/*==================================================
  لینک های دسته و برچسب
==================================================*/
/*قبل از اجرای جاوا اسکریپت فقط ردیف های اولیه دیده شوند (هماهنگ با initial_rows در اسکریپت)*/
.ma_term_links_wrap:not(.is_ready) .ma_term_links {
  max-height: 88px;
}

.ma_term_links_wrap {
  color: var(--color-text);
  margin-bottom: 30px;
}
.ma_term_links_wrap .ma_term_links_head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border-bottom: 0;
  padding-bottom: 0;
  margin: 0 0 30px;
}
.ma_term_links_wrap .ma_term_links_head h1.title {
  padding-bottom: 0;
  margin: 0;
  border-bottom: 0;
}
.ma_term_links_wrap .ma_term_links_head .ma_term_links_count {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--color-surface-soft);
  border: 1px solid transparent;
  border-radius: var(--theme-radius-md, 12px);
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.ma_term_links_wrap .ma_term_links_search {
  position: relative;
  width: 190px;
  max-width: 100%;
  min-width: 0;
  margin-right: auto;
}
@media (max-width: 640px) {
  .ma_term_links_wrap .ma_term_links_search {
    width: 100%;
  }
}
.ma_term_links_wrap .ma_term_links_search .icon {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
.ma_term_links_wrap .ma_term_links_search[hidden] {
  display: none;
}
.ma_term_links_wrap .ma_term_links_search input {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  padding: 0 38px 0 14px;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--theme-radius-sm, 0px);
  font-family: inherit;
  font-size: 13px;
  line-height: 16px;
  color: var(--color-text);
  direction: rtl;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ma_term_links_wrap .ma_term_links_search input::placeholder {
  color: #94a3b8;
  opacity: 1;
}
.ma_term_links_wrap .ma_term_links_search input:focus, .ma_term_links_wrap .ma_term_links_search input:focus-visible {
  background: var(--color-surface);
  box-shadow: 0 0 0 3px var(--color-brand-soft);
  border-color: var(--color-primary);
  outline: none;
}
.ma_term_links_wrap .ma_term_links_label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
}
.ma_term_links_wrap .ma_term_links_no_result {
  display: none;
  padding: 4px 0;
  text-align: right;
  font-size: 12px;
  line-height: 16px;
  color: #94a3b8;
}
.ma_term_links_wrap .ma_term_links_no_result.active {
  display: block;
}
.ma_term_links_wrap .show_control {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}
.ma_term_links_wrap .show_control.is_hidden {
  display: none;
}
.ma_term_links_wrap .show_control button {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--theme-radius-sm, 8px);
  background: var(--color-surface-soft);
  font-family: inherit;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ma_term_links_wrap .show_control button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.ma_term_links_wrap .show_control button.active {
  display: inline-flex;
}
.ma_term_links_wrap .show_control button.ma_expand {
  color: var(--color-text-muted);
}
.ma_term_links_wrap .show_control button.ma_expand::before {
  content: "+";
  margin-inline-end: 4px;
}
.ma_term_links_wrap .show_control button.ma_expand:hover, .ma_term_links_wrap .show_control button.ma_expand:focus-visible {
  filter: none;
  background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface));
  border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-surface));
  color: var(--color-primary);
}
.ma_term_links_wrap .show_control button.ma_collapse {
  color: var(--color-error-text);
  border-color: color-mix(in srgb, var(--color-error-text) 28%, var(--color-surface));
  background: color-mix(in srgb, var(--color-error-text) 8%, var(--color-surface));
}
.ma_term_links_wrap .show_control button.ma_collapse::before {
  content: "−";
  margin-inline-end: 4px;
}
.ma_term_links_wrap .show_control button.ma_collapse:hover, .ma_term_links_wrap .show_control button.ma_collapse:focus-visible {
  filter: none;
  background: color-mix(in srgb, var(--color-error-text) 12%, var(--color-surface));
  border-color: color-mix(in srgb, var(--color-error-text) 35%, var(--color-surface));
  color: var(--color-error-text);
}

.ma_term_links {
  overflow: hidden;
}
.ma_term_links .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ma_term_links .inner .ma_term_link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: auto;
  min-width: 62px;
  min-height: 34px;
  margin: 0;
  padding: 6px 14px;
  overflow: hidden;
  appearance: none;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--theme-radius-sm, 0px);
  color: var(--color-text-muted);
  font-size: 12.5px;
  line-height: 16px;
  font-weight: 500;
  list-style: none;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.ma_term_links .inner .ma_term_link.is_hidden {
  display: none;
}
.ma_term_links .inner .ma_term_link:hover, .ma_term_links .inner .ma_term_link:focus-visible {
  filter: none;
  background: var(--color-brand-soft);
  border-color: color-mix(in srgb, var(--color-primary) 30%, var(--color-surface));
  color: var(--color-primary);
}
.ma_term_links .inner .ma_term_link .image {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.ma_term_links .inner .ma_term_link .image img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.ma_term_links .inner .ma_term_link span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 16px;
  text-align: center;
  font-family: inherit;
  color: inherit;
  font-weight: inherit;
}

html.dark .term_banner,
html.dark .content_wrap .content_section {
  border-color: var(--dark-border);
}
html.dark .content_section h1.title {
  color: var(--dark-text-color);
  border-bottom-color: var(--dark-border);
}
html.dark .ma_term_links_wrap {
  color: var(--dark-text-color);
}
html.dark .ma_term_links_wrap .ma_term_links_head {
  border-bottom-color: var(--dark-border);
}
html.dark .ma_term_links_wrap .ma_term_links_head .ma_term_links_count {
  border-color: var(--dark-border);
}
html.dark .ma_term_links_wrap .ma_term_links_search input {
  border-color: var(--dark-border);
  color: var(--dark-text-color);
}
html.dark .ma_term_links_wrap .ma_term_links_search input:focus, html.dark .ma_term_links_wrap .ma_term_links_search input:focus-visible {
  background: var(--dark-box-back);
  border-color: var(--color-primary);
}
html.dark #archive_desc > .title {
  color: var(--dark-text-color);
}
html.dark #archive_desc a, html.dark #archive_desc h1, html.dark #archive_desc h2, html.dark #archive_desc h3, html.dark #archive_desc h4, html.dark #archive_desc h5, html.dark #archive_desc h6 {
  color: color-mix(in srgb, var(--color-secondary) 80%, #fff);
}

.archive-heading {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
  align-items: start;
  gap: 16px;
  margin-bottom: 24px;
}
.archive-heading > h1.title {
  margin: 0;
  padding: 6px 0;
  border: 0;
  grid-column: 1;
  grid-row: 1;
}
.archive-heading:not(:has(> .adv-archive-mount)) > h1.title {
  grid-column: 1/-1;
}
.archive-heading > .adv-archive-mount {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}
.archive-heading > .ma_term_links_wrap {
  grid-column: 1/-1;
  grid-row: 2;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.archive-heading > .ma_term_links_wrap .ma_term_links_head {
  display: none;
}
.archive-heading > .ma_term_links_wrap .show_control .ma_term_links_search {
  display: none;
  width: min(180px, 45vw);
  margin: 0;
}
.archive-heading > .ma_term_links_wrap .show_control.is-expanded {
  padding-inline: 6px;
  gap: 8px;
}
.archive-heading > .ma_term_links_wrap .show_control.is-expanded .ma_term_links_search {
  display: block;
}
.archive-heading > .ma_term_links_wrap .show_control.is-expanded .ma_term_links_search input {
  height: 34px;
}
.archive-heading > .ma_term_links_wrap .show_control .ma_expand {
  font-weight: 400;
  border-style: dashed;
  background: var(--color-surface);
}
.archive-heading > .ma_term_links_wrap .show_control .ma_expand::before {
  content: none;
}
.archive-heading > .ma_term_links_wrap .show_control .ma_expand::after {
  content: "⌄";
  margin-inline-start: 6px;
}
@media (max-width: 900px) {
  .archive-heading {
    grid-template-columns: minmax(0, 1fr);
  }
  .archive-heading > .adv-archive-mount {
    grid-column: 1;
    grid-row: 2;
  }
  .archive-heading > .ma_term_links_wrap {
    grid-row: 3;
  }
}
