/*
 * DSC Editorial design system (deadsea-cosmetic.com blog)
 * Loaded by mu-plugins/dsc-editorial.php on single posts only.
 * Scope: .dsc-article (the theme-post-content widget in template 6930),
 * plus .dsc-* helper classes used in the single-post template.
 * !important is used ONLY where it overrides inline styles baked into old post HTML.
 */

:root {
  /* Color */
  --dsc-ink: #1d2125;          /* body text, 15.8:1 on white */
  --dsc-heading: #101317;      /* headings */
  --dsc-muted: #5a6168;        /* meta, captions, 6.2:1 */
  --dsc-accent: #1f6f8b;       /* links, CTA (Dead Sea blue), 5.7:1 */
  --dsc-accent-strong: #154f63;/* hover */
  --dsc-accent-soft: #eaf3f6;  /* CTA hover fill */
  --dsc-sand: #f6f3ee;         /* info boxes */
  --dsc-border: #e3dfd8;       /* rules, table lines */
  --dsc-white: #ffffff;

  /* Type */
  --dsc-font-body: "Lora", Georgia, "Times New Roman", serif;
  --dsc-font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dsc-text: 17px;            /* mobile body */
  --dsc-text-sm: 15px;
  --dsc-text-xs: 13px;
  --dsc-lh: 1.7;
  --dsc-h1: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem); /* 28 to 42 */
  --dsc-h2: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);   /* 24 to 30 */
  --dsc-h3: clamp(1.25rem, 1.12rem + 0.5vw, 1.4375rem);/* 20 to 23 */
  --dsc-h4: 1.125rem;                                   /* 18 */

  /* Space (4px base) */
  --dsc-s1: 4px; --dsc-s2: 8px; --dsc-s3: 12px; --dsc-s4: 16px;
  --dsc-s5: 24px; --dsc-s6: 32px; --dsc-s7: 48px; --dsc-s8: 64px;

  --dsc-measure: 720px;
  --dsc-radius: 6px;
}
@media (min-width: 1025px) {
  :root { --dsc-text: 18px; }
}

/* ---------- Article container ---------- */
/* width (720px) is set on the widget in template 6930 */
body .elementor-widget.dsc-article {
  color: var(--dsc-ink);
  font-family: var(--dsc-font-body);
  font-size: var(--dsc-text);
  line-height: var(--dsc-lh);
}
body .dsc-article .elementor-widget-text-editor,
body .dsc-article .elementor-widget-container {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* Body copy */
body .dsc-article :is(p, li, dd, dt, td, th, figcaption, blockquote) {
  color: var(--dsc-ink);
  font-family: var(--dsc-font-body);
  font-size: var(--dsc-text);
  line-height: var(--dsc-lh);
  letter-spacing: normal;
}
body .dsc-article p {
  margin: 0 0 var(--dsc-s5);
}

/* ---------- Headings ---------- */
body .dsc-article :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--dsc-font-ui);
  color: var(--dsc-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  text-align: left;
}
body .dsc-article h1 { font-size: var(--dsc-h1); line-height: 1.2; margin: var(--dsc-s7) 0 var(--dsc-s4); }
body .dsc-article h2 { font-size: var(--dsc-h2); line-height: 1.25; margin: var(--dsc-s7) 0 var(--dsc-s4); }
body .dsc-article h3 { font-size: var(--dsc-h3); line-height: 1.3; margin: var(--dsc-s6) 0 var(--dsc-s3); font-weight: 650; }
body .dsc-article :is(h4, h5, h6) { font-size: var(--dsc-h4); line-height: 1.4; margin: var(--dsc-s5) 0 var(--dsc-s2); font-weight: 650; }
body .dsc-article > :first-child :is(h2, h3):first-child,
body .dsc-article :is(h2, h3) + :is(h2, h3) { margin-top: var(--dsc-s4); }

/* Old markup: inline weight/size/family/color/alignment inside headings */
body .dsc-article :is(h1, h2, h3, h4, h5, h6) :is(span, b, strong, em, font, a) {
  font-weight: inherit !important;
  font-size: inherit !important;
  font-family: inherit !important;
  color: inherit !important;
}
body .dsc-article :is(h1, h2, h3, h4, h5, h6)[style] {
  text-align: left !important;
  color: var(--dsc-heading) !important;
}

/* Linked headings (product names): look like headings, subtle hover */
body .dsc-article :is(h1, h2, h3, h4, h5, h6) a,
body .dsc-article :is(h1, h2, h3, h4, h5, h6) a :is(span, b, strong) {
  color: inherit !important;
  text-decoration: none !important;
}
body .dsc-article :is(h1, h2, h3, h4, h5, h6) a {
  transition: color .15s ease;
}
body .dsc-article :is(h1, h2, h3, h4, h5, h6) a:hover {
  color: var(--dsc-accent) !important;
}
body .dsc-article :is(h1, h2, h3, h4, h5, h6) a:focus-visible {
  outline: 2px solid var(--dsc-accent);
  outline-offset: 2px;
}

