@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600&display=swap');

:root {
  --navy: #0d1a2a;        /* SPEC deep navy background */
  --accent: #ff8c00;      /* SPEC bright orange-gold accent */
  --text-color: #222222;  /* body text */
  --link-color: #024a85;  /* Caltech-style blue */
  --link-hover: #ff8c00;
  --light-text: #dbefff; 
  --bg-light: #ffffff;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-color);
  line-height: 1.65;
  font-size: 1.05rem;
}

h1, h2, h3, h4 {
  font-family: "Poppins", sans-serif;
  color: var(--navy);
  font-weight: 600;
}

h1 {
  font-size: 2.3rem;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.4em;
  margin-bottom: 1em;
}

h2 {
  color: var(--accent);
  font-size: 1.6rem;
}

a {
  color: var(--link-color);
  text-decoration: none;
}
a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.navbar {
  background-color: var(--navy) !important;
  border-bottom: 2px solid var(--accent);
}
.navbar-brand, .navbar-nav .nav-link {
  color: var(--light-text) !important;
  font-weight: 500;
}
.navbar-brand:hover, .navbar-nav .nav-link:hover {
  color: var(--accent) !important;
}

/* === Quarto Table of Contents highlight color === */
#TOC a.active,
#TOC a:hover {
  color: var(--link-hover) !important;           /* your gold accent color */
  border-left: 3px solid var(--link-hover) !important;
  background-color: rgba(255, 181, 71, 0.1); /* subtle highlight background */
}

/* === Inline code inside headers === */
h1 code,
h2 code,
h3 code,
h4 code,
h5 code,
h6 code {
  color: var(--navy) !important;          /* Caltech blue */
  background-color: #f4f8ff !important; /* same soft blue background */
  font-family: "JetBrains Mono", monospace;
  border: 1px solid #020c1d;
  font-size: 0.9em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-weight: 600;
}

/* Applies only to inline code (not code blocks) */
p code, li code, td code {
  color: var(--navy);
  background-color: #f4f8ff !important; /* very light blue background for readability */
  padding: 0.15rem 0.35rem;
  border: 1px solid #020c1d ! important;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95em;
  font-weight: 500;
}

code {
  white-space: nowrap;
  overflow-x: auto;
  display: inline-block;
  vertical-align: middle;
}

/* Full border (framed code box) */
/* === Code block borders === */
pre, 
div.sourceCode,
div.cell pre,
div.cell-output pre {
  border-radius: 8px;
}

/* === Fenced Markdown code blocks only (not notebooks) === */
div.sourceCode:not(.cell .sourceCode),
pre.sourceCode:not(.cell .sourceCode),
pre.sourceCode {
  background-color: #09121d !important; 
}

/* === Jupyter stdout === */
pre:not(.sourceCode) {
background-color: var(--light-text);
border-radius: 0rem !important;
}

/* Wrapper should define the shape and background */
div.sourceCode,
pre.sourceCode {
  background-color: #09121d;
  overflow: hidden; /* keeps scrollbars inside the border */
  box-shadow: 0 0 15px rgba(255, 181, 71, 0.408);
}

/* Actual code area handles the horizontal scroll */
div.sourceCode pre,
pre.sourceCode code {
  display: block;
  overflow-x: auto;  /* enables scrolling */
  white-space: pre;  /* preserves line breaks */
  padding: 0.8rem 0.8rem;
  margin: 0;
  border-radius: 0;  /* prevents double-rounded edges */
}


.callout {
  border-left: 4px solid var(--accent);
  background-color: #fff9f0;
  border-radius: 8px;
}

.banner {
  display: flex;
  align-items: center;
  background-color: var(--navy);  /* blue bar */
  color: var(--accent);
  padding: 2em 2em;
  border-radius: 12px;
  margin: 2em 0;
  box-shadow: 0 0 15px rgba(255, 181, 71, 0.408);
  cursor: pointer;
  transition: background 0.2s ease;
}

.banner img {
  width: 150px;
  margin-right: 4em;
  border-radius: 6px;
}

.banner:hover {
  background-color: #013c58;
}

.banner-text h3 {
  color: var(--light-text);
  margin: 0;
  font-size: 1.5em;
}

.banner[data-href] {
  position: relative;
}

.highlight-section {
  background-color: var(--light-text);        /* light blue background */
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 1.3rem ;               /* slightly larger text */
  font-weight: 600;                 /* bold everything inside */
  color: #0d1a2a;                   /* navy text color for contrast */
  letter-spacing: 0.3px;            /* subtle spacing for emphasis */
  box-shadow: 2px 2px 2px var(--navy);
}

