@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
  padding-top: 0;
  font-family: 'Poppins', sans-serif;
}

.breadcrumb-wrapper {
  display: none;
  position: relative;
  width: 100vw;
  left: calc((100vw - 100%) * -0.5 + 15px);
  color: #fbf3ee;
  background-color: #20191ef7;
}

.post-body {
  position: relative;
  width: 100vw;
  left: calc((100vw - 100%) * -0.5 + 15px);
  color: #fbf3ee;
  background-color: #32282f;
}

@media (max-width: 588px) {
  .post-body {
    position: relative;
    width: 100vw;
    left: 0;
    color: #fbf3ee;
    background-color: #32282f;
  }
}

.post-featured-image-full {
  background-color: #000;
  background-position: top;
  background-repeat: no-repeat;
  background-size: 100%;
  height: 50vh!important;
  min-height: 602px;
  overflow: hidden;
  position: relative;
}

.post-body .post-content{
    max-width: 720px;
    margin: 0 auto;
}


.container-meta-header {
  background: linear-gradient(1turn, #32282f 10%, rgba(0, 212, 255, 0) 40%) !important;
}

.post-body p {
  color: #fbf3ee !important;
}

.cancer-calculus-patents-timeline {
  position: relative;
  width: 100vw;
  left: calc((100vw - 100%) * -0.5 + 15px);
  color: #fbf3ee;
}

@media (max-width: 588px) {
  .cancer-calculus-patents-timeline {
    left: 0;
    width: 100%;
  }
}

.cancer-calculus-patents-timeline p {
  color: #fff;
}


.scroll-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
}

/* Central piece: viz on top, sticky */
.chart-mount {
  position: sticky;
  top: 65px;
  z-index: 5;
  width: 100%;
}

.last-card {
  margin-bottom: 100vh !important;
}

.narrative-main {
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.narrative-section {
  scroll-margin-top: 1rem;
  margin: 75vh auto;
  max-width: 420px;
  background-color: #20191ef7 !important;
  pointer-events: none;
}

.narrative-section p {
  color: #fff !important;
}
.narrative-section a {
  color: #fff !important;
}
.narrative-section h2 {
  color: #fff !important;
}
.narrative-section h3 {
  color: #fff !important;
}
.narrative-section h4 {
  color: #fff !important;
}

/* Chart (test14-style semicircle) — central focal piece */
.chart-mount .chart-wrap {
  width: 100%;
  height: 100vh;
  position: relative;
}
/* Any primary chart SVG in the mount (avoid requiring id="chart" on second+ timelines) */
.chart-mount .chart-wrap > svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-mini-mount-inline-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 1rem;
}

.chart-mini-mount-inline {
  width: 100%;
  margin: 0 auto;
}

.chart-mini-caption {
  margin-top: 0.25rem;
}
.chart-mini-caption p {
  color: #fbf3ee !important;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.chart-mini-caption p:last-child {
  margin-bottom: 0;
}

/* Standalone mini (#app-mini): full semicircle height */
.chart-mini-mount:not(.chart-mini-mount-inline) .chart-wrap {
  width: 100%;
  height: 420px;
  position: relative;
}

/* Inline minis: compact height; single-ring config reads better with a bit more vertical space */
.chart-mini-mount-inline .chart-wrap {
  width: 100%;
  height: 220px;
  position: relative;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .chart-mini-mount:not(.chart-mini-mount-inline) .chart-wrap {
    height: 220px;
  }
  .chart-mini-mount-inline .chart-wrap {
    height: 200px;
  }
}

/* Compact intro / mini charts */
.chart-mini-mount {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.chart-mini-mount svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Keep the dynamic \"Until YYYY\" line visually consistent under transforms */
#chart-overlay-dynamic line {
  vector-effect: non-scaling-stroke;
}

