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

/* Custom CSS */
body {
	font-family: 'Lato', sans-serif;
	background-color: #f8f9fa;
	padding-top: 70px; /* Add padding for fixed navbar */
	color: #333; /* Default text color */
}

.navbar {
	background-color: #2c3e50; /* Dark blue */
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand, .navbar-nav .nav-link {
	color: #ecf0f1; /* Light gray/white for text */
	font-weight: 400;
}

.navbar-brand {
	font-weight: 700;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus {
	color: #ffffff; /* Brighter white on hover/focus */
}

.tab-content {
	margin-top: 0px;
	border: 1px solid #dee2e6;
	/* Optional: adds a border around tab content like Bootstrap examples */
	border-top: none; /* Remove top border as tabs have a bottom border */
	padding: 15px;
}

.nav-tabs .nav-link.active {
	/* Optional: ensures active tab is clearly highlighted */
	background-color: #fff;
	border-color: #dee2e6 #dee2e6 #fff;
}

.container {
	max-width: 1200px; /* Adjust container width as needed */
	background-color: white;
	padding: 30px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	margin-top: 30px;
	margin-bottom: 30px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Lato', sans-serif;
	color: #2c3e50; /* Dark blue for headings */
	margin-top: 1.5em;
	margin-bottom: 0.8em;
	font-weight: 700;
}

h1 {
	font-size: 2.5rem;
	margin-bottom: 1em;
}

h2 {
	font-size: 2rem;
}

.section {
	margin-bottom: 2.5em;
}

.section-title {
	border-bottom: 2px solid #dee2e6; /* Lighter border */
	padding-bottom: 0.6em;
	margin-bottom: 1.2em;
	color: #34495e; /* Dark slate gray */
	font-weight: 700;
}

.table {
	margin-top: 1em;
}

.table thead th {
	background-color: #e9ecef; /* Light gray background for table headers */
	color: #2c3e50; /* Dark text for headers */
	font-weight: 700;
	border-bottom: 2px solid #dee2e6;
	padding: 0.9rem;
}

.table td, .table th {
	padding: 0.9rem;
	vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
	background-color: rgba(0, 0, 0, 0.03);
	/* Slightly more subtle striping */
}

a {
	color: #2980b9; /* Professional blue */
	text-decoration: none;
}

a:hover, a:focus {
	color: #1f618d; /* Darker blue on hover */
	text-decoration: underline;
}

.card {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	margin-bottom: 0.5rem; /* Spacing between accordion items */
}

.card-header {
	background-color: #f8f9fa; /* Light background for card headers */
	border-bottom: 1px solid #e0e0e0;
	padding: 0.75rem 1.25rem;
}

.card .btn-link {
	font-weight: 600;
	color: #2c3e50; /* Dark blue, matching headings */
	text-decoration: none;
}

.card .btn-link:hover, .card .btn-link:focus {
	color: #1f618d; /* Darker blue on hover */
	text-decoration: none;
}

/* Existing functional styles - preserved */
.claim-text {
	font-weight: bold; /* Retained as it describes specific text type */
}

.rebuttal-text {
	margin-top: 0.5em;
	font-style: italic; /* Retained as it describes specific text type */
}

/* Styles for the chart container */
.chart-container {
	width: 100%; /* Occupy the full width of its parent Bootstrap column */
	position: relative; /* Needed for absolute positioning of the popup */
	background-color: white;
	position: relative;
    border: 1px solid #e0e0e0;
    padding: 0px;
    margin: 0px;
	/* min-height: 600px; */
	/* Optional: to ensure a minimum drawing area */
}

/* Styles for the popup */
.popup {
	position: absolute;
	/* Positioned relative to the nearest positioned ancestor (.chart-container) */
	background-color: white;
	border: 1px solid #ccc;
	padding: 10px;
	display: none; /* Initially hidden */
	z-index: 1000; /* Ensure it appears on top of other elements */
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	max-width: 300px; /* Optional: constrain popup width */
	word-wrap: break-word; /* Prevent long text from breaking layout */
}

.node text {
	font-size: 12px; /* Ensure text is readable */
	/* font-family can be inherited or set specifically if Lato doesn't render well for SVG */
}

.node {
	cursor: pointer;
}

.title-column {
	width: 60%;
}

.author-column {
	width: 20%;
}

.date-column {
	width: 20%;
}

.tags-column {
	width: 20%;
}

/* Tangled Tree Info Popup Styles */
.tangled-tree-info-popup {
	position: absolute;
	padding: 12px;
	background: #f9f9f9;
	border: 1px solid #E0E0E0;
	border-radius: 6px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	font-size: 13px;
	max-width: 320px;
	pointer-events: none;
	/* Allows clicks to pass through to SVG for things like zoom/pan or click-off */
}

/* Make links within the popup clickable */
.tangled-tree-info-popup a {
	pointer-events: auto;
	color: #2980b9; /* Professional blue */
	text-decoration: none;
}

.tangled-tree-info-popup a:hover, .tangled-tree-info-popup a:focus {
	color: #1f618d; /* Darker blue on hover */
	text-decoration: underline;
}

/* Main title in the popup */
/* For source nodes with a link in strong */
.tangled-tree-info-popup strong>a {
	font-size: 15px;
	color: #2c3e50; /* Dark blue, matching existing heading styles */
	display: block;
	margin-bottom: 8px;
}

/* For non-source nodes, the title is just strong (or source nodes if link is not direct child) */
.tangled-tree-info-popup strong {
	font-size: 15px; /* Default for strong if not a link */
	color: #2c3e50;
	display: block;
	margin-bottom: 8px;
}

/* Publish date paragraph and description paragraph */
.tangled-tree-info-popup p {
	font-style: italic;
	color: #555; /* Medium grey */
	margin-top: 0;
	margin-bottom: 8px;
	font-size: 13px; /* Ensure p tags also get the base font size */
}

/* "Contributors:" heading (strong tag inside a div) */
.tangled-tree-info-popup div>strong {
	font-weight: bold;
	font-size: 13px;
	/* Reset font size from the 15px general strong rule */
	color: #333;
	display: inline; /* Override block from general strong rule */
	margin-top: 10px;
	margin-bottom: 4px;
}

/* Contributors list */
.tangled-tree-info-popup ul {
	list-style-type: none;
	padding-left: 0;
	margin-top: 0;
	margin-bottom: 0;
}

/* Individual contributor list items */
.tangled-tree-info-popup li {
	margin-bottom: 4px;
}

/* Ensure specificity for contributor links if they are directly inside li without other tags */
.tangled-tree-info-popup ul li a {
	font-size: 13px;
	/* Keep contributor link font size consistent with popup base */
	/* color and text-decoration are inherited from .tangled-tree-info-popup a */
}