
/* FONTS */

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


   /* BASE */

:root{
  --maroon:#7a0019;
  --panel-border:#ccc;
  --table-border:#444;
  --bg:#f8f9fa;
}

html,body{ height:100%; }
body{
  font-family: Arial, sans-serif;
  margin: 30px;
  background-color: var(--bg);
}

/* for page headings (“Help”, “About”) */
.page-title{
  margin-top: 0;
  color: var(--maroon);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* box used across pages */
.section{
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 15px;
  margin-top: 20px;
  background-color: #fff;
}

/* Links inside content boxes use maroon accent */
.section a{
  color: var(--maroon);
  text-decoration: none;
  font-weight: 600;
}
.section a:hover{ text-decoration: underline; }

/* Soft callout */
.note-soft{
  background:#f8fafc;
  border:1px dashed #cbd5e1;
  border-radius:10px;
  padding:12px 14px;
  color:#0f172a;
}


 /* HEADER */
.site-header{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  grid-template-rows:auto auto;
  align-items:center;
  background:var(--maroon);
  color:#fff;
  padding:20px 32px;
  border-radius:12px;
  margin-bottom:20px;
  width:100%;
  box-sizing:border-box;
}

.site-title{
  grid-column:2;
  grid-row:1;
  margin:6px 0 0 0;
  text-align:center;
  font-size:20px;
  font-family:'Poppins', sans-serif;
  font-weight:700;
  letter-spacing:.5px;
}

/* Split title into main + subtitle */
.main-title{
  font-family:'Poppins', sans-serif;
  font-weight:700;
  font-size:32px;
  display:block;
  margin-bottom:6px;
}
.site-subtitle{
  font-family:'Poppins', sans-serif;
  font-weight:500;
  font-size:18px;
  display:block;
}

.site-nav{
  grid-column:3;
  grid-row:2;
  justify-self:end;
  display:flex;
  gap:24px;
  margin-top:10px;
}
.site-nav a{
  text-decoration:none;
  color:#fff;
  font-family:'Poppins', sans-serif;
  font-weight:600;
  transition:opacity .2s ease;
}
.site-nav a:hover{ opacity:.8; }

@media (max-width:640px){
  .site-header{
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto;
    row-gap:8px;
    text-align:center;
  }
  .site-title{ grid-column:1; grid-row:2; }
  .site-nav{ grid-column:1; grid-row:3; justify-self:center; }
}

 /* INDEX PAGE (upload/results) */


/* header block used on index cards */
.section-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}
.section-header h3{ margin:0; }
.section-header a{
  font-size:.9em;
  text-decoration:none;
  color:var(--maroon);
  font-weight:600;
}
.section-header a:hover{ text-decoration:underline; }

/* Tables */
table{
  border-collapse:collapse;
  width:100%;
  margin-top:10px;
}
th, td{
  border:1px solid var(--table-border);
  padding:6px 10px;
  text-align:left;
}
th{ background-color:#eee; }

/* Scrollable table wrapper */
.table-wrap{
  width:100%;
  overflow:auto;
  max-height:480px;
  border:1px solid #ddd;
  border-radius:6px;
}

/* BLAST table tweaks */
.blast-table{ border-collapse:collapse; width:100%; min-width:760px; }
.blast-table th, .blast-table td{
  border:1px solid var(--table-border);
  padding:6px 10px;
  vertical-align:top;
  white-space:normal;
  word-break:break-word;
}
.blast-table thead th{
  position:sticky; top:0; background:#eee; z-index:1;
}
@media (max-width:900px){
  .blast-table th:nth-child(1), .blast-table td:nth-child(1){ max-width:220px; }
  .blast-table th:nth-child(2), .blast-table td:nth-child(2){ max-width:160px; }
  .blast-table th:nth-child(3),
  .blast-table td:nth-child(3),
  .blast-table th:nth-child(6),
  .blast-table td:nth-child(6),
  .blast-table th:nth-child(7),
  .blast-table td:nth-child(7){ white-space:nowrap; }
}

/* Buttons */
.btn{
  display:inline-block;
  font-family:'Poppins', sans-serif;
  font-size:.9em;
  font-weight:600;
  padding:6px 12px;
  border-radius:6px;
  text-decoration:none;
  cursor:pointer;
  transition:background-color .2s ease, color .2s ease;
}
.btn-outline-primary{
  border:1px solid var(--maroon);
  color:var(--maroon);
  background:transparent;
}
.btn-outline-primary:hover{ background:var(--maroon); color:#fff; }
.btn:disabled{ opacity:.6; cursor:not-allowed; }

/* Spinner on Run button */
.spinner{
  width:14px; height:14px;
  border:2px solid transparent;
  border-top-color:var(--maroon);
  border-right-color:var(--maroon);
  border-radius:50%;
  display:none;
  margin-right:6px;
  animation:spin .8s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
.is-loading .spinner{ display:inline-block; }
.is-loading .label{ opacity:.7; }

/* File chooser styled like outline button */
.file-chooser{ font-family:'Poppins', sans-serif; margin-right:10px; }
.file-chooser::file-selector-button{
  font-family:'Poppins', sans-serif;
  font-size:.9em; font-weight:600;
  padding:6px 12px; border-radius:6px;
  border:1px solid var(--maroon); color:var(--maroon);
  background:transparent; cursor:pointer;
  transition:background-color .2s ease, color .2s ease;
  margin-right:10px;
}
.file-chooser:hover::file-selector-button,
.file-chooser:focus-visible::file-selector-button{
  background:var(--maroon); color:#fff;
}
/* Safari fallback */
.file-chooser::-webkit-file-upload-button{
  font-family:'Poppins', sans-serif;
  font-size:.9em; font-weight:600;
  padding:6px 12px; border-radius:6px;
  border:1px solid var(--maroon); color:var(--maroon);
  background:transparent; cursor:pointer;
  transition:background-color .2s ease, color .2s ease;
  margin-right:10px;
}
.file-chooser:hover::-webkit-file-upload-button,
.file-chooser:focus-visible::-webkit-file-upload-button{
  background:var(--maroon); color:#fff;
}

 /* HELP PAGE */

/* Container width for help page */
.page-container{ max-width:960px; margin:0 auto; }

/* FAQ headings + text */
.faq h3{
  margin:18px 0 6px;
  font-size:1.05rem;
  color:var(--maroon);
  font-family:'Poppins', sans-serif;
  font-weight:600;
}
.faq p{ margin:0 0 12px; }


 /* ABOUT PAGE */

/* Images inside About page */
.section img,
.section figure img {
  display: block;
  max-width: 700px;   /* cap size so it doesn’t stretch too much */
  width: 100%;        /* shrink on small screens */
  height: auto;
  margin: 0 auto;     /* center horizontally */
  border: none;       /* remove any border */
}

/* Captions below image */
.section figcaption {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  max-width: 700px;   /* match image width cap */
  margin-left: auto;
  margin-right: auto;
}

/* underline text */
.underline {
  text-decoration: underline;
}

/* Numbered list spacing */
.numbered li {
  margin-bottom: 15px;   /* space between each numbered item */
}

/* References formatting */
.references p {
  margin: 0 0 12px 0;
  line-height: 1.45;
  text-indent: -2em;      /* indent */
  padding-left: 2em;
  word-break: break-word; /* wrap long URLs */
}
.references a {
  text-decoration: underline;
}