/* How to Hang Curtains to Make Ceiling Look Higher (English and Arabic) */

/* Table of contents */
.aspire-toc {
  margin: 8px 0 36px;
  padding: 22px 24px 18px;
  background: var(--soft-bg, #f6f8f5);
  border: 1px solid var(--accent, #dce8d8);
  border-inline-start: 4px solid var(--green, #278653);
  border-radius: 12px;
}

.aspire-article-body .aspire-toc-title {
  margin: 0 0 12px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text, #303030);
}

.aspire-article-body .aspire-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  display: grid;
  gap: 4px;
}

.aspire-article-body .aspire-toc li {
  counter-increment: toc;
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
}

.aspire-article-body .aspire-toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: static;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  flex: 0 0 26px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--green, #278653);
}

.aspire-article-body .aspire-toc a {
  display: block;
  padding: 4px 0;
  color: var(--text, #303030);
  font-weight: 500;
  text-decoration: none;
}

.aspire-article-body .aspire-toc a:hover,
.aspire-article-body .aspire-toc a:focus-visible {
  color: var(--green-deep, #17663e);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aspire-article-body h2[id],
#article-faq-title {
  scroll-margin-top: 110px;
}

@media (max-width: 600px) {
  .aspire-toc {
    padding: 18px 16px 14px;
    margin-bottom: 28px;
  }

  .aspire-article-body .aspire-toc-title {
    font-size: 17px;
  }

  .aspire-article-body .aspire-toc li {
    font-size: 15px;
    gap: 10px;
  }

  .aspire-article-body .aspire-toc li::before {
    flex-basis: 22px;
  }
}

/* Banner meta: keep date, author and reading time each on one line */
.aspire-article-meta time,
.aspire-article-meta span:not([aria-hidden]) {
  white-space: nowrap;
}

/* Track or rod comparison table */
.aspire-compare-wrap {
  margin: 8px 0 26px;
  border: 1px solid var(--accent, #dce8d8);
  border-radius: 12px;
  overflow: hidden;
}

.aspire-article-body .aspire-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.55;
}

.aspire-article-body .aspire-compare th,
.aspire-article-body .aspire-compare td {
  padding: 14px 18px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--accent, #dce8d8);
}

.aspire-article-body .aspire-compare tbody tr:last-child th,
.aspire-article-body .aspire-compare tbody tr:last-child td {
  border-bottom: 0;
}

.aspire-article-body .aspire-compare thead th {
  background: var(--soft-bg, #f6f8f5);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--green, #278653);
}

.aspire-article-body .aspire-compare tbody th {
  width: 26%;
  font-weight: 600;
  color: var(--text, #303030);
}

@media (max-width: 600px) {
  /* each row becomes a small card: the point on top, then both options with their labels */
  .aspire-compare-wrap {
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .aspire-article-body .aspire-compare thead {
    display: none;
  }

  .aspire-article-body .aspire-compare,
  .aspire-article-body .aspire-compare tbody,
  .aspire-article-body .aspire-compare tr,
  .aspire-article-body .aspire-compare th,
  .aspire-article-body .aspire-compare td {
    display: block;
    width: 100%;
  }

  .aspire-article-body .aspire-compare tr {
    margin-bottom: 12px;
    border: 1px solid var(--accent, #dce8d8);
    border-radius: 12px;
    overflow: hidden;
  }

  .aspire-article-body .aspire-compare tbody th {
    width: 100%;
    padding: 12px 16px;
    background: var(--soft-bg, #f6f8f5);
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    color: var(--green, #278653);
  }

  .aspire-article-body .aspire-compare td {
    padding: 10px 16px;
    font-size: 15px;
  }

  .aspire-article-body .aspire-compare td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text, #303030);
    opacity: 0.75;
  }

  .aspire-article-body .aspire-compare tbody tr:last-child th {
    border-bottom: 1px solid var(--accent, #dce8d8);
  }
}

/* Article lists: gold check marks instead of dots (table of contents keeps its numbers) */
.aspire-article-body > ul li {
  padding-left: 32px;
  padding-right: 0;
}

[dir="rtl"] .aspire-article-body > ul li {
  padding-left: 0;
  padding-right: 32px;
}

.aspire-article-body > ul li::before {
  left: auto;
  right: auto;
  inset-inline-start: 0;
  top: 0.38em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(201, 162, 74, 0.14);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A24A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
}
