/*
 * TPC Curiosity Stream Homepage Pulse
 * Public component version 1.8.1
 * Fully isolated from homepage lane cards, Explore Further, and Stream archive styles.
 */

.tpcs-pulse180,
.tpcs-pulse180 * {
  box-sizing: border-box;
}

.tpcs-pulse180 {
  --tpcs-pulse180-paper: #fffdfa;
  --tpcs-pulse180-ink-base: #27231f;
  --tpcs-pulse180-muted: rgba(39, 35, 31, 0.64);
  --tpcs-pulse180-line: rgba(70, 82, 104, 0.14);
  --tpcs-pulse180-shadow: rgba(31, 42, 58, 0.075);

  width: 100%;
  margin: 22px 0 26px;
  color: var(--tpcs-pulse180-ink-base);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.tpcs-pulse180-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(15px, 2.25vw, 21px);
  border: 1px solid var(--tpcs-pulse180-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 96% 4%, rgba(66, 133, 244, 0.038), transparent 29%),
    linear-gradient(180deg, #fffefa 0%, #fbfaf7 100%);
  box-shadow:
    0 6px 17px rgba(31, 42, 58, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tpcs-pulse180-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: min(190px, 38%);
  height: 2px;
  border-radius: 0 0 99px 99px;
  background: linear-gradient(90deg, rgba(66, 133, 244, 0.56), rgba(66, 133, 244, 0.025));
  pointer-events: none;
}

.tpcs-pulse180-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 12px;
}

.tpcs-pulse180-heading-copy {
  min-width: 0;
}

.tpcs-pulse180-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 3px;
  color: rgba(36, 87, 166, 0.88);
  font-size: 0.69rem;
  font-weight: 610;
  letter-spacing: 0.015em;
  line-height: 1.2;
}

.tpcs-pulse180-kicker i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(66, 133, 244, 0.5);
  border-radius: 999px;
  background: rgba(66, 133, 244, 0.68);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.055);
  animation: tpcsPulse180Kicker 16s ease-in-out infinite;
}

.tpcs-pulse180 h2 {
  margin: 0 0 3px;
  color: rgba(39, 35, 31, 0.93);
  font-size: clamp(1.02rem, 1.38vw, 1.20rem);
  font-style: normal;
  font-weight: 610;
  letter-spacing: -0.012em;
  line-height: 1.24;
}

.tpcs-pulse180-header p {
  margin: 0;
  color: var(--tpcs-pulse180-muted);
  font-size: clamp(0.76rem, 0.92vw, 0.83rem);
  line-height: 1.48;
}

.tpcs-pulse180-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.47fr) minmax(265px, 0.88fr);
  gap: 13px;
  align-items: stretch;
}

.tpcs-pulse180-lead,
.tpcs-pulse180-rail-card {
  --tpcs-pulse180-accent: #4285f4;
  --tpcs-pulse180-ink: #2457a6;
  --tpcs-pulse180-soft: #f1f6ff;

  position: relative;
  overflow: hidden;
  border: 1px solid rgba(67, 74, 80, 0.13);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 3px 10px rgba(31, 42, 58, 0.045);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.tpcs-pulse180-lead::before,
.tpcs-pulse180-rail-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  background: var(--tpcs-pulse180-accent);
  pointer-events: none;
}

.tpcs-pulse180-lead {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(210px, 0.9fr) minmax(0, 1.12fr);
  border-radius: 16px;
}

.tpcs-pulse180-lead::before {
  width: 100%;
  height: 2px;
  opacity: 0.68;
}

.tpcs-pulse180-lead-visual {
  position: relative;
  min-height: 236px;
  overflow: hidden;
  border-right: 1px solid rgba(67, 74, 80, 0.095);
  background: var(--tpcs-pulse180-soft);
}

.tpcs-pulse180-lead-visual.is-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.tpcs-pulse180-lead-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  transition: transform 260ms ease, filter 260ms ease;
}

.tpcs-pulse180-lead-visual.is-theme,
.tpcs-pulse180-rail-visual.is-theme {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--tpcs-pulse180-ink);
  text-align: center;
}

