/* ============================================================
   Blog — lista /blog (i /:orgSlug/blog)
   (resolved from BlogGridPage / Tabs / BlogPostsGrid /
    BlogPostCard / BlogPromoCard .module.scss)
   ============================================================ */

.blog-list {
  background-color: #ffffff;
  padding: 68px 16px 136px;
}

@media only screen and (max-width: 991px) {
  .blog-list {
    padding: 24px 16px 80px;
  }
}

.blog-list__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-list__header {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 327px);
  gap: 24px;
  align-items: end;
}

.blog-list__header h1 {
  margin: 0;
  font-family: 'Parkinsans', 'Helvetica Neue', Arial, sans-serif;
  color: #22252a;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: 0;
}

@media only screen and (max-width: 991px) {
  .blog-list__header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-list__header h1 {
    font-size: 24px;
    line-height: 28.8px;
    letter-spacing: 0;
  }
}

/* ─── Search ─────────────────────────────────────────────────────────────── */

.blog-search {
  position: relative;
  display: block;
}

.blog-search input {
  width: 100%;
  height: 36px;
  border: 1px solid #dfe1e6;
  border-radius: 20px;
  background-color: #ffffff;
  color: #22252a;
  padding: 0 16px 0 42px;
  font-family: 'DMSans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
}

.blog-search input::placeholder {
  color: #9096a3;
}

.blog-search input:focus {
  border-color: #e40148;
  outline: 2px solid rgba(228, 1, 72, 0.15);
  outline-offset: 0;
}

.blog-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9096a3;
  pointer-events: none;
  display: block;
}

.blog-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Tabs ───────────────────────────────────────────────────────────────── */

.blog-tabs {
  margin-top: 46px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #dfe1e6;
}

.blog-tabs::-webkit-scrollbar {
  display: none;
}

@media only screen and (max-width: 991px) {
  .blog-tabs {
    margin-top: 24px;
  }
}

.blog-tabs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-flow: row nowrap;
  gap: 24px;
}

.blog-tabs__list[hidden] {
  display: none;
}

.blog-tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  display: block;
  padding: 0 0 7px;
  font-family: 'DMSans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 19.6px;
  color: #22252a;
  text-decoration: none;
  cursor: pointer;
}

.blog-tab:hover {
  color: #0daa76;
}

.blog-tab:focus-visible {
  outline: 2px solid #e40148;
  outline-offset: 2px;
}

.blog-tab--active {
  color: #0daa76;
  border-bottom-color: #0daa76;
}

@media only screen and (max-width: 991px) {
  .blog-tab {
    padding-bottom: 6px;
    font-weight: 400;
  }
}

/* ─── Grid ───────────────────────────────────────────────────────────────── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 583px;
  grid-auto-flow: dense;
  gap: 64px 24px;
  padding-top: 39px;
}

@media only screen and (max-width: 1199px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 583px;
    grid-auto-flow: row;
    gap: 40px 24px;
    padding-top: 24px;
  }
}

@media only screen and (max-width: 640px) {
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 24px;
    padding-top: 18px;
  }
}

.blog-grid__no-results {
  margin: 32px 0 0;
  font-family: 'Parkinsans', 'Helvetica Neue', Arial, sans-serif;
  color: #22252a;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
}

.blog-grid__no-results[hidden] {
  display: none;
}

/* ─── Post card ──────────────────────────────────────────────────────────── */

.blog-card {
  width: 100%;
  height: 583px;
  min-width: 0;
}

.blog-card[hidden] {
  display: none;
}

@media only screen and (max-width: 640px) {
  .blog-card {
    height: auto;
  }

  .blog-card:first-of-type {
    grid-column: 1 / span 1;
    grid-row: 1 / span 1;
  }
}

.blog-card__link {
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: 20px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 16px;
}

.blog-card__link:hover .blog-card__image {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(34, 37, 42, 0.12);
}

.blog-card__link:hover .blog-card__title {
  color: #e40148;
}

.blog-card__link:focus-visible {
  outline: 2px solid #e40148;
  outline-offset: 4px;
}

@media only screen and (max-width: 640px) {
  .blog-card__link {
    height: auto;
  }
}