/* ---------- Links in body text ---------- */
body .dsc-article a {
  color: var(--dsc-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  font-weight: inherit;
}
body .dsc-article a:hover { color: var(--dsc-accent-strong); text-decoration-thickness: 2px; }
body .dsc-article a:focus-visible { outline: 2px solid var(--dsc-accent); outline-offset: 2px; border-radius: 2px; }
/* inline colors baked on links or their children */
body .dsc-article a[style] { color: var(--dsc-accent) !important; }
body .dsc-article a :is(span, b, strong, em, u, font) {
  color: inherit !important;
  text-decoration: inherit !important;
}
/* image links: no underline gap */
body .dsc-article a:has(> img) { text-decoration: none; }

/* ---------- Normalize pasted inline styles (Word, Google Docs, Amazon) ---------- */
body .dsc-article :is(p, li, span, div, b, strong, em, i, u, font, td, th)[style*="color"] {
  color: inherit !important;
  background-color: transparent !important;
}
body .dsc-article :is(p, li, span, b, strong, em, i, font, td, th)[style*="font-family"] { font-family: inherit !important; }
body .dsc-article :is(p, li, span, b, strong, em, i, font)[style*="font-size"] { font-size: inherit !important; }
body .dsc-article :is(p, li, span)[style*="line-height"] { line-height: inherit !important; }
body .dsc-article :is(span, li, p)[style*="font-weight: 400"] { font-weight: inherit !important; }
body .dsc-article span[style*="text-decoration"] { text-decoration: inherit !important; }
body .dsc-article p[style*="justify"] { text-align: left !important; }
body .dsc-article p[style*="text-indent"] { text-indent: 0 !important; }
body .dsc-article p[style*="margin"] { margin: 0 0 var(--dsc-s5) !important; }
/* centered text paragraphs read badly; keep centering only for media */
body .dsc-article p[style*="center"]:not(:has(img, iframe, video, .dsc-cta)) { text-align: left !important; }
body .dsc-article font { color: inherit; font-family: inherit; font-size: inherit; }

/* ---------- Emphasis ---------- */
body .dsc-article :is(strong, b) { font-weight: 700; color: inherit; }
body .dsc-article :is(em, i) { font-style: italic; }

/* ---------- Lists ---------- */
body .dsc-article :is(ul, ol) {
  margin: 0 0 var(--dsc-s5);
  padding-left: 1.4em;
}
body .dsc-article li {
  margin: 0 0 var(--dsc-s2);
  padding-left: 0.2em;
}
body .dsc-article li > :is(ul, ol) { margin: var(--dsc-s2) 0 0; }
body .dsc-article li > p { margin: 0; }
body .dsc-article ul > li::marker { color: var(--dsc-accent); }
body .dsc-article ol > li::marker { color: var(--dsc-muted); font-family: var(--dsc-font-ui); font-weight: 700; font-size: 0.9em; }
/* Amazon pasted bullets */
body .dsc-article .a-list-item { display: inline; }

/* ---------- Media ---------- */
body .dsc-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--dsc-radius);
}
body .dsc-article img[style*="float"],
body .dsc-article img.alignleft,
body .dsc-article img.alignright {
  float: none !important;
  display: block;
  margin: 0 auto var(--dsc-s4) !important;
}
body .dsc-article img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
body .dsc-article p:has(> img:only-child),
body .dsc-article p:has(> a:only-child > img:only-child) {
  text-align: center;
  margin: var(--dsc-s5) 0;
}
body .dsc-article :is(figure, .wp-block-image) {
  margin: var(--dsc-s6) 0;
  max-width: 100%;
}
body .dsc-article :is(figcaption, .wp-element-caption, .wp-caption-text) {
  font-family: var(--dsc-font-ui);
  font-size: var(--dsc-text-xs);
  line-height: 1.5;
  color: var(--dsc-muted);
  text-align: center;
  margin-top: var(--dsc-s2);
}
body .dsc-article iframe[src*="youtube"],
body .dsc-article iframe[src*="vimeo"] {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--dsc-radius);
  margin: var(--dsc-s5) 0;
}

/* ---------- Blockquote ---------- */
body .dsc-article blockquote {
  margin: var(--dsc-s6) 0;
  padding: var(--dsc-s4) var(--dsc-s5);
  border-left: 3px solid var(--dsc-accent);
  background: var(--dsc-sand);
  border-radius: 0 var(--dsc-radius) var(--dsc-radius) 0;
  font-style: italic;
}
body .dsc-article blockquote p:last-child { margin-bottom: 0; }

