
.link {
	color: #AF1616 !important;
	  word-break: normal;
  white-space: normal;
}

/* Recolor the tabs */
.nav-tabs .nav-link {
  color: #AF1616 !important;
}

.nav-tabs .nav-link.active {
  color: #AF1616 !important;
  border-color: #AF1616 #AF1616 transparent !important;
}

/* Recolor the slider thumb */
input[type=range]::-webkit-slider-thumb {
  background-color: #AF1616;
}
input[type=range]::-moz-range-thumb {
  background-color: #AF1616;
}
input[type=range]::-ms-thumb {
  background-color: #AF1616;
}
.nav-link.circle-icon {
  background-color: #999999;
  color: white !important;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 0.5rem;  /* optional spacing between icons */
}
/* Make SSRN text smaller */
.nav-link.circle-icon.circle-ssrn {
  font-size: 0.65rem; /* or whatever looks good */
}
.btn-light.tag-btn:hover,
.btn-light.tag-btn:focus,
.btn-light.tag-btn:active {
  background-color: #AF1616 !important;
  color: #fff !important;
  border-color: #AF1616 !important;
}
.session-badge {
  /* Match .btn-light’s normal look */
  background-color: #f8f9fa; /* typical .btn-light background */
  color: #212529;            /* normal text color */
  border: 1px solid #ced4da; /* same border as .btn-light */
  border-radius: 0.25rem;    /* default .btn border radius */
  padding: 0.375rem 0.75rem; /* typical .btn padding */
  font-size: 0.9rem;
  display: inline-block;
  text-decoration: none;
}

p.list-paragraph {
    margin: 1em auto;
    max-width: 800px;
    text-align: justify;
	position: relative; /* So absolutely positioned children anchor here */
}

.centered-heading {
    text-align: center;
    margin: 2em 0 1em 0;
}

.footnote-box {
  display: none;
  position: absolute;
  width: 350px; /* widen it */
  font-family: "Times New Roman", Times, serif; /* Times font */
  font-size: 0.9em; /* slightly smaller text */
  background-color: #f9f9f9;
  border: 1px solid #000;
  padding: 8px;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .footnote-box {
    left: 10px !important;
    right: 10px;
    width: auto;
  }
}

.box-block {
  margin: 2em auto;
  max-width: 800px;
  background-color: #fff;
  border: 2px solid #AF1616;
  border-radius: 4px;
  position: relative;
  padding-top: 2.2em; /* space for the tab */
}

/* Red tab */
.box-block-title {
  background-color: #AF1616;
  color: #fff;
  font-weight: bold;
  position: absolute;
  top: 0;
  left: 1em;
  padding: 0.3em 1em;
  border-radius: 0 0 4px 4px;
  transform: translateY(-50%);
  cursor: pointer;
}

/* Base styling for box content paragraphs */
.box-block-content {
  padding: 1em;
}

/* 
  By default (not expanded):
  - The first content block is truncated + faded.
  - All subsequent blocks are hidden. 
*/
.box-block:not(.expanded) .box-block-content:first-of-type {
  max-height: 5em; /* how many lines to show */
  overflow: hidden;
  position: relative;
}

/* Fade-out gradient at bottom of the first block */
.box-block:not(.expanded) .box-block-content:first-of-type::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2em;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}

/* Hide all subsequent content paragraphs by default */
.box-block:not(.expanded) .box-block-content:not(:first-of-type) {
  display: none;
}

/* 
  When expanded:
  - Show everything in full, removing the fade 
*/
.box-block.expanded .box-block-content {
  display: block;
  max-height: none;
  overflow: visible;
}

.box-block.expanded .box-block-content::after {
  content: none; /* no fade-out once expanded */
}


.container img,
p.list-paragraph img,
.box-block img {
  max-width: 60%;
  height: auto;
  display: block;
  margin: 0 auto;
}