.tpcs-pulse180-lead-visual.is-theme::after,
.tpcs-pulse180-rail-visual.is-theme::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid var(--tpcs-pulse180-accent);
  border-radius: 999px;
  opacity: 0.16;
}

.tpcs-pulse180-lead-visual.is-theme span {
  position: relative;
  z-index: 1;
  font-size: clamp(2.8rem, 6vw, 4.9rem);
  line-height: 1;
}

.tpcs-pulse180-lead-visual.is-theme small,
.tpcs-pulse180-rail-visual.is-theme small {
  position: relative;
  z-index: 1;
  max-width: 78%;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.tpcs-pulse180-lead-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(15px, 2vw, 21px);
}

.tpcs-pulse180-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: rgba(39, 35, 31, 0.56);
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.32;
}

.tpcs-pulse180-theme {
  color: var(--tpcs-pulse180-ink);
  font-weight: 650;
}

.tpcs-pulse180-note {
  margin: 10px 0 0;
  color: rgba(31, 35, 39, 0.92);
  font-size: clamp(0.82rem, 0.96vw, 0.90rem);
  font-weight: 400;
  letter-spacing: 0.001em;
  line-height: 1.50;
  overflow-wrap: anywhere;
}

.tpcs-pulse180-connected {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(67, 74, 80, 0.1);
  color: inherit;
  text-decoration: none;
}

.tpcs-pulse180-connected > span {
  grid-column: 1;
  color: var(--tpcs-pulse180-ink);
  font-size: 0.67rem;
  font-weight: 650;
  line-height: 1.2;
}

.tpcs-pulse180-connected strong {
  grid-column: 1;
  overflow: hidden;
  color: rgba(39, 35, 31, 0.88);
  font-size: 0.76rem;
  font-weight: 580;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tpcs-pulse180-connected i {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--tpcs-pulse180-ink);
  font-size: 1rem;
  font-style: normal;
  transition: transform 180ms ease;
}

.tpcs-pulse180-connected:hover strong,
.tpcs-pulse180-connected:focus-visible strong {
  text-decoration: underline;
  text-decoration-color: var(--tpcs-pulse180-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tpcs-pulse180-connected:hover i,
.tpcs-pulse180-connected:focus-visible i {
  transform: translateX(3px);
}

.tpcs-pulse180-connected:focus-visible,
.tpcs-pulse180-rail-card a:focus-visible,
.tpcs-pulse180-footer a:focus-visible {
  border-radius: 5px;
  outline: 2px solid rgba(66, 133, 244, 0.52);
  outline-offset: 3px;
}

.tpcs-pulse180-rail {
  display: grid;
  min-width: 0;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tpcs-pulse180-rail-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 94px minmax(0, 1fr);
  border-radius: 14px;
}

.tpcs-pulse180-rail-card::before {
  width: 3px;
  height: 100%;
  opacity: 0.7;
}

.tpcs-pulse180-rail-visual {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  border-right: 1px solid rgba(67, 74, 80, 0.085);
  background: var(--tpcs-pulse180-soft);
}

.tpcs-pulse180-rail-visual.is-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
}

.tpcs-pulse180-rail-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 136px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  transition: transform 260ms ease, filter 260ms ease;
}

.tpcs-pulse180-rail-visual.is-theme span {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  line-height: 1;
}

.tpcs-pulse180-rail-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 11px 12px;
}

