/* ===========================================================================
   Stand Up Science — site styles
   Loaded after Bootstrap on every page.

   All brand colors live in the :root block below. Change a value there and it
   updates everywhere it is used.
   ========================================================================= */

:root {
  /* Brand */
  --sus-blue:            #274296;   /* navbar, footer, book border, headings */
  --sus-blue-dark:       #1d3374;

  /* Nav button colors (from the spec sheet) */
  --btn-mission:         #7F269F;
  --btn-contents:        #FD4500;
  --btn-bio:             #FFDB00;
  --btn-publications:    #E01B1B;
  --btn-activities:      #01AB30;

  /* Award panel backgrounds */
  --awards-national-bg:  #B4FFAE;
  --awards-state-bg:     #FFF1AB;

  /* Neutrals */
  --ink:                 #16181d;
  --ink-soft:            #3f434d;
  --rule:                #1b1b1b;
  --paper:               #ffffff;
  --keyword-bg:          #c3b191;

  /* Type */
  --font-display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-body: "Lato", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-quote: "EB Garamond", "Times New Roman", Georgia, serif;
}

/* ---------------------------------------------------------------- base --- */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  /* Keeps the footer at the bottom of short pages such as Publications. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  padding-block: 2.5rem 4rem;
}

a {
  color: var(--sus-blue);
}

/* Visible keyboard focus everywhere. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.nav-btn:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

/* Page headings: heavy display face set in small caps, as in the mockups. */
.page-heading,
.section-heading {
  /* font-family: var(--font-display); */
  font-variant-caps: small-caps;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.page-heading {
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem);
  margin-bottom: 1.25rem;
}

.section-heading {
  font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  margin-bottom: 0.9rem;
}

.page-subhead {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.35rem);
  font-style: italic;
  color: var(--ink-soft);
  /* max-width: 68ch; */
}

.body-copy {
  font-size: 1.02rem;
  line-height: 1.65;
  /* max-width: 78ch; */
}

.body-copy p + p {
  margin-top: 0.9rem;
}

/* -------------------------------------------------------------- navbar --- */

.sus-navbar {
  background-color: var(--sus-blue);
  padding-block: 0.65rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.sus-navbar .navbar-brand {
  padding: 0.35rem 0.75rem;   /* keeps the logo off the edges */
  margin-right: 1rem;
}

.sus-navbar .navbar-brand svg {
  display: block;
  height: 62px;
  width: auto;
  background: #fff;
  padding: 2px 6px;
  border-radius: 2px;
}

.sus-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.65);
}

.sus-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#Arrow {
    transform-box: fill-box;
    transform-origin: center;
}

svg:hover #Arrow {
    animation: arrowUp 1.5s ease-in-out infinite;
}

@keyframes arrowUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Nav buttons ------------------------------------------------------------ */

.nav-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-variant-caps: small-caps;   /* Mission -> M-ISSION */
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #000;
  text-decoration: none;
  padding: 0.55rem 1.15rem;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.nav-btn:hover,
.nav-btn:focus {
  color: #000;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.nav-btn:active {
  transform: translateY(1px);
}

.nav-btn[aria-current="page"] {
  border-color: #000;
  box-shadow: inset 0 0 0 2px #fff, 0 2px 4px rgba(0, 0, 0, 0.35);
}

.nav-btn--mission      { background-color: var(--btn-mission);  }
.nav-btn--contents     { background-color: var(--btn-contents); }
.nav-btn--bio          { background-color: var(--btn-bio); }
.nav-btn--publications { background-color: var(--btn-publications); }
.nav-btn--activities   { background-color: var(--btn-activities); }

/* Stacked buttons once the menu collapses into the hamburger. */
@media (max-width: 991.98px) {
  .sus-navbar .navbar-nav {
    gap: 0.5rem;
    padding-block: 0.85rem;
  }

  .nav-btn {
    display: block;
    text-align: center;
  }
}

/* -------------------------------------------------------------- footer --- */

.sus-footer {
  flex-shrink: 0;
  background-color: var(--sus-blue);
  color: #fff;
  padding-block: 2.5rem;
}

.sus-footer h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.sus-footer a {
  color: white;
}

.sus-footer .footer-links a {
  display: inline-block;
  font-style: italic;
  text-decoration: underline;
  margin-bottom: 0.4rem;
}

.social-row {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.social-row a {
  display: inline-flex;
  border-radius: 50%;
  transition: transform 0.12s ease;
}

.social-row img {
  width: 42px;
  height: 42px;
  display: block;
}

.social-row a:hover,
.social-row a:focus {
  transform: scale(1.08);
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* -------------------------------------------------------------- quotes --- */

.pull-quote {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.8rem);
  line-height: 1.45;
  text-align: center;
  border-top: 1.5px solid var(--rule);
  border-bottom: 1.5px solid var(--rule);
  padding-block: 1.2rem;
  margin-block: 2.5rem;
  max-width: 62ch;
}

.pull-quote cite {
  display: block;
  font-style: italic;
  margin-top: 0.5rem;
}

.pull-quote cite::before {
  content: "- ";
}

.pull-quote--center {
  margin-inline: auto;
}

/* ------------------------------------------------------------ home page --- */

.book-cover {
  width: 100%;
  height: auto;
  border: 14px solid var(--sus-blue);
  background: #fff;
}

.book-basics h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-variant-caps: small-caps;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.book-basics ul {
  border: 1.5px solid var(--rule);
  padding: 1rem 1rem 1rem 2.4rem;
  margin: 0;
  font-variant-caps: small-caps;
  font-size: 1.05rem;
  line-height: 1.55;
}

.book-basics ul ul {
  border: 0;
  padding: 0 0 0 1rem;
  list-style: none;
}

/* The two book pages shown on the right of the home page. */
.book-page {
  background: #fff;
  border: 1px solid #d6d6d6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 2rem clamp(1.25rem, 3vw, 2.75rem) 1.25rem;
  font-family: var(--font-quote);
  font-size: 1.12rem;
  line-height: 1.5;
}

.book-page + .book-page {
  margin-top: 2rem;
}

.book-page__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1.5px solid var(--rule);
  padding-bottom: 0.4rem;
  margin-bottom: 2rem;
}

