hr {
    border: none;
    border-top: 1px solid var(--lgrey);
}

.search-bar-header {
  font-size: 14px;
  color: rgb(97, 97, 97);
}

header h1 {
    font-size: 42px;
    font-weight: 700;
}

#topic-image {
    height: 55vh;
    object-fit: cover;
}

.topic-info {
    padding: 6px 12px;
}

.topic-info-green {
    background-color: var(--col-block-green-muted);
    color: black;
    font-size: 12px;
}

.topic-info-blue {
    background-color: var(--col-block-teal-muted);
    color: black;
    font-size: 12px;
}

.gen-ai-notice-wrapper {
    background-color: var(--highlight-blue);
}

#gen-ai-notice {
    position: relative;
    text-decoration-style: dotted;
    text-decoration-color: var(--dblue);
    text-decoration-line: underline;
}

#gen-ai-notice:hover {
    text-decoration-color: var(--lblue);
    color: var(--dblue);
    cursor: pointer;
}

.gen-ai-hover-notice {
    position: absolute;
    background-color: white;
    color: black;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    border: 1px solid var(--lgrey);
    top: 28px;
    left: -90px;
    z-index: 1000;
    transform: translateY(-4px);
    box-shadow: 4px 4px 10px rgba(0,0,0,0.1);
    width: 750px;
    max-width: 90vw;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s;
}

#gen-ai-notice:hover .gen-ai-hover-notice,
.gen-ai-hover-notice:hover {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.rec-body {
    border: 1px solid var(--rec-tint);
    border-top: none;
    background-color: white;
    border-top-right-radius: 0px !important;
    border-top-left-radius: 0px !important;
    color: black;
    padding-top: .5rem !important;
}

.rec-attribution {
    border-bottom-right-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
    border: 1px solid var(--rec-tint);
    border-bottom: none;
    background-color: var(--rec-tint);
    color: black !important;
    padding: .75rem 1.5rem;
}

/* Stroke follows the attribution bar's tint so the pane outline stays continuous. */
.latest-rec:nth-child(3n+1) { --rec-tint: var(--col-block-teal-muted); }
.latest-rec:nth-child(3n+2) { --rec-tint: var(--col-block-green-muted-strong); }
.latest-rec:nth-child(3n+3) { --rec-tint: var(--col-block-blue-muted); }


.rec-citation {
    font-size: 14px;
}

.basics-list li, .latest-rec li {
    margin-bottom: 10px;
}

.recs-list li:last-child {
    margin-bottom: 0px !important;
}

.basics-list ul, .latest-rec ul {
    padding-left: 1rem;
}

.basics-list sup {
    font-size: 10px;
    color: var(--dblue);
    font-weight: 400;
}


.rec-citation a {
    font-size: inherit;
    color: black !important;
    text-decoration: underline;
}

.basics-citations {
    font-size: 12px;
    color: var(--dblue);
}

.basics-citations a {
    color: var(--dblue);
    text-decoration: none;
}

.basics-citations .text-muted {
    margin-left: 4px;
}

.topic-highlight {
    background-color: var(--highlight-blue);
    border-radius: 0.15em;
    font-weight: 600;
}

.timeline-wrapper {
    padding-left: 20px;
    border-left: 2px solid var(--dblue);
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background-color: white;
    border: 2px solid var(--dblue);
    border-radius: 50%;
    position: absolute;
    left: -29px; /* Center the dot on the line */
    top: 4px; /* Adjust as needed to align with content */
}

.timeline-title a {
    color: var(--dblue);
    text-decoration: none;
}

.timeline-item-collapsible {
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.timeline-item-collapsible.open {
    max-height: unset;
}

.timeline-highlight {
  background: #ffe08a;
  padding: 0em;
  border-radius: 0.15em;
  font-weight: 600;
}

#timeline-no-results {
    background-color: #fffbef;
    border: 1px solid var(--yel);
    border-radius: 5px;
}

.clear-filters-link {
    color: var(--dblue);
    text-decoration: underline;
    cursor: pointer;
}

.show-more-toggle {
    background: none;
    border: none;
    text-decoration: underline;
    color: var(--dgrey);
    transition: color 0.2s ease;
    padding: 0px;
}

.show-more-toggle:hover {
    color: var(--dblue);
}

.show-more-toggle .bi {
    margin-left: 4px;
}

.custom-date-range-panel {
  display: flex;
  justify-content: flex-end;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.custom-date-range-panel.open {
  max-height: 60px;
  opacity: 1;
}

.timeline-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.timeline-pagination button {
  padding: 5px 11px;
  border: 1px solid #dee2e6;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  color: #495057;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.5;
}

.timeline-pagination button:hover:not(:disabled) {
  background: #f0f4f7;
  border-color: var(--dblue);
  color: var(--dblue);
}

.timeline-pagination button.active {
  background: var(--dblue);
  color: #fff;
  border-color: var(--dblue);
  font-weight: 600;
}

.timeline-pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}

.timeline-pagination-ellipsis {
  padding: 5px 4px;
  color: #6c757d;
  font-size: 0.875rem;
  line-height: 1.5;
  user-select: none;
}

.timeline-search-field {
  flex: 1;
  min-width: 0;
}

.timeline-c3-pill {
  display: inline-flex;
  color: black;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  max-width: 100%;
}

.timeline-c3-pill .pill-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  color: var(--dgrey);
}

.timeline-c3-pill .pill-close:hover {
  color: var(--dblue);
}

#c3-callout-see-posts {
    border-radius: 100px !important;
}

@media (max-width: 992px) {
    #c3-callout {
        margin-top: 0px !important;
    }
}

@media (max-width: 870px) {
    .header-items-wrapper {
        flex-direction: column !important;
        gap: 0px !important;
    }
    .header-left {
        gap: .5rem !important;
    }
    .topic-header .w-50 {
        width: 100% !important;
    }
    .topic-info-wrapper {
        flex-wrap: wrap;
    }
    .topic-info {
        width: fit-content;
        height: fit-content;
    }
}

@media (max-width: 780px) {

    .timeline-filters {
        flex-direction: column !important;
        align-items: stretch;
        margin-top: 24px !important;
    }
    #topic-image {
        height: 40vh;
    }
}