/**
 * Diademita Editorial Magazine Typography & Layout System (`front_editorial_blog.css`)
 *
 * Fixes legacy `anblog.css` bugs (such as `.blog-description { font-weight: bold; font-size: 15px; }`
 * and `.blog-title { line-height: 1; }`) and elevates every Diademita blog post & listing page
 * to a calm, generous Swiss editorial reading experience.
 */

/* 1. Blog Detail Header & Hero Image */
#module-anblog-blog .blog-detail {
  max-width: 840px;
  margin: 0 auto 3rem auto;
}

#module-anblog-blog .blog-title {
  font-size: clamp(1.85rem, 3.1vw, 2.48rem) !important;
  line-height: 1.24 !important;
  letter-spacing: -0.02em;
  font-weight: 700 !important;
  color: #141416;
  margin: 0 0 16px 0 !important;
}

#module-anblog-blog .blog-detail .blog-meta {
  margin-bottom: 24px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #eeece6;
  gap: 8px 18px;
}

#module-anblog-blog .blog-detail .blog-meta span,
#module-anblog-blog .blog-detail .blog-meta span a {
  font-size: 0.92rem !important;
  color: #71717a !important;
  font-weight: 400 !important;
}

#module-anblog-blog .blog-detail .blog-image {
  margin: 0 0 32px 0 !important;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(20, 20, 22, 0.08);
  background: #f6f5f2;
}

#module-anblog-blog .blog-detail .blog-image img {
  width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 18px;
  object-fit: cover;
}

/* 2. Reset legacy `anblog.css` all-bold 15px inheritance on `.blog-description` */
.blog-detail .blog-description {
  font-weight: 400 !important;
  font-size: 1.08rem !important;
  line-height: 1.82 !important;
  color: #27272a !important;
}

/* Style the `anblog` excerpt lead cleanly above the article body */
.blog-detail .blog-description > p:first-child {
  font-size: 1.18rem !important;
  line-height: 1.68 !important;
  color: #52525b !important;
  font-weight: 400 !important;
  margin: 0 0 2rem 0 !important;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eceae3;
}

/* 3. Editorial Article Typography & Spacing */
.diad-editorial-article,
.diad-ratgeber-article {
  font-weight: 400 !important;
  font-size: 1.075rem;
  line-height: 1.82;
  color: #27272a;
  overflow-wrap: break-word;
}

.diad-editorial-article p,
.diad-ratgeber-article p {
  font-weight: 400 !important;
  font-size: 1.075rem;
  line-height: 1.82;
  color: #27272a;
  margin: 0 0 1.4rem 0 !important;
}

.diad-editorial-article strong,
.diad-ratgeber-article strong {
  font-weight: 650;
  color: #141416;
}

.diad-editorial-article .diad-photo-caption {
  font-size: 0.86rem !important;
  line-height: 1.5 !important;
  color: #71717a !important;
  margin: -0.6rem 0 1.75rem 0 !important;
}

/* GEO Key-Takeaway Callout Box */
.diad-editorial-article .diad-key-takeaway {
  background: #faf9f5;
  border: 1px solid #ebe8df;
  border-left: 4px solid #18181b;
  border-radius: 6px 16px 16px 6px;
  padding: 22px 26px;
  margin: 0 0 2rem 0 !important;
}

.diad-editorial-article .diad-key-takeaway .diad-kicker {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71717a;
  margin-bottom: 8px;
}

.diad-editorial-article .diad-key-takeaway p {
  margin: 0 !important;
  font-size: 1.06rem !important;
  line-height: 1.76 !important;
  color: #18181b !important;
  font-weight: 450 !important;
}

/* Section Headings */
.diad-editorial-article h2,
.diad-ratgeber-article h2 {
  font-size: clamp(1.36rem, 2.2vw, 1.66rem) !important;
  line-height: 1.32 !important;
  letter-spacing: -0.015em;
  font-weight: 700 !important;
  color: #141416 !important;
  margin: 3.1rem 0 1.1rem 0 !important;
}

.diad-editorial-article h3,
.diad-ratgeber-article h3 {
  font-size: 1.14rem !important;
  line-height: 1.42 !important;
  font-weight: 650 !important;
  color: #18181b !important;
  margin: 1.85rem 0 0.55rem 0 !important;
}

/* Lists */
.diad-editorial-article ul,
.diad-editorial-article ol,
.diad-ratgeber-article ul,
.diad-ratgeber-article ol {
  margin: 1.15rem 0 1.85rem 0 !important;
  padding-left: 1.45rem !important;
}

.diad-editorial-article li,
.diad-ratgeber-article li {
  font-weight: 400 !important;
  font-size: 1.05rem;
  line-height: 1.76;
  color: #27272a;
  margin-bottom: 0.82rem;
}

