/* Component Crate — sidebar widgets (all pages)
   Matches the TOC box language: light bg (#F0F5FA), blue left accent
   (#0d3b66), borders (#D1D5DB), text (#0d3b66). Astra already gives
   each widget a white card (background #fff, padding 2em); the rules
   below style the inner content we added. */

#secondary .cc-sidebar-title {
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ast-global-color-0, #0d3b66);
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ast-global-color-2, #0d3b66);
}

/* ---- Featured Picks (internal review links) ---- */

.cc-offers .cc-offer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-offers .cc-offer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ast-global-color-7, #faf0ca);
}

.cc-offers .cc-offer:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.cc-offers .cc-offer-label {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ast-global-color-3, #0d3b66);
}

.cc-offers .cc-offer-link {
  font-size: 0.92rem;
  text-align: right;
  color: var(--ast-global-color-0, #0d3b66);
  text-decoration: none;
}

.cc-offers .cc-offer-link:hover {
  color: var(--ast-global-color-1, #f95738);
  text-decoration: underline;
}

.cc-associate-note {
  margin: 1.1rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--ast-global-color-3, #0d3b66);
}

/* ---- Browse the Guides (page/category links) ---- */

.cc-pages-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-pages-list li {
  margin-bottom: 0;
}

.cc-pages-list .cc-pages-link {
  display: block;
  padding: 0.45rem 0 0.45rem 1.1rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--ast-global-color-2, #0d3b66);
  text-decoration: none;
  border-bottom: 1px solid var(--ast-global-color-7, #faf0ca);
}

.cc-pages-list .cc-pages-link::before {
  content: "\2192"; /* → */
  position: absolute;
  left: 0;
  top: 0.45rem;
  color: var(--ast-global-color-0, #0d3b66);
}

.cc-pages-list .cc-pages-link:hover {
  color: var(--ast-global-color-0, #0d3b66);
  background: var(--ast-global-color-5, #faf0ca);
}

.cc-pages-list li:last-child .cc-pages-link {
  border-bottom: none;
}

/* ---- Sponsored sidebar banner ---- */

#secondary .cc-sidebar-ad {
  margin: 0;
}

#secondary .cc-sidebar-ad-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--ast-global-color-3, #0d3b66);
}

#secondary .cc-sidebar-ad-disclosure {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--ast-global-color-3, #0d3b66);
}

#secondary .cc-sidebar-ad-link {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  line-height: 0;
  text-decoration: none;
}
/* Stacked sponsored banners must read as distinct links: clear gap (well over 3px). */
#secondary .cc-sidebar-ad-link + .cc-sidebar-ad-link {
  margin-top: 10px;
}

#secondary .cc-sidebar-ad-link img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 6 / 5;
  margin: 0;
  border-radius: 0;
}

#secondary .cc-sidebar-ad-link:focus-visible {
  outline: 3px solid var(--ast-global-color-0, #046bd2);
  outline-offset: 4px;
}

#secondary .cc-sidebar-ad br {
  display: none;
}

/* ---- Mobile (Astra stacks the sidebar full-width under the content) ---- */

@media screen and (max-width: 921px) {
  .cc-offers .cc-offer {
    flex-direction: column;
    gap: 0.15rem;
  }

  .cc-offers .cc-offer-link {
    text-align: left;
  }
}