.tpcs-pulse180-rail-copy p {
  display: -webkit-box;
  margin: 6px 0 7px;
  overflow: hidden;
  color: rgba(31, 35, 39, 0.82);
  font-size: 0.73rem;
  line-height: 1.40;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tpcs-pulse180-rail-copy > a {
  display: block;
  overflow: hidden;
  color: var(--tpcs-pulse180-ink);
  font-size: 0.7rem;
  font-weight: 610;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: rgba(67, 74, 80, 0.22);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tpcs-pulse180-rail-copy > a:hover,
.tpcs-pulse180-rail-copy > a:focus-visible {
  text-decoration-color: var(--tpcs-pulse180-accent);
}

.tpcs-pulse180-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid rgba(67, 74, 80, 0.095);
}

.tpcs-pulse180-footer a {
  color: rgba(36, 87, 166, 0.94);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: underline;
  text-decoration-color: rgba(66, 133, 244, 0.32);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tpcs-pulse180-footer a:hover,
.tpcs-pulse180-footer a:focus-visible {
  text-decoration-color: rgba(66, 133, 244, 0.8);
}

.tpcs-pulse180-empty {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(67, 74, 80, 0.11);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.66);
  color: rgba(39, 35, 31, 0.63);
  text-align: center;
}

.tpcs-pulse180-empty span {
  color: rgba(66, 133, 244, 0.75);
}

.tpcs-pulse180-empty p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.tpcs-pulse180.is-single .tpcs-pulse180-grid {
  grid-template-columns: 1fr;
}

.tpcs-pulse180.is-single .tpcs-pulse180-lead {
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
}

.tpcs-pulse180.is-double .tpcs-pulse180-rail {
  grid-template-rows: 1fr;
}

@media (hover: hover) and (pointer: fine) {
  .tpcs-pulse180-lead:hover,
  .tpcs-pulse180-lead:focus-within,
  .tpcs-pulse180-rail-card:hover,
  .tpcs-pulse180-rail-card:focus-within {
    transform: translateY(-2px);
    border-color: rgba(67, 74, 80, 0.17);
    box-shadow: 0 6px 15px rgba(31, 42, 58, 0.065);
  }

  .tpcs-pulse180-lead:hover .tpcs-pulse180-lead-image,
  .tpcs-pulse180-lead:focus-within .tpcs-pulse180-lead-image,
  .tpcs-pulse180-rail-card:hover .tpcs-pulse180-rail-image,
  .tpcs-pulse180-rail-card:focus-within .tpcs-pulse180-rail-image {
    transform: scale(1.012);
    filter: saturate(1.025) contrast(1.01);
  }
}

@keyframes tpcsPulse180Kicker {
  0%, 82%, 100% {
    opacity: 0.76;
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.05);
  }

  88% {
    opacity: 0.95;
    transform: scale(1.10);
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.075);
  }

  94% {
    opacity: 0.82;
    transform: scale(0.99);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.055);
  }
}

.tpcs-pulse180.is-new-arrival .tpcs-pulse180-shell {
  animation: tpcsPulse180Arrival 500ms cubic-bezier(0.22, 0.72, 0.2, 1) both;
}

@keyframes tpcsPulse180Arrival {
  from {
    opacity: 0.90;
    transform: translateY(4px);
    box-shadow: 0 3px 9px rgba(31, 42, 58, 0.035);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .tpcs-pulse180-grid {
    grid-template-columns: 1fr;
  }

  .tpcs-pulse180-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr;
  }

  .tpcs-pulse180.is-double .tpcs-pulse180-rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .tpcs-pulse180-shell {
    padding: 15px 13px;
    border-radius: 17px;
  }

  .tpcs-pulse180-lead,
  .tpcs-pulse180.is-single .tpcs-pulse180-lead {
    grid-template-columns: 1fr;
  }

  .tpcs-pulse180-lead-visual {
    min-height: 198px;
    border-right: 0;
    border-bottom: 1px solid rgba(67, 74, 80, 0.09);
  }

  .tpcs-pulse180-lead-image {
    max-height: 290px;
  }

  .tpcs-pulse180-rail {
    grid-template-columns: 1fr;
  }

  .tpcs-pulse180-rail-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .tpcs-pulse180-connected strong,
  .tpcs-pulse180-rail-copy > a {
    white-space: normal;
  }
}

@media (max-width: 430px) {
  .tpcs-pulse180-rail-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .tpcs-pulse180-rail-visual {
    min-height: 128px;
  }

  .tpcs-pulse180-footer {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tpcs-pulse180-kicker i {
    animation: none !important;
  }

  .tpcs-pulse180-lead,
  .tpcs-pulse180-rail-card,
  .tpcs-pulse180-lead-image,
  .tpcs-pulse180-rail-image {
    transition: none !important;
  }

  .tpcs-pulse180.is-new-arrival .tpcs-pulse180-shell {
    animation: none !important;
  }

  .tpcs-pulse180-connected i {
    transition: none !important;
  }
}