.blog-card__image {
  width: 100%;
  aspect-ratio: 384 / 316;
  display: block;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.blog-card--low-image .blog-card__image {
  aspect-ratio: 384 / 253;
}

@media only screen and (max-width: 1199px) {
  .blog-card__image,
  .blog-card--low-image .blog-card__image {
    aspect-ratio: 328 / 253;
  }
}

.blog-card__tags {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-flow: row wrap;
  gap: 8px;
}

.blog-card__title {
  margin: 0;
  font-family: 'Parkinsans', 'Helvetica Neue', Arial, sans-serif;
  color: #22252a;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 28.8px;
  letter-spacing: 0;
  transition: color 0.2s ease-in-out;
}

@media only screen and (max-width: 1199px) {
  .blog-card__title {
    font-size: 16px;
    line-height: 22.4px;
    letter-spacing: 0;
  }
}

.blog-card__description {
  margin: 0;
  font-family: 'DMSans', 'Helvetica Neue', Arial, sans-serif;
  color: #020408;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* ─── Promo card ─────────────────────────────────────────────────────────── */

.blog-promo {
  grid-column: 3 / span 1;
  grid-row: 1 / span 1;
  width: 100%;
  align-self: flex-start;
  border-radius: 20px;
  background-color: #eee5e9;
  padding: 40px 40px 64px;
  color: #22252a;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-flow: column nowrap;
  gap: 24px;
}

.blog-promo[hidden] {
  display: none;
}

.blog-promo p,
.blog-promo strong {
  margin: 0;
  font-family: 'DMSans', 'Helvetica Neue', Arial, sans-serif;
  color: #020408;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
}

.blog-promo strong {
  font-weight: 700;
}

.blog-promo--shop {
  background-color: #eee5e9;
}

.blog-promo--org {
  background-color: #f4faff;
}

.blog-promo .blog-promo__inline-highlight {
  color: #e40148;
}

@media only screen and (max-width: 1199px) {
  .blog-promo {
    grid-column: auto;
    grid-row: auto;
    height: 583px;
    align-self: stretch;
    border-radius: 20px;
    padding: 24px 24px 32px;
  }

  .blog-promo p,
  .blog-promo strong {
    font-size: 12px;
    line-height: 16.8px;
  }

  .blog-promo--org {
    height: auto;
    align-self: flex-start;
  }
}

@media only screen and (max-width: 640px) {
  .blog-promo {
    grid-column: 1 / span 1;
    grid-row: 2 / span 1;
    height: auto;
    align-self: flex-start;
  }
}

.blog-promo__heading {
  margin: 0;
  font-family: 'Parkinsans', 'Helvetica Neue', Arial, sans-serif;
  color: #22252a;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 33.6px;
  letter-spacing: 0;
}

.blog-promo__heading span {
  color: #e40148;
  font-weight: 500;
}

@media only screen and (max-width: 1199px) {
  .blog-promo__heading {
    font-size: 16px;
    line-height: 22.4px;
    letter-spacing: 0;
  }
}

.blog-promo__logo {
  width: 100%;
  min-height: 136px;
  border-radius: 20px;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blog-promo__logo img {
  max-width: 220px;
  width: 70%;
  height: auto;
}

@media only screen and (max-width: 1199px) {
  .blog-promo__logo {
    min-height: 86px;
  }

  .blog-promo__logo img {
    max-width: 144px;
  }
}

.blog-promo__button {
  align-self: flex-start;
}

/* ============================================================
   Blog — tagi wpisów
   (resolved from TagChip.module.scss .root + .muted;
    warianty bez tonu renderują się jako bazowy .root)
   ============================================================ */

.blog-tag {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 24px;
  border-radius: 20px;
  border: none;
  padding: 3px 13px;
  font-family: 'DMSans', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: normal;
  white-space: nowrap;
  cursor: default;
  color: inherit;
}

.blog-tag--muted {
  background-color: #f8f9fb;
  color: #9096a3;
}

/* ============================================================
   Blog — artykuł /blog/:postId (i /:orgSlug/blog/:postId)
   (resolved from BlogArticlePage.module.scss)
   Promo card współdzielona z blog-grid.css (.blog-promo),
   tagi z blog-tags.css.
   ============================================================ */

.blog-article {
  background-color: #ffffff;
  padding: 84px 16px 136px;
}

@media only screen and (max-width: 991px) {
  .blog-article {
    padding: 24px 16px 80px;
  }
}

.blog-article__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-article__header {
  width: 100%;
  max-width: 944px;
  margin: 0 auto;
}

.blog-article__header h1 {
  max-width: 760px;
  margin: 28px 0 24px;
  font-family: 'Parkinsans', 'Helvetica Neue', Arial, sans-serif;
  color: #22252a;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: 0;
}

.blog-article__header.blog-article__header__fullwidth h1 {
  max-width: 100%;
}

@media only screen and (max-width: 991px) {
  .blog-article__header h1 {
    margin: 18px 0 16px;
    font-size: 24px;
    line-height: 28.8px;
    letter-spacing: 0;
  }
}

.blog-article__breadcrumb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-flow: row nowrap;
  gap: 16px;
}

.blog-article__breadcrumb {
  color: #22252a;
  text-decoration: none;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16.8px;
}

.blog-article__breadcrumb::after {
  content: ' /';
}

.blog-article__breadcrumb:hover {
  color: #e40148;
}

.blog-article__share {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid #22252a;
  border-radius: 50%;
  background-color: #ffffff;
  color: #22252a;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blog-article__share:hover {
  color: #e40148;
  border-color: #e40148;
}

.blog-article__share:focus-visible {
  outline: 2px solid #e40148;
  outline-offset: 3px;
}

@media only screen and (max-width: 991px) {
  .blog-article__share {
    width: 28px;
    height: 28px;
    border: none;
  }
}

.blog-article__lead {
  max-width: 760px;
  margin: 0;
  color: #22252a;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
}

@media only screen and (max-width: 991px) {
  .blog-article__lead {
    font-size: 12px;
    line-height: 16.8px;
  }
}

.blog-article__tags {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-flow: row wrap;
  gap: 8px;
}

@media only screen and (max-width: 991px) {
  .blog-article__tags {
    margin-top: 16px;
  }
}

.blog-article__hero {
  display: block;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 640 / 360;
  margin-top: 40px;
  margin-left: calc((100% - 944px) / 2 + 280px + 24px);
  border-radius: 20px;
  object-fit: cover;
}

@media only screen and (max-width: 976px) {
  .blog-article__hero {
    max-width: 640px;
    margin-right: auto;
    margin-left: auto;
  }
}

@media only screen and (max-width: 991px) {
  .blog-article__hero {
    margin-top: 24px;
    aspect-ratio: 328 / 184;
    border-radius: 12px;
  }
}

.blog-article__hero__fullwidth {
  display: block;
  width: 100%;
  max-width: 944px;
  margin: 24px auto;
  
}

.blog-article__hero__fullwidth img {
  display: block;
  max-width: 100%;
  border-radius: 20px;
  margin:0 auto;
}

.blog-article__grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 640px);
  gap: 24px;
  justify-content: center;
  align-items: start;
  margin-top: 56px;
}

