/* Component Crate — native Table of Contents (guide posts only)
   Colors reference Astra's global color tokens so the box always
   matches the theme: 0 = blue #0d3b66, 1 = blue dark #f95738,
   5 = light bg #F0F5FA, 7 = border #D1D5DB, 3 = text #0d3b66. */

html {
  scroll-behavior: smooth;
}

/* Offset anchored sections below the sticky header. */
h2[id],
h3[id] {
  scroll-margin-top: 96px;
}

/* The byline ("By … / date") repeats the H1 context — hidden; the
   schema.org microdata stays in the DOM. */
.ast-single-entry-banner .entry-meta {
  display: none !important;
}

.cc-toc {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--ast-global-color-7, #faf0ca);
  border-left: 4px solid var(--ast-global-color-0, #0d3b66);
  border-radius: 6px;
  background: var(--ast-global-color-5, #faf0ca);
}

.cc-toc .cc-toc-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.cc-toc .cc-toc-list,
.cc-toc .cc-toc-sub {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-toc .cc-toc-sub {
  margin: 0.2rem 0 0.4rem 1.1rem;
}

.cc-toc li {
  margin: 0.25rem 0;
}

.cc-toc .cc-toc-h2 > a {
  font-weight: 600;
}

.cc-toc a {
  display: inline-block;
  padding: 0.1rem 0;
  color: var(--ast-global-color-1, #f95738);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

.cc-toc a:hover,
.cc-toc a:focus {
  color: var(--ast-global-color-0, #0d3b66);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .cc-toc {
    padding: 1rem 1.15rem;
  }
  .cc-toc .cc-toc-title {
    font-size: 1rem;
  }
  .cc-toc .cc-toc-sub {
    margin-left: 0.8rem;
  }
  .cc-toc a {
    font-size: 0.95rem;
  }
}

/* ============================================================
   "Top Picks" product block (Amazon product images are hotlinked
   from m.media-amazon.com per the Associates IP license — never
   stored locally). White product image left, details right. */
.cc-toppicks {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--ast-global-color-7, #faf0ca);
  border-left: 4px solid var(--ast-global-color-8, #f4d35e);
  border-radius: 6px;
  background: var(--ast-global-color-5, #faf0ca);
}
.cc-toppicks .cc-toppicks-title {
  margin: 0 0 0.9rem;
  font-family: 'Aldrich', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ast-global-color-0, #0d3b66);
}
.cc-pick {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--ast-global-color-7, #faf0ca);
  border-radius: 6px;
  padding: 1rem;
  text-decoration: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.cc-pick:hover,
.cc-pick:focus {
  border-color: var(--ast-global-color-1, #f95738);
  box-shadow: 0 2px 10px rgba(13, 59, 102, 0.12);
  text-decoration: none;
}
/* Kill stray <br> that wpautop() injects between tags inside the flex card —
   it breaks the image-left / details-right layout (item order must be respected:
   img FIRST, then label/name/specs/CTA). */
.cc-pick br { display: none; }
.cc-pick img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  flex: 0 0 auto;
  background: #fff;
}
.cc-pick-name {
  display: block;
  font-family: 'Aldrich', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ast-global-color-0, #0d3b66);
  line-height: 1.3;
}
.cc-pick-specs {
  display: block;
  margin: 0.3rem 0 0.5rem;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.45;
}
.cc-pick-cta {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ast-global-color-1, #f95738);
}
.cc-toppicks .cc-pick + .cc-pick {
  margin-top: 1rem;
}
.cc-pick-label {
  display: block;
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ast-global-color-1, #f95738);
}
.cc-associate-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  font-style: italic;
  color: #6b7280;
}
@media (max-width: 767px) {
  .cc-toppicks {
    padding: 1rem 1.15rem;
  }
  .cc-pick {
    flex-direction: column;
    align-items: flex-start;
  }
  .cc-pick img {
    width: 100%;
    height: auto;
    max-width: 240px;
  }
}

/* Responsive editorial product hero used inside review articles. */
.cc-product-hero {
  margin: 1.75rem 0 2rem;
}
.cc-product-hero picture,
.cc-product-hero img {
  display: block;
  width: 100%;
  max-width: 100%;
}
.cc-product-hero img {
  height: auto;
  border-radius: 6px;
}
.cc-product-hero figcaption {
  margin: 0.65rem 0 0;
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

/* In-article manufacturer advertising banner. */
.cc-review-banner {
  margin: 2rem 0;
  text-align: center;
}
.cc-review-banner-label {
  display: block;
  margin: 0 0 0.5rem;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cc-review-banner-link {
  display: block;
  max-width: 728px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
}
.cc-review-banner-link:focus-visible {
  outline: 3px solid var(--ast-global-color-0, #0d3b66);
  outline-offset: 3px;
}
.cc-review-banner img {
  display: block;
  width: 100%;
  max-width: 728px;
  height: auto;
  aspect-ratio: 728 / 90;
}
.cc-review-banner br {
  display: none;
}