.emphasis {
  margin: 1.5rem 0;
  font-size: 1.3rem ;               /* slightly larger text */
  font-weight: 600;                 /* bold everything inside */
  color: #0d1a2a;                   /* navy text color for contrast */
  letter-spacing: 0.3px;            /* subtle spacing for emphasis */
}

h3 {
  color: #013c58;
  margin-bottom: 1em;
}

button {
  background-color: #013c58;
  color: white;
  border: none;
  padding: 0.5em 1.2em;
  border-radius: 6px;
  margin-top: 1em;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background-color: #02547a;
}

button.back-btn {
  background-color: #aaa;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Table of Contents Customization === */

/* Container */
#TOC, .toc {
  background-color: #0d1a2a;     /* navy */
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Section headings inside ToC */
.toc-title {
  color: #ffb547;                /* gold title */
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Links */
.toc a {
  color: #cce4ff;                /* light blue links */
  text-decoration: none;
  transition: color 0.2s ease;
}

.toc a:hover {
  color: #ffb547;                /* gold hover */
}


/* Remove border for all non-active items */
.sidebar nav li,
.toc nav li {
  border-left: none !important;
  color: var(--light-text) !important;
}

/* Remove grey border or pseudo-element that sometimes appears */
.sidebar nav li::before,
.toc nav li::before {
  display: none !important;
  color: var(--light-text) !important;
}

/* Active section highlight */
.sidebar nav li.active > a,
.toc .nav-link.active {
  color: var(--link-hover) !important;
  font-weight: 600;
  border-left: 3px solid var(--link-hover);
  padding-left: 0.5rem;
  border-radius: 4px;
}

/* Nested indentation */
.toc ul ul {
  margin-left: 1rem;
  border-left: 1px solid rgba(255, 181, 71, 0.2);
  padding-left: 0.5rem;
}

body[data-page="sample_pipeline.html"] .page-content {
  max-width: 1200px !important;
}

/* Container that positions the Colab button at the top-right */
.colab-button-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 0.5rem; /* space before page title */
}

/* Add a subtle hover lift effect to make it feel interactive */
.colab-top-button {
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.colab-top-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Tweak the badge size for consistency */
.colab-badge {
  height: 28px;
  border-radius: 6px;
}

.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background-color: #f9fafc;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  color: #0d1a2a; /* navy */
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #dfe3ea;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ff9f43; /* orange accent */
  outline: none;
}

.contact-form button {
  align-self: flex-start;
  background-color: #ff9f43;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-form button:hover {
  background-color: #ffb547;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* === Collapsible FASTQC details blocks === */

details {
  background-color: #f9fafc;
  border: 2px solid var(--navy);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

details:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(255, 181, 71, 0.25);
}

summary {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  position: relative;
  list-style: none;
  outline: none;
}

summary::-webkit-details-marker {
  display: none;
}

/* Add custom caret icon */
summary::before {
  content: "▶";
  color: var(--accent);
  margin-right: 0.6em;
  transition: transform 0.2s ease;
}

/* Rotate caret when expanded */
details[open] summary::before {
  transform: rotate(90deg);
}

/* Inside text styling */
details p {
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* Optional subtle color accent when open */
details[open] {
  border-color: var(--accent);
  background-color: #fff9f0;
  box-shadow: 0 4px 12px rgba(255, 181, 71, 0.25);
}

/* === Compact programming tools row === */

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0 2rem 0;
}

.mini-tool-card {
  position: relative;
  width: 180px;
  height: 125px;
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: white;
  border-radius: 10px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
  padding: 0.5rem;
}

.mini-tool-card p {
  margin: 0;
}

.mini-tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
}

.mini-tool-icon {
  width: 80px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.35rem;
}

/* Hide normal card contents on hover */
.mini-tool-card:hover > * {
  opacity: 0;
}

/* Show description instead */
.mini-tool-card::after {
  content: attr(data-desc);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.65rem;
  font-family: "Inter", sans-serif;
  font-size: 0.90rem;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mini-tool-card:hover::after {
  opacity: 1;
}

/* === Environment tool cards === */

.resource-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 2rem 0;
  justify-content: center;
}

.resource-card {
  width: 350px;
  padding: 1.4rem 1rem;
  text-align: center;
  background-color: var(--navy);
  color: var(--light-text);
  border-radius: 12px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 181, 71, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  background-color: #013c58;
  box-shadow: 0 6px 18px rgba(255, 181, 71, 0.35);
}

.resource-icon {
  width: 48px;
  margin-bottom: 0.5rem;
}

/* Keep page descriptions in <meta> for search engines, but hide them from the title block */
#title-block-header .description {
  display: none;
}