/* ---------- Tables (incl. .comparison-table with inline cell styles) ---------- */
body .dsc-article table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--dsc-s5) 0 var(--dsc-s6);
  font-family: var(--dsc-font-ui);
}
body .dsc-article :is(td, th) {
  font-family: var(--dsc-font-ui);
  font-size: var(--dsc-text-sm);
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
  padding: 10px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--dsc-border) !important;
}
body .dsc-article th,
body .dsc-article thead td,
body .dsc-article table tr:first-child > th {
  font-weight: 700;
  color: var(--dsc-heading);
  background: var(--dsc-sand) !important;
  border-bottom: 2px solid var(--dsc-border) !important;
}
body .dsc-article td p { margin: 0; font-size: inherit; font-family: inherit; }
@media (max-width: 767px) {
  body .dsc-article table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body .dsc-article :is(td, th) { min-width: 120px; }
}

/* ---------- Affiliate disclosure ---------- */
body .dsc-article .affiliate-disclosure {
  font-family: var(--dsc-font-ui);
  font-size: 13px;
  line-height: 1.5;
  color: var(--dsc-muted) !important;
  margin: 0 0 24px;
  padding: 0;
  background: none;
  border: 0;
}
body .dsc-article .affiliate-disclosure :is(em, i) { font-style: normal; }
body .dsc-article .affiliate-disclosure a { color: inherit !important; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Product facts box ---------- */
body .dsc-article .product-facts {
  font-family: var(--dsc-font-ui);
  font-size: var(--dsc-text-sm);
  line-height: 1.6;
  background: var(--dsc-sand);
  border: 1px solid var(--dsc-border);
  border-radius: var(--dsc-radius);
  padding: var(--dsc-s4) var(--dsc-s5);
  margin: var(--dsc-s4) 0 var(--dsc-s6);
}
body .dsc-article .product-facts :is(b, strong) { color: var(--dsc-heading); }
body .dsc-article .product-facts a { font-weight: 600; }

/* ---------- Affiliate CTA (replaces the black SHOP NOW image) ---------- */
body .dsc-article a.dsc-cta,
body .dsc-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 10px 22px;
  font-family: var(--dsc-font-ui);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  color: var(--dsc-accent) !important;
  background: var(--dsc-white);
  border: 1.5px solid var(--dsc-accent);
  border-radius: var(--dsc-radius);
  text-decoration: none !important;
  transition: background-color .15s ease, color .15s ease;
}
body .dsc-article a.dsc-cta::after {
  content: "\2192";
  font-weight: 500;
  transition: transform .15s ease;
}
body .dsc-article a.dsc-cta:hover {
  background: var(--dsc-accent-soft);
  color: var(--dsc-accent-strong) !important;
}
body .dsc-article a.dsc-cta:hover::after { transform: translateX(2px); }
body .dsc-article a.dsc-cta:focus-visible { outline: 2px solid var(--dsc-accent); outline-offset: 3px; }
body .dsc-article :is(p, div, .dsc-cta-wrap):has(> .dsc-cta),
body .dsc-article :is(p, div):has(> :is(b, strong, span) > .dsc-cta) {
  text-align: left !important;
  margin: var(--dsc-s4) 0 var(--dsc-s6) !important;
}
body .dsc-article .dsc-cta-wrap { font-size: var(--dsc-text); }
/* CSS fallback if the render filter is ever disabled: image-based buttons stay usable */
body .dsc-article a:has(> img[src*="shop_now"]) img { max-width: 220px; border-radius: var(--dsc-radius); }

/* ---------- Rules / misc ---------- */
body .dsc-article hr { border: 0; border-top: 1px solid var(--dsc-border); margin: var(--dsc-s7) 0; }
body .dsc-article code { font-size: 0.9em; background: var(--dsc-sand); padding: 0.1em 0.35em; border-radius: 3px; }
body .dsc-article .wp-block-gallery { margin: var(--dsc-s6) 0; }

/* ======================================================================
 * Single-post template helpers (template 6930)
 * ==================================================================== */

/* Small uppercase label: "Share it", "Latest posts" */
body .dsc-label .elementor-heading-title {
  font-family: var(--dsc-font-ui) !important;
  font-size: var(--dsc-text-xs) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--dsc-muted) !important;
}

/* Section heading: "You may also be interested in..." */
body .dsc-section-title .elementor-heading-title {
  font-family: var(--dsc-font-ui);
  font-size: var(--dsc-h2);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--dsc-heading);
}