/* Editorial Links */
.diad-editorial-article a,
.diad-ratgeber-article a {
  color: #141416;
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: rgba(20, 20, 22, 0.3);
  text-underline-offset: 3px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.diad-editorial-article a:hover,
.diad-ratgeber-article a:hover {
  color: #0066cc;
  text-decoration-color: #0066cc;
}

/* Comparison Tables */
.diad-editorial-article .diad-swipe-hint {
  font-size: 0.84rem !important;
  color: #71717a !important;
  margin: 0 0 0.6rem 0 !important;
}

.diad-editorial-article .diad-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.6rem 0 2.2rem 0;
  border: 1px solid #e6e4dc;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(20, 20, 22, 0.035);
}

.diad-editorial-article .diad-table-wrap table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.96rem;
  line-height: 1.62;
}

.diad-editorial-article .diad-table-wrap caption {
  text-align: left;
  padding: 15px 20px 12px 20px;
  font-weight: 600;
  font-size: 0.94rem;
  color: #3f3f46;
  background: #fcfbf9;
  border-bottom: 1px solid #efede7;
}

.diad-editorial-article .diad-table-wrap thead th {
  padding: 13px 20px;
  background: #f6f5f0;
  color: #27272a;
  font-size: 0.81rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  border-bottom: 1px solid #e6e4dc;
  vertical-align: top;
}

.diad-editorial-article .diad-table-wrap tbody th,
.diad-editorial-article .diad-table-wrap tbody td {
  padding: 15px 20px;
  border-bottom: 1px solid #f1efe9;
  vertical-align: top;
  font-weight: 400;
  color: #3f3f46;
}

.diad-editorial-article .diad-table-wrap tbody tr:last-child th,
.diad-editorial-article .diad-table-wrap tbody tr:last-child td {
  border-bottom: none;
}

/* Curated Assortment Cards (Price-Free, Natural Titles) */
.diad-editorial-article .diad-product-grid {
  list-style: none !important;
  padding: 0 !important;
  margin: 1.6rem 0 2.4rem 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 16px;
}

.diad-editorial-article .diad-product-card {
  list-style: none !important;
  margin: 0 !important;
  padding: 20px 22px;
  background: #ffffff;
  border: 1px solid #e6e4dc;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.diad-editorial-article .diad-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(20, 20, 22, 0.06);
  border-color: #d4d1c7;
}

.diad-editorial-article .diad-product-card-title {
  display: block;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.4;
  color: #141416;
}

.diad-editorial-article .diad-product-card-sub {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #71717a;
}

.diad-editorial-article .diad-product-card-cta {
  display: inline-block;
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

/* Clean Scannable FAQ Cards */
.diad-editorial-article .diad-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 1.2rem 0 2.2rem 0;
}

.diad-editorial-article .diad-faq-card {
  background: #fafaf7;
  border: 1px solid #ebe9e1;
  border-radius: 14px;
  padding: 18px 22px;
}

.diad-editorial-article .diad-faq-card h3 {
  margin: 0 0 8px 0 !important;
  font-size: 1.07rem !important;
  line-height: 1.42 !important;
  color: #141416 !important;
}

.diad-editorial-article .diad-faq-card p {
  margin: 0 !important;
  font-size: 1rem !important;
  line-height: 1.72 !important;
  color: #3f3f46 !important;
}

/* Bottom Discovery Callout */
.diad-editorial-article .diad-cta-bar {
  padding: 20px 24px;
  background: #f6f5f0;
  border: 1px solid #e5e3da;
  border-radius: 16px;
  line-height: 1.75;
  margin: 2.5rem 0 1.4rem 0;
}

.diad-editorial-article .diad-editorial-note {
  font-size: 0.87rem !important;
  line-height: 1.6 !important;
  color: #71717a !important;
  margin-top: 1rem !important;
}

/* 4. Blog Listing Cards (`#module-anblog-list`, `#module-anblog-category`) */
#module-anblog-list .blog-item .title,
#module-anblog-category .blog-item .title {
  line-height: 1.34 !important;
  letter-spacing: -0.01em;
}

#module-anblog-list .blog-item .blog-shortinfo,
#module-anblog-category .blog-item .blog-shortinfo {
  font-size: 0.98rem !important;
  line-height: 1.65 !important;
  color: #52525b !important;
  font-weight: 400 !important;
}

#module-anblog-list .blog-image img,
#module-anblog-category .blog-image img {
  border-radius: 16px !important;
}

@media (max-width: 767px) {
  .blog-detail .blog-description,
  .diad-editorial-article p,
  .diad-ratgeber-article p {
    font-size: 1.02rem !important;
    line-height: 1.76 !important;
  }

  .diad-editorial-article .diad-key-takeaway {
    padding: 18px 20px;
  }

  .diad-editorial-article h2,
  .diad-ratgeber-article h2 {
    margin-top: 2.4rem !important;
  }
}
