/* Shade Skin Science – Affiliate Cards */

/* High-UVA hero */
.sss-high-uva-section {
  max-width: 1080px;
  margin: 3rem auto;
  padding: 0 1.5rem 3rem;
}

.sss-high-uva-header {
  max-width: 820px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  text-align: left;
}

.sss-high-uva-title {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
}

.sss-high-uva-intro {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
  font-weight: 400;
  text-align: left;
  max-width: 640px;
}

.sss-high-uva-intro p {
  margin: 0 0 0.7rem;
}

.sss-high-uva-intro p:last-child {
  margin-bottom: 1.1rem;
}

.sss-high-uva-hero {
  position: relative;
}

.sss-high-uva-graphic {
  width: 100%;
  max-width: 960px;
  margin: 1.5rem auto 2.5rem;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background-color: #f9fafb;
  background-image: url("https://shadeskinscience.com/wp-content/uploads/2025/12/sss-your-skin-under-uv.png");
  background-size: cover;
  background-position: center;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.75rem 2.5rem;
}

@media (max-width: 768px) {
  .sss-high-uva-graphic {
    margin: 1.75rem auto 2.5rem;
  }
}

@media (max-width: 767px) {
  .sss-hero-callouts {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .sss-hero-callout::after {
    right: auto;
    width: 48px;
    bottom: auto;
    top: calc(100% + 0.2rem);
  }

  .sss-hero-callout {
    flex: 1 1 auto;
  }
}

.sss-high-uva-claim {
  background: transparent;
  border: 0;
  padding: 0.25rem 0.35rem;
  margin: 0;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
  transition: color 120ms ease, border-color 120ms ease;
}

.sss-high-uva-claim-text {
  display: inline-block;
  border-bottom: 1px dashed rgba(15, 118, 110, 0.4);
  padding-bottom: 2px;
}

.sss-high-uva-claim:hover,
.sss-high-uva-claim:focus,
.sss-high-uva-claim:active {
  background: transparent !important;
  box-shadow: none !important;
  color: #0f172a;
}

.sss-high-uva-claim:hover .sss-high-uva-claim-text,
.sss-high-uva-claim:focus .sss-high-uva-claim-text,
.sss-high-uva-claim:focus-visible .sss-high-uva-claim-text {
  border-bottom-color: rgba(15, 118, 110, 0.9);
}

.sss-high-uva-claim:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 3px;
}

.sss-high-uva-claims-row {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  pointer-events: none;
}

.sss-high-uva-claims-row .sss-high-uva-claim {
  pointer-events: auto;
}

.sss-high-uva-connector {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sss-high-uva-connector-line {
  display: inline-block;
  width: 54px;
  height: 2px;
  background: #0f766e;
  opacity: 0.55;
}

.sss-high-uva-connector-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.sss-uv-callouts {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 320px;
}

.sss-uv-callout {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.3;
}

.sss-uv-callout::before {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(15, 118, 110, 0.3);
}

.sss-uv-callout::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
  flex-shrink: 0;
}

.sss-uv-callout-label {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
  max-width: 18ch;
}

.sss-uv-callout-pill {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  max-width: 260px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  padding: 0.85rem 1.1rem;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.5;
}

.sss-high-uva-pill-layer {
  display: none !important;
}

.sss-hero-callout-detail {
  position: absolute;
  background: rgba(11, 26, 38, 0.96);
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.25);
  padding: 0.85rem 1rem;
  max-width: 320px;
  z-index: 5;
  pointer-events: none;
}

.sss-hero-callout-detail__title {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #f8fafc;
}

.sss-hero-callout-detail__body {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.9);
}

/* Hero mobile card (Blueprint-style overlay) */
.sss-hero-no-scroll {
  overflow: hidden;
}

.sss-hero-mobile-card {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.7);
  z-index: 9999;
  padding: 1rem;
}

.sss-hero-mobile-card[hidden] {
  display: none !important;
}

.sss-hero-mobile-card__sheet {
  background: #0b1a26;
  color: #e2e8f0;
  width: 100%;
  max-width: 560px;
  border-radius: 18px;
  padding: 1.35rem 1.2rem 1.6rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.sss-hero-mobile-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}

.sss-hero-mobile-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.sss-hero-mobile-card__item-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: #f8fafc;
  margin: 0 0 0.2rem;
}