.book-page__header h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.3rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

.book-page__header img {
  width: clamp(90px, 18%, 150px);
  height: auto;
}

.book-page__title {
  font-family: var(--font-body);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.15rem);
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

.book-page__body p {
  text-align: justify;
  hyphens: auto;
  margin: 0;
}

.book-page__body p + p {
  text-indent: 2em;
}

.book-page__opener {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 0.95em;
}

.book-page__body--continued p,
.book-page__body--continued p + p {
  text-indent: 2em;
}

.book-page__folio {
  text-align: right;
  font-size: 0.95rem;
  margin-top: 2rem;
  color: var(--ink-soft);
}

.book-page__folio--verso {
  text-align: left;
}

.book-page--placeholder {
  border-style: dashed;
  border-color: var(--sus-blue);
  background: #f7f9ff;
}

/* --------------------------------------------------------- mission page --- */

.figure-caption-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.bluestem-photo {
  width: 100%;
  height: auto;
  max-width: 200px;
  /* border: 1px solid #cfcfcf; */
}
.BurrOak-photo{
    width: 100%;
    max-width: 200px;
    height: auto;
}

/* --------------------------------------------- table of contents page --- */

.toc-banner {
  display: block;
  margin: 0 auto 1.5rem;
  max-width: 480px;
  width: 100%;
  height: auto;
}

/* .toc-title {
  font-family: var(--font-body);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem);
  text-align: center;
  margin-bottom: 2.5rem;
} */

.toc {
  max-width: 70ch;
  margin-inline: auto;
  font-family: var(--font-quote);
  font-size: 1.15rem;
}

.toc dt {
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin-top: 1rem;
}

.toc dd {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0 0 0 1.75rem;
}

/* Dot leaders between the chapter blurb and its page number. */
.toc dd .toc-label {
  flex: 0 1 auto;
}

.toc dd .toc-dots {
  flex: 1 1 auto;
  border-bottom: 2px dotted var(--ink);
  transform: translateY(-0.25em);
  min-width: 1.5rem;
}

.toc dd .toc-page {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- bio page --- */

.author-photo {
  width: 100%;
  height: auto;
  /* border: 1px solid #d9d9d9; */
}

.author-name {
  font-family: var(--font-display);
  color: var(--sus-blue);
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.author-keywords {
  display: inline-block;
  background: var(--keyword-bg);
  font-style: italic;
  font-size: 1.1rem;
  padding: 0.6rem 1.4rem;
  margin-bottom: 1.75rem;
}

.bio-summary p {
    text-indent:40px;
}

.cat-photo {
  width: 100%;
  height: auto;
  /* border: 1px solid #d9d9d9; */
}

.awards-panel {
  padding: 2rem 0 2.25rem;
  margin-block: 2.5rem;
}

.awards-panel--national { background: var(--awards-national-bg); }
.awards-panel--state    { background: var(--awards-state-bg); }

.awards-list {
  list-style: none;
  padding-left: 1.5rem;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
}

.awards-list li::before {
  content: "- ";
}

/* ----------------------------------------------------- publications page --- */
.publication-header{
    text-align: center;
}

.publications-list {
  list-style: none;
  padding: 0;
  margin: auto;
  max-width: 80ch;
  text-align: center;
}

.publications-list li {
  font-style: italic;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  line-height: 1.4;
  padding-block: 0.85rem;

  list-style-type: none;
  padding: 0;
  margin-bottom: 2rem;
}

/* .publications-list li::before {
  content: "- ";
} */

/* ------------------------------------------------------- activities page --- */

.activity-thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  /* border: 1px solid #d9d9d9; */
  background: #f2f4f8;
  margin-right: 5px;
  margin-bottom: 5px;
}

.activity-type {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  background: #dbe7ff;
  color: #17306e;
}

.activity-type--life       { background: #d7f5da; color: #14532d; }
.activity-type--earth      { background: #ffe6cc; color: #7a3a00; }
.activity-type--physical   { background: #dbe7ff; color: #17306e; }
.activity-type--engineering{ background: #ede0ff; color: #4a1d6b; }
.activity-type--chemistry  { background: #ffe0ea; color: #7b1133; }

.download-link {
  font-weight: 700;
  white-space: nowrap;
}

#activitiesTable {
  width: 100% !important;
}

#activitiesTable th {
  color: var(--sus-blue);
}

#activitiesTable td {
  vertical-align: middle;
}

.table-status {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--btn-contents);
  background: #fff5ef;
  font-weight: 600;
}

.red-text{
    color:red
}

#dt-search-0{
    width:300px;
}

.humor-box {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.humor-box img {
    width: 25%;
    height: auto;
}

 /* Tablets and medium screens */
@media (width >= 768px) {
    .humor.figure-caption-note {
        width: 25%;
    }
}

/* ------------------------------------------------------------ 404 page --- */

.notfound {
  text-align: center;
  padding-block: 3rem;
}

/* --------------------------------------------------------------- motion --- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------- print --- */

@media print {
  .sus-navbar,
  .sus-footer,
  .dataTables_filter,
  .dataTables_length,
  .dataTables_paginate { display: none !important; }

  body { color: #000; }
}
