/*-- scss:defaults --*/
// Define or override Bootstrap variables *before* the theme loads

$toc-color: #991101; 
$body-bg: #EFE9E9;
$purple: #521A91;
$gold: #C5B358;
$navbar-bg: #20232a;   // background color
$navbar-fg: #ffffff;   // text color
$navbar-hl: #C5B358;   // hover/active color
$darkred: #761818;
$red: #991101;
$brightred: #FD0000;
$blue: #21319A;
$orange: #F0A853;

/* Register the fonts */
@font-face {
  font-family: "Futura LT";
  src: url("assets/fonts/FuturaLT.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Cormorant Light";
  src: url("assets/fonts/Cormorant-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}


/*-- scss:rules --*/
// Regular CSS rules go here

.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  
   background: linear-gradient(
    to bottom,
    #7E1B1B 0%,
    #A32121 40%,
    #C72626 100%
  ) !important;
}


.nav-footer {
  background: linear-gradient(
    180deg,
    #7E1B1B 0%,
    #9E2020 35%,
    #C72626 70%,
    #E04A4A 100%
  );
  color: white;
}

.navbar-right-logo > a {
  background-image: url("assets/images/King's_College_London_logo.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  
  width: 120px;
  height: 40px;

  display: block;
  text-indent: -9999px; /* hide empty text */
}


$vsac-table-bg-0-color: lighten(#521A91, 62%);
$vsac-table-bg-1-color: lighten(#521A91, 45%);

hr {
  border: none;
  height: 5px;
  /* background-color: $brightred; */
  background: linear-gradient(to right, #121421, #1632A0, #9F2B3E, #FAC098);
}

html {
  scroll-behavior: smooth;
}


/* Center the navbar items */
.navbar-nav {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Optional: center the brand logo/title too */
.navbar-brand {
  margin: 0 auto;
  text-align: center;
}

/* Apply them globally */
body {
  font-family: "Futura LT", sans-serif;
}

h1, h3, h4, h5, h6 {
  font-family: "Cormorant Light", serif;
}

h1, h2, h3 {
  font-family: "Cormorant Light", serif;
  color: $red;
}


a.light {
  color: $red;
  &:hover {
    color: $orange;
  }
}


.section-stripe {
  background: $navbar-bg;
  border: 1px solid $navbar-bg;
  padding: 1.25rem 1.5rem;
  border-radius: .75rem;
  margin: 2rem 0;
  color: $navbar-hl;
}

.btn-vsac {
  color: white;
  background: linear-gradient(
    0deg,
    #7E1B1B 0%,
    #9E2020 35%,
    #C72626 70%,
    #E04A4A 100%
  );
  border: 2px solid $red;
  border-radius: 9999px; /* full round corners */
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;

  &:hover {
    background-color: white; 
    border-color: $red;
    color: $red;
  }
}

.btn-vsac-outline {
  color: #7E1B1B !important;
  background: #FFADAD;
  border: 2px solid $red;
  border-radius: 9999px; /* full round corners */
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;

  &:hover {
    /* Flips to your original full-gradient look on hover */
    color: white !important;
    background: linear-gradient(
      0deg,
      #7E1B1B 0%,
      #9E2020 35%,
      #C72626 70%,
      #E04A4A 100%
    );
    border-color: transparent; /* prevents a double-border look if $red doesn't perfectly match the gradient edge */
  }
}

/* When the details block is closed, show "Show Abstract" */
details.abstract-toggle summary::before {
  content: "Show Abstract";
}

/* When the details block has the 'open' attribute, switch to "Hide Abstract" */
details.abstract-toggle[open] summary::before {
  content: "Hide Abstract";
}

/* --- Footer icon styling --- */

/* Size & base color */
footer .nav-footer .bi {
  font-size: 2rem;              /* bump size; try 2.5–3rem if you want bigger */
  vertical-align: middle;
  transition: color .25s ease, transform .2s ease;
}

footer .nav-footer a,
footer .nav-footer .bi {
  color: #ffffff;                /* white on your black footer */
}

/* Hover effect: gold + optional scale */
footer .nav-footer a:hover,
footer .nav-footer a:hover .bi {
  color: #d4af37;                /* your $gold */
  transform: scale(1.08);        /* optional micro-zoom */
}


.table-no-header thead {
  display: none;
}

/* --- Section separator --- */
.section-divider {
  width: 120vw;
  height: 30px;              /* stripe thickness */
  background-color: black;
  margin: 1rem 0;            /* space above/below */
  position: relative;
  left: -100%;
  right: 100%;
  //margin-left: -50vw;
  //margin-right: -150vw;
}

td.poster-cell {
  background-color: #FBD1B3;
  text-align: center;
  vertical-align: middle;
}


.short-separator {
  width: 40px;
  height: 1px;
  margin: 0.5rem auto;
  background-color: #FBD1B3;  
  opacity: 0.4;
}

.btn-vsac-abstract-outline {
  color: #7E1B1B !important;
  background: $body-bg;
  border: 2px solid #7E1B1B;
  border-radius: 9999px; /* full round corners */
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;

  &:hover {
    /* Flips to your original full-gradient look on hover */
    background: #FFADAD;
  }
}



.submission-entry {
  //padding: 1rem 0;
  //border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.submission-number {
  color: black;
  font-size: 0.9rem;
  padding-top: 0.15rem;
}

.submission-details {
  width: 100%;
}

.submission-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;

  cursor: pointer;
  list-style: none;
  border-radius: 0.35rem;
}

/* Remove the browser's default disclosure marker */
.submission-summary::-webkit-details-marker {
  display: none;
}

.submission-summary::marker {
  display: none;
  content: "";
}

.submission-heading {
  flex: 1;
  min-width: 0;
}

.submission-title {
  font-weight: 600;
  line-height: 1.35;
  color: black;
}

.submission-authors {
  margin-top: 0.2rem;
  color: black;
  font-size: 0.95rem;
}

/* Small, unobtrusive chevron */
.submission-toggle {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.05rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  color: $red;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.2s ease;
}

.submission-toggle::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;

  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;

  transform: rotate(45deg) translate(-1px, -1px);
}

.submission-summary:hover .submission-toggle {
  color: $red;
  background-color: #FBD1B3;//rgba(0, 0, 0, 0.06);
}

.submission-details[open] .submission-toggle {
  transform: rotate(180deg);
}

.submission-summary:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 0.25rem;
}

.submission-abstract {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;

  text-align: left;
  line-height: 1.55;

  background-color: rgba(0, 0, 0, 0.025);
  border-left: 3px solid rgba(0, 0, 0, 0.15);
  border-radius: 0 0.3rem 0.3rem 0;
}