﻿/* Module CSS: articles */
[data-route="articles"] .articles-module {
  min-width: 0;
}

[data-route="articles"] .page-hero {
  position: relative;
  overflow: hidden;
  border-color: rgb(255 255 255 / .32);
  background:
    radial-gradient(circle at 78% 20%, rgb(255 255 255 / .18), transparent 34%),
    linear-gradient(90deg, rgb(120 53 15 / .84), rgb(217 119 6 / .52) 52%, rgb(254 243 199 / .22)),
    url("../../img/module-hero-articles.png") center / cover no-repeat;
  box-shadow: none;
  color: white;
}

[data-route="article_propose"] .page-hero {
  position: relative;
  overflow: hidden;
  border-color: rgb(255 255 255 / .32);
  background:
    radial-gradient(circle at 78% 20%, rgb(255 255 255 / .18), transparent 34%),
    linear-gradient(90deg, rgb(120 53 15 / .84), rgb(217 119 6 / .52) 52%, rgb(254 243 199 / .22)),
    url("../../img/module-hero-articles.png") center / cover no-repeat;
  box-shadow: none;
  color: white;
}

[data-route="articles"] .articles-hero-title {
  margin: .15rem 0 .35rem;
  font-family: inherit;
  color: white;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
}

[data-route="articles"] .page-hero .eyebrow,
[data-route="articles"] .page-hero .help,
[data-route="article_propose"] .page-hero .eyebrow,
[data-route="article_propose"] .page-hero .help {
  color: rgb(241 245 249 / .92);
}

[data-route="article_propose"] .page-hero h1 {
  color: white;
}

[data-route="articles"] .articles-search-panel {
  margin-top: 1rem;
}

[data-route="articles"] .articles-search-form {
  margin: 0;
}

[data-route="articles"] .articles-hero-side {
  display: grid;
  gap: .65rem;
  justify-items: end;
}

[data-route="articles"] .articles-hero-stats {
  justify-self: flex-end;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: min(100%, 24rem);
}

[data-route="articles"] .articles-hero-stats article {
  border-color: rgb(255 255 255 / .32);
  background: rgb(255 255 255 / .16);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16);
  backdrop-filter: blur(8px);
}

[data-route="articles"] .articles-hero-stats strong {
  color: #000;
  text-align: center;
}

[data-route="articles"] .articles-hero-stats span {
  color: #000;
}

[data-route="articles"] .articles-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}

[data-route="articles"] .articles-hero-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

[data-route="articles"] .articles-category-dialog {
  width: min(94vw, 620px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--text);
}

[data-route="articles"] .articles-category-dialog::backdrop {
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(5px);
}

[data-route="articles"] .articles-category-dialog-card {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  [data-route="articles"] .articles-hero-side,
  [data-route="articles"] .articles-hero-actions {
    justify-items: start;
    justify-content: flex-start;
    width: 100%;
  }

}