p.caption {
  text-align: center;
  font-family: "Centaur", serif;
  font-style: italic;
  font-size: 14pt;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

p.list-paragraph-second-level {
  margin: 1em auto;         /* center the block */
  max-width: 800px;
  text-align: justify;
  position: relative;
  padding-left: 2em;        /* indent the text */
  box-sizing: border-box;   /* include padding in the overall width */
}

.chapter-body {
  margin-top: 2em;      /* additional space before main text */
}

.page-meta {
  color: #777;          /* greyer font */
  font-size: 0.9em;     
  margin-bottom: 0.5em; /* space below metadata */
}

.meta-separator {
  margin: 2em 0;        /* extra vertical space above and below the line */
}

.chapter-title {
  margin-top: 2em; /* adjust as needed */
}

sup.footnote-ref {
  display: inline-flex;       /* allow horizontal growth */
  align-items: center;
  justify-content: center;
  margin: 0 0.2em;
  padding: 0.1em 0.2em;       /* horizontal padding for multi-digit footnotes */
  font-size: 0.6em;           /* tweak size as you like */
  line-height: 1;             
  color: #AF1616;
  border: 2px solid #AF1616;
  background-color: transparent;
  clip-path: polygon(15% 0%, 85% 0%, 100% 50%, 85% 100%, 15% 100%, 0% 50%);
}

sup.footnote-ref a {
  color: inherit;
  text-decoration: none;
}

.chapter-body a,
.chapter-body a:visited,
.chapter-body a:hover,
.chapter-body a:active,
.chapter-body a:focus {
  color: #AF1616;
  text-decoration: none; /* or underline, if desired */
}

.footnote-box a {
  color: #AF1616;
  text-decoration: none; /* or adjust as desired */
}

/* hallucination table */
.hiloc-table {
  width: 100%;
  max-width: 1300px; /* or 1400px, depending on taste */
  margin: 0 auto;
  border-collapse: collapse;
  table-layout: auto;  /* allow natural sizing */
}

.hiloc-table th,
.hiloc-table td {
  padding: 0.4rem 1rem;
  border-bottom: 1px solid #dee2e6;
  vertical-align: top;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.details-row {
  display: none;
}
.details-row.expanded {
  display: table-row;
}

.details-box {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.details-row .details-box {
  max-height: 0;
  padding: 0;
}

.details-row.expanded .details-box {
  max-height: 800px;
  padding: 1em;
}

.hiloc-table td:first-child {
  min-width: 160px;
}

.toggle-details {
  font-size: 1.2rem;
  line-height: 1;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.toggle-details:focus {
  outline: none;
}

.pointer-row.pointer-source {
  font-size: 0.85em;
  color: #555;
  font-style: italic;
  background-color: #f8f9fa;
  border-top: 1px solid #ddd;
}

.inline-footnote {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.inline-footnote sup {
  color: #AF1616;
  font-size: 0.65em;
  border-bottom: 1px dotted #AF1616;
  margin-left: 2px;
}

.inline-footnote .hover-box {
  display: none;
  position: absolute;
  top: 1.5em;
  left: 0;
  z-index: 1000;
  width: 320px;
  background-color: #f8f9fa;
  border: 1px solid #AF1616;
  border-radius: 4px;
  padding: 0.75em;
  font-size: 0.85em;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#tagline {
  transition: opacity 0.3s ease;
}

a,
a:visited,
a:hover,
a:active,
a:focus {
    color: #AF1616;
    word-break: normal;
    white-space: normal;
    text-decoration: underline; /* or 'none' if you prefer */
}

.no-link-style a,
.no-link-style a:visited {
    color: inherit !important;
    text-decoration: none !important;
}

.no-link-style a:hover,
.no-link-style a:active,
.no-link-style a:focus {
    color: inherit !important;
    text-decoration: none !important;
    cursor: pointer; /* keep pointer to signal interactivity */
}

.no-link-style .dropdown-item {
  background-color: transparent !important;
  color: inherit !important;
  text-decoration: none !important;
  display: block; 
  padding: 0.25rem 1rem; 
  cursor: pointer;
  white-space: nowrap; /* Add this line */
}

.no-link-style .dropdown-item:hover,
.no-link-style .dropdown-item:focus {
  background-color: transparent !important;
  color: inherit !important;
  text-decoration: none !important;
}

#tagline {
  transition: opacity 0.3s ease;
}

/* For broader support / Bootstrap overrides: */
.form-check-input:checked {
  background-color: #AF1616 !important;
  border-color: #AF1616 !important;
}

/* Keep the focused shadow in red too */
.form-check-input:focus {
  border-color: #AF1616 !important;
  box-shadow: 0 0 0 0.25rem rgba(175,22,22,0.25) !important;
}

@media (min-width: 768px) {
  /* Filter column: ~20% of the row */
  .filter-col {
    flex: 0 0 20% !important;
    max-width: 20% !important;
  }
}

/* Make only the "Next" and "Prev" links red */
.pagination .page-link {
  color: inherit; /* default text color for numbers and disabled text */
  text-decoration: none;
}

/* Specifically target active page links like "Next »" */
.pagination .page-link[href*="page="] {
  color: #AF1616 !important;
  text-decoration: underline;
  font-weight: bold;
}