.sss-hero-mobile-card__item-body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.9);
  margin: 0;
}

.sss-hero-mobile-card__sheet button[aria-label='Close'] {
  background: transparent;
  border: 0;
  color: #e2e8f0;
  font-size: 1.35rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .sss-uv-callouts {
    position: static;
    transform: none;
    right: auto;
    top: auto;
    margin-top: 0.75rem;
  }

  .sss-uv-callout::before,
  .sss-uv-callout::after {
    display: none;
  }

  .sss-uv-callout {
    gap: 0.4rem;
  }

  .sss-uv-callout-label {
    max-width: 100%;
  }

  .sss-uv-callout-pill {
    position: static;
    max-width: 100%;
    margin-top: 0.75rem;
  }
}
.sss-hero-callouts {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 2.25rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.sss-hero-callout {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #0f172a;
  flex: 1 1 0;
}

.sss-hero-callout::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0f766e;
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.12);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.sss-hero-callout::after {
  content: '';
  position: absolute;
  left: 10px;
  bottom: calc(100% + 0.2rem);
  width: 110%;
  max-width: 180px;
  height: 1px;
  background: rgba(15, 118, 110, 0.25);
  pointer-events: none;
}

.sss-callout-label {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: color 140ms ease, text-decoration-color 140ms ease;
  max-width: 18ch;
}

.sss-callout-label:hover,
.sss-callout-label:focus {
  color: #0f3f3a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(15, 118, 110, 0.6);
}

.sss-callout-label:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 4px;
}

.sss-callout-detail {
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  min-width: 240px;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  padding: 0.8rem 1rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: #0f172a;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 2;
}

.sss-hero-callout.is-open .sss-callout-detail {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .sss-hero-callouts {
    margin-top: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .sss-hero-callout::after {
    display: none;
  }

  .sss-callout-detail {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    margin-top: 0.35rem;
  }
}

/* Trust timeline band */
.sss-high-uva-trust {
  padding: 2.75rem 0 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

.sss-section-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.sss-high-uva-trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .sss-high-uva-trust-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.sss-high-uva-trust-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sss-trust-intro {
  font-size: 0.96rem;
  line-height: 1.65;
  color: #475569;
  max-width: 48ch;
  margin: 0;
}

.sss-trust-points {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 28px) minmax(0, 1fr);
  column-gap: 1.25rem;
  row-gap: 1.5rem;
  width: 100%;
  min-height: auto;
}

.sss-trust-points::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
  border-radius: 999px;
}

.sss-trust-point {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 28px) minmax(0, 1fr);
  column-gap: 0.85rem;
  row-gap: 0.3rem;
  align-items: flex-start;
}

.sss-trust-point::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #0f766e;
  border: 2px solid #cbd5e1;
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.12);
  margin-top: 2px;
}

.sss-trust-point h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.sss-trust-point p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
}

.sss-trust-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f766e;
}

.sss-trust-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
}

.sss-trust-timeline,
.sss-high-uva-trust-timeline {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 28px) minmax(0, 1fr);
  column-gap: 1.25rem;
  row-gap: 1.5rem;
  --timeline-active-end: 0%;
  --timeline-offset-top: 14px;
  --timeline-offset-bottom: 14px;
}

.sss-trust-timeline > .sss-timeline-item,
.sss-high-uva-trust-timeline > .sss-timeline-item {
  grid-column: 1 / -1;
}

.sss-trust-timeline::before,
.sss-high-uva-trust-timeline::before {
  content: '';
  position: absolute;
  left: 13px;
  top: var(--timeline-offset-top);
  bottom: var(--timeline-offset-bottom);
  width: 2px;
  background: #e2e8f0;
  border-radius: 999px;
}

.sss-trust-timeline::after,
.sss-high-uva-trust-timeline::after {
  content: '';
  position: absolute;
  left: 13px;
  top: var(--timeline-offset-top);
  width: 2px;
  height: var(--timeline-active-end);
  background: linear-gradient(to bottom, #14b8a6, #0f766e);
  border-radius: 999px;
  transition: height 260ms ease;
}

/* Hide legacy pseudo-rails on the High-UVA timeline; marker element handles the line. */
.sss-high-uva-trust-timeline::before,
.sss-high-uva-trust-timeline::after {
  display: none;
  content: none;
}

.sss-timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 28px) minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.4rem;
  align-items: flex-start;
}