/* Tags list under the article */
body .dsc-tags .elementor-post-info__terms-list-item {
  display: inline-block;
  font-family: var(--dsc-font-ui);
  font-size: var(--dsc-text-xs);
  font-weight: 600;
  color: var(--dsc-ink) !important;
  background: var(--dsc-sand);
  border: 1px solid var(--dsc-border);
  border-radius: 999px;
  padding: 4px 12px;
  margin: 0 6px 8px 0;
  text-decoration: none;
}
body .dsc-tags .elementor-post-info__terms-list-item:hover { border-color: var(--dsc-accent); color: var(--dsc-accent) !important; }
body .dsc-tags .elementor-post-info__terms-list { font-size: 0; }
body .dsc-tags .elementor-widget-container,
body .dsc-tags { background: transparent !important; }

/* Sidebar latest posts */
body .dsc-sidebar-posts .elementor-post__title,
body .dsc-sidebar-posts .elementor-post__title a {
  font-family: var(--dsc-font-ui);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--dsc-heading);
  text-decoration: none;
}
body .dsc-sidebar-posts .elementor-post__title a:hover { color: var(--dsc-accent); }
body .dsc-sidebar-posts .elementor-post__thumbnail img { border-radius: 4px; }

/* Author box */
body .dsc-author-box {
  border-top: 1px solid var(--dsc-border);
  border-bottom: 1px solid var(--dsc-border);
  padding: var(--dsc-s6) 0;
  margin-top: var(--dsc-s6);
  max-width: var(--dsc-measure);
}
body .dsc-author-box .elementor-author-box { align-items: flex-start; }
body .dsc-author-box .elementor-author-box__avatar img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
}
body .dsc-author-box .elementor-author-box__name {
  font-family: var(--dsc-font-ui);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dsc-heading);
  margin: 0 0 var(--dsc-s2);
}
body .dsc-author-box .elementor-author-box__name::before {
  content: "Written by";
  display: block;
  font-size: var(--dsc-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dsc-muted);
  margin-bottom: 2px;
}
body .dsc-author-box a:has(> .elementor-author-box__name) { text-decoration: none; }
body .dsc-author-box .elementor-author-box__bio {
  font-family: var(--dsc-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dsc-ink);
  margin: 0 0 var(--dsc-s4);
}
body .dsc-author-box .elementor-author-box__button {
  font-family: var(--dsc-font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--dsc-accent);
  background: transparent;
  border: 1.5px solid var(--dsc-accent);
  border-radius: var(--dsc-radius);
  padding: 9px 18px;
}
body .dsc-author-box .elementor-author-box__button:hover { background: var(--dsc-accent-soft); color: var(--dsc-accent-strong); }
@media (max-width: 767px) {
  body .dsc-author-box .elementor-author-box { flex-direction: column; align-items: flex-start; text-align: left; }
  body .dsc-author-box .elementor-author-box__avatar { margin: 0 0 var(--dsc-s4) !important; }
  body .dsc-author-box .elementor-author-box__avatar img { width: 72px; height: 72px; }
}

/* Related posts loop: titles in the system font */
body .dsc-related .elementor-heading-title { font-family: var(--dsc-font-ui); letter-spacing: -0.005em; }

/* ======================================================================
 * Serif headings (user preference, 11.11.2026): Lora for article headings,
 * the post title and template section titles. Labels, meta and buttons stay in Manrope.
 * ==================================================================== */
:root { --dsc-font-display: "Lora", Georgia, "Times New Roman", serif; }
body .dsc-article :is(h1, h2, h3, h4, h5, h6) { font-family: var(--dsc-font-display); font-weight: 600; letter-spacing: -0.005em; }
body .dsc-article h2 { font-weight: 500; }
body.single-post h1.elementor-heading-title,
body .dsc-section-title .elementor-heading-title,
body .dsc-related .elementor-heading-title,
body .dsc-author-box .elementor-author-box__name { font-family: var(--dsc-font-display) !important; letter-spacing: -0.005em; }
body.single-post h1.elementor-heading-title { font-weight: 500 !important; }

/* Tag pills: lay out as wrapping flex items so long tags never split or overlap (fix 11.11.2026). */
body .dsc-tags .elementor-post-info__item--type-terms { display: block; width: 100%; }
body .dsc-tags .elementor-post-info__terms-list { display: flex !important; flex-wrap: wrap; gap: 8px; font-size: 0; line-height: 1; }
body .dsc-tags .elementor-post-info__terms-list .elementor-post-info__terms-list-item {
  display: inline-flex !important; align-items: center; white-space: nowrap; max-width: 100%;
  margin: 0 !important; padding: 7px 14px; line-height: 1.3; font-size: var(--dsc-text-xs);
}