.chart-legend {
  position: absolute;
  top: 0px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0.5rem 0 1rem;
  font-size: 0.7rem;
  
  color: #7a6e60;
  letter-spacing: 0.05em;
}
.chart-legend-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.chart-how-to-read {
  font-size: 0.7rem;
  
  color: #7a6e60;
  text-align: center;
  margin: 0 0 0.5rem;
  letter-spacing: 0.03em;
}
.chart-step-label {
  font-size: 0.7rem;
  
  color: #a09484;
  text-align: center;
  padding-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.legend-dot.approved { background: #27ae60; }
.legend-dot.rejected { background: #95a5a6; }
.legend-dot.abandoned { background: #bdc3c7; border: 1px dashed #7a6e60; }

/* Chart tooltip */
.chart-tooltip {
  position: fixed;
  pointer-events: none;
  background: #fff;
  color: #000;
  border-radius: 0px;
  padding: 0.85rem 1rem;
  font-size: 0.65rem;
  max-width: 290px;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.1s;
  line-height: 1.5;
}
.chart-tooltip.vis { opacity: 1; }
.chart-tooltip .tt-title { font-family: 'DM Serif Display', serif; font-size: 1rem; line-height: 1.2; margin-bottom: 0.2rem; }
.chart-tooltip .tt-sub { font-size: 0.56rem; letter-spacing: 0.09em; text-transform: uppercase; color: #9a8e80; margin-bottom: 0.55rem; }
.chart-tooltip .tt-grid { display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.75rem; margin-bottom: 0.55rem; }
.chart-tooltip .tt-l { color: #9a8e80; }
.chart-tooltip .tt-v { text-align: right; font-weight: 500; }
.chart-tooltip .tt-impact { font-size: 0.6rem; color: #c8bfb0; border-top: 1px solid #3a3028; padding-top: 0.5rem; line-height: 1.55; }
.chart-tooltip .tt-badge { display: inline-block; margin-top: 0.45rem; padding: 0.15rem 0.5rem; border-radius: 3px; font-size: 0.56rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.approved-year-panel {
  max-width: 680px;
  padding: 0 1rem;
  color: #fff;
}

.approved-year-label {
  display: inline-block;
  font-size: 0.8rem;
  color: #7a6e60;
  margin-bottom: 0.45rem;
  width: 25%;
}
#approved-year-slider {
  width: 70%;
}
.approved-year-meta {
  margin-top: 0.45rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: #4d4339;
}

.approved-year-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.approved-year-controls #approved-year-slider {
  flex: 1;
  min-width: 120px;
  width: auto;
}
.embed-year-autoplay-btn {
  display: none;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(122, 110, 96, 0.45);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}
html.patents-viz-exploration .embed-year-autoplay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Embed-like floating filters + exploration UI — hidden until final narrative step */
.narrative-explore-ui.embed-floating-filters--story {
  position: fixed;
  top: 5.5rem;
  left: 1rem;
  z-index: 10050;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: calc(100vw - 2rem);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
html.patents-viz-exploration .narrative-explore-ui.embed-floating-filters--story {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.multimount-viz-embed .narrative-explore-ui.embed-floating-filters--story .embed-ring-view-toggle,
.post-content .narrative-explore-ui.embed-floating-filters--story .embed-ring-view-toggle {
  flex-shrink: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  padding: 0.45rem 0.65rem;
  background: rgba(30, 22, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fbf3ee;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  font-size: 0.78rem;
}
.multimount-viz-embed .narrative-explore-ui.embed-floating-filters--story .embed-ring-view-option,
.post-content .narrative-explore-ui.embed-floating-filters--story .embed-ring-view-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  color: #fbf3ee;
  margin: 0;
}
.multimount-viz-embed .narrative-explore-ui.embed-floating-filters--story details.embed-collapsible,
.post-content .narrative-explore-ui.embed-floating-filters--story details.embed-collapsible {
  background: rgba(30, 22, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fbf3ee;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  font-size: 0.78rem;
}
.multimount-viz-embed .narrative-explore-ui.embed-floating-filters--story .embed-filter-item,
.post-content .narrative-explore-ui.embed-floating-filters--story .embed-filter-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0;
  color: #fbf3ee;
  cursor: pointer;
}
.multimount-viz-embed .narrative-explore-ui.embed-floating-filters--story .embed-filter-dot,
.post-content .narrative-explore-ui.embed-floating-filters--story .embed-filter-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* End-of-story CTA: reveals exploration UI after click (see patents-app-v4.js). */
.patents-explore-cta {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1.35rem;
  text-align: center;
  border-radius: 10px;
  background: rgba(30, 22, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.patents-explore-cta[hidden] {
  display: none !important;
}
.patents-explore-cta__lead {
  margin-bottom: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fbf3ee;
}
.multimount-viz-embed .patents-explore-cta__lead,
.post-content .patents-explore-cta__lead {
  color: #fbf3ee;
}
.patents-explore-cta__btn {
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  background: #d4614e;
  border: none;
  color: #fff;
}
.patents-explore-cta__btn:hover {
  background: #c55543;
  color: #fff;
}
.patents-explore-cta__btn:focus-visible {
  outline: 2px solid #fbf3ee;
  outline-offset: 2px;
}