.sss-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
  margin-left: 1px;
  margin-top: 3px;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
  opacity: 0.6;
}

/* High-UVA trust timeline — Blueprint-style marker */
.sss-high-uva-trust-timeline {
  position: relative;
}

.sss-high-uva-trust-timeline .sss-timeline-marker {
  position: absolute;
  left: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, var(--sss-teal, #0a7f7a), var(--sss-teal, #0a7f7a));
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.sss-high-uva-trust-timeline .sss-timeline-item {
  position: relative;
  z-index: 1;
}

.sss-high-uva-trust-timeline .sss-timeline-dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--sss-teal, #0a7f7a);
  background-color: #f5f7fa;
}

.sss-high-uva-trust-timeline .sss-timeline-item.is-active .sss-timeline-dot {
  background-color: var(--sss-teal, #0a7f7a);
}

.sss-high-uva-trust-timeline .sss-timeline-item.is-active .sss-timeline-title {
  color: var(--sss-heading-color, #031523);
}

.sss-timeline-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
}

.sss-timeline-snippet {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.55;
}

.sss-timeline-detail {
  grid-column: 2;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  font-size: 0.93rem;
  line-height: 1.6;
  color: #334155;
  transition: max-height 220ms ease-out, opacity 220ms ease-out, padding-top 220ms ease-out;
}

.sss-timeline-item.is-active .sss-timeline-dot,
.sss-timeline-item.is-complete .sss-timeline-dot {
  background: #0f766e;
  border-color: #0f766e;
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.12);
  opacity: 1;
}

.sss-timeline-item.is-active .sss-timeline-title {
  color: #0f172a;
}

.sss-timeline-item.is-active .sss-timeline-snippet {
  color: #334155;
}

.sss-timeline-item.is-expanded .sss-timeline-detail {
  max-height: 320px;
  opacity: 1;
  padding-top: 0.5rem;
}

@media (min-width: 768px) {
  .sss-timeline-detail {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  .sss-high-uva-trust {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sss-trust-points {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.25rem;
  }

  .sss-trust-points::before {
    display: none;
  }

  .sss-trust-point {
    grid-template-columns: minmax(0, 1fr);
  }

  .sss-trust-point::before {
    display: none;
  }

  .sss-trust-timeline::after,
  .sss-high-uva-trust-timeline::after {
    height: 100%;
  }

  .sss-timeline-detail {
    max-height: none;
    opacity: 1;
    padding-top: 0.4rem;
    overflow: visible;
  }
}

/* Grid wrapper */
.sss-sunscreen-grid {
  max-width: 1080px;
  margin: 2rem auto 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

/* 2 columns on tablets */
@media (min-width: 768px) {
  .sss-sunscreen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 3 columns on desktops */
@media (min-width: 1024px) {
  .sss-sunscreen-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Card container */
.sss-sunscreen-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  padding: 1.5rem 1.75rem;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Card heading */
.sss-sunscreen-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

/* Paragraph text */
.sss-sunscreen-card p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.sss-sunscreen-card p strong {
  font-weight: 600;
  color: #0f172a;
}

/* Pros list */
.sss-sunscreen-card ul {
  margin: 0.75rem 0 1.25rem 1.25rem;
  padding: 0;
  font-size: 0.93rem;
}

.sss-sunscreen-card li {
  margin-bottom: 0.25rem;
}

/* Primary action button */
.sss-button {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid #0f766e;        /* teal accent */
  background: #0f766e;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

.sss-button:hover {
  background: #0b4f4b;               /* darker teal on hover */
  border-color: #0b4f4b;
  color: #ffffff;
}

/* Disabled / placeholder pill */
.sss-button--disabled {
  background: #f1f5f9;
  border-color: #cbd5f5;
  color: #64748b;
  opacity: 0.9;
  cursor: default;
  border-style: dashed;
}

.sss-button--disabled:hover {
  background: #f1f5f9;
  border-color: #cbd5f5;
  color: #64748b;
}

/* Hide Astra default title on High-UVA page */
.page-id-2291 .entry-title {
  display: none;
}