.blog-article__fullwidth {
  width: 100%;
  max-width: 944px;
  margin: 0 auto;
}

@media only screen and (max-width: 976px) {
  .blog-article__grid {
    grid-template-columns: minmax(0, 640px);
    margin-top: 32px;
  }
}

.blog-promo--article {
  grid-column: auto;
  grid-row: auto;
  height: auto;
  min-height: 0;
  padding: 32px 32px 40px;
  border-radius: 16px;
}

@media only screen and (max-width: 976px) {
  .blog-promo--article {
    order: 2;
    width: 100%;
    height: auto;
    margin: 8px 0 16px;
    padding: 24px;
  }
}

.blog-article__content {
  min-width: 0;
  color: #020408;
}

.blog-article__content p,
.blog-article__content ul,
.blog-article__content ol {
  margin: 0 0 20px;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
}

.blog-article__content ul li,
.blog-article__content ol li{
  margin-left: 1.3em;
}

.blog-article__content a{
  font-size: 16px;
  text-decoration: underline;
  text-underline-position: from-font;
}

.blog-article__content a:hover{
  opacity: 0.7;
}

@media only screen and (max-width: 991px) {
  .blog-article__content p,
  .blog-article__content ul,
  .blog-article__content ol {
    font-size: 12px;
    line-height: 16.8px;
  }

  .blog-article__content a{
    font-size: 12px;
  }
}

.blog-article__section {
  margin-top: 32px;
}

.blog-article__content h2,
.blog-article__section h2,
.blog-article__content h3,
.blog-article__section h3 {
  margin: 0 0 18px;
  font-family: 'Parkinsans', 'Helvetica Neue', Arial, sans-serif;
  color: #22252a;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 28.8px;
  letter-spacing: 0;
}

@media only screen and (max-width: 991px) {
  .blog-article__section {
    margin-top: 24px;
  }

  .blog-article__content h2,
  .blog-article__section h2,
  .blog-article__content h3,
  .blog-article__section h3 {
    font-size: 16px;
    line-height: 22.4px;
    letter-spacing: 0;
  }
}

.blog-article__location-title {
  margin-bottom: 8px !important;
  color: #22252a;
  font-weight: 500;
}

.blog-article__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 40px 0 36px;
}

.blog-article__gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 20px;
  object-fit: cover;
}

@media only screen and (max-width: 991px) {
  .blog-article__gallery {
    gap: 8px;
    margin: 24px 0;
  }

  .blog-article__gallery img {
    border-radius: 12px;
  }
}

.blog-article__not-found {
  width: 100%;
  max-width: 944px;
  margin: 0 auto;
  font-family: 'Parkinsans', 'Helvetica Neue', Arial, sans-serif;
  color: #22252a;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 28.8px;
}

.blog-article__not-found[hidden] {
  display: none;
}
