/* THREADS Lab custom styles */

/* Small, understated separators inside the T.H.R.E.A.D.S. wordmark */
.acronym-dot {
  font-size: 0.32em;
  opacity: 0.55;
  vertical-align: middle;
  margin: 0 0.02em;
}

/* Second (smaller) line under the main subtitle in the page header */
.subheading-secondary {
  display: block;
  margin-top: 6px;
  font-size: 0.85em;
  opacity: 0.8;
}

/* ---- Team member cards ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 18px 0 34px;
}
.member-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 16px;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.member-card:hover {
  border-color: #3A6A74;
  box-shadow: 0 6px 18px rgba(20, 24, 29, .07);
}
.member-avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #3A6A74;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.member-card.is-alum .member-avatar { background: #6b7a82; }
.member-body { min-width: 0; }
.member-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  margin: 0 0 3px;
}
.member-name a { text-decoration: none; }
.member-name a:hover { text-decoration: underline; }
.member-role {
  font-size: 12.5px;
  color: #5b6470;
  line-height: 1.45;
  margin: 0;
}
.member-role em { font-style: italic; }

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ---- Principal investigator box: text left, portrait right ---- */
.pi-block {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  background: #fff;
  margin: 6px 0 30px;
}
.pi-text { flex: 1 1 auto; min-width: 0; }
.pi-text > p:first-child { margin-top: 0; }
.pi-text > p:last-child { margin-bottom: 0; }
.pi-photo {
  flex: 0 0 auto;
  width: 170px;
}
.pi-photo img {
  width: 100%;
  height: auto;          /* keep the full portrait - never crop the subject */
  display: block;
  border-radius: 8px;
  border: 1px solid #e1e4e8;
}

@media (max-width: 700px) {
  .pi-block { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
  .pi-photo { width: 150px; }
}

/* Acronym expansion line: noticeably smaller than the default subheading */
.intro-header .page-heading .page-subheading.subheading-expansion {
  font-size: 1.125rem;
  line-height: 1.35;
  margin-top: 0.5rem;
}

/* Photos on member cards, where the person's photo is already in the repo */
.member-avatar.has-photo {
  background: none;
  overflow: hidden;
  padding: 0;
}
.member-avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ---- Partner and sponsor logos ---- */
.partner-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin: 16px 0 26px;
  text-align: center;
}
.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  opacity: .85;
  transition: opacity .18s ease;
}
a.partner-logo { cursor: pointer; }
a.partner-logo:hover, a.partner-logo:focus-visible { opacity: 1; }
a.partner-logo img { cursor: pointer; }
.partner-logo img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}
.partner-logo img[alt='Brock University']       { max-height: 74px; }
.partner-logo img[alt='NSERC / CRSNG']          { max-height: 60px; }
.partner-logo img[alt='Mitacs']                 { max-height: 36px; }
.partner-logo img[alt='Ciena']                  { max-height: 40px; }
.partner-logo img[alt='Interconnect Dynamics']  { max-height: 68px; }
.partner-caption {
  font-size: 12px;
  font-weight: 600;
  color: #3A4552;
  line-height: 1.3;
}

/* ---- Contact enquiry form ---- */
.enquiry {
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  padding: 20px 22px;
  background: #fff;
  margin: 18px 0 28px;
}
.enquiry-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.enquiry-tab {
  border: 1px solid #e1e4e8;
  background: #fff;
  color: #3A4552;
  border-radius: 7px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.enquiry-tab:hover { border-color: #3A6A74; color: #14181D; }
.enquiry-tab[aria-selected="true"] {
  background: #3A6A74;
  border-color: #3A6A74;
  color: #fff;
}
.enquiry-field { margin-bottom: 14px; }
.enquiry-field label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: #14181D;
  margin-bottom: 5px;
}
.enquiry-field .hint {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: #5b6470;
  margin-top: 2px;
}
.enquiry-field input,
.enquiry-field select,
.enquiry-field textarea {
  width: 100%;
  border: 1px solid #d6dade;
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 14px;
  font-family: inherit;
  color: #14181D;
  background: #fff;
}
.enquiry-field textarea { min-height: 96px; resize: vertical; }
.enquiry-field input:focus,
.enquiry-field select:focus,
.enquiry-field textarea:focus {
  outline: none;
  border-color: #3A6A74;
  box-shadow: 0 0 0 3px rgba(58,106,116,.12);
}
.enquiry-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.enquiry-submit {
  background: #3A6A74;
  color: #fff;
  border: 0;
  border-radius: 7px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  font-family: inherit;
}
.enquiry-submit:hover { background: #2f565e; }
.enquiry-note { font-size: 12px; color: #5b6470; margin: 12px 0 0; }
.enquiry-error { color: #b3261e; font-size: 13px; margin-top: 10px; display: none; }

/* ---- Publication topic chips ---- */
.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 26px;
}
.topic-chip {
  display: inline-block;
  border: 1px solid #e1e4e8;
  border-radius: 100px;
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: #3A4552;
  background: #fff;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.topic-chip:hover {
  border-color: #3A6A74;
  color: #3A6A74;
  background: #f2f6f7;
  text-decoration: none;
}

/* ---- Navbar: keep the last item off the screen edge ---- */
@media (min-width: 1200px) {
  .navbar-custom .navbar-nav {
    margin-right: 40px;
  }
}

/* ---- Brand mark in the navbar ---- */
.navbar-brand-threads {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark-img {
  height: 26px;
  width: auto;
  display: block;
}

/* ---- Hero logo mark ---- */
.hero-logo {
  height: 54px;
  width: auto;
  display: block;
  margin: 0 auto 14px;
}

/* ============ Visual refresh ============ */

/* Navbar: dark band, teal hover underline */
.navbar-custom {
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 2px 14px rgba(0,0,0,.18);
}
.navbar-custom .navbar-brand { color: #fff !important; font-weight: 700; letter-spacing: .02em; }
.navbar-custom .nav-link {
  position: relative;
  transition: color .15s ease;
}
.navbar-custom .nav-link:hover { color: #fff !important; }
.navbar-custom .nav-link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  background: #7FB3BC;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.navbar-custom .nav-link:hover::after { transform: scaleX(1); }
.navbar-custom .navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath stroke='%23D6DEE2' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Hero band: soft teal-tinted gradient with a rule underneath */
.intro-header.no-img {
  background: linear-gradient(180deg, #f2f7f7 0%, #ffffff 90%);
  border-bottom: 1px solid #e1e4e8;
}
.intro-header .page-heading hr.small,
.intro-header .post-heading hr.small {
  border-color: #3A6A74;
  border-width: 3px;
  width: 56px;
}

/* Section headings: subtle teal kicker bar */
.container-lg h3 {
  position: relative;
  padding-top: 12px;
  margin-top: 34px;
}
.container-lg h3::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 3px;
  border-radius: 2px;
  background: #3A6A74;
}
/* but not inside cards, sidebars, or the PI box */
.member-card h3::before, .pi-block h3::before, .sidepanel h3::before { display: none; }
.sidepanel h3 { padding-top: 0; }

/* Jump/index rows */
.year-index {
  font-size: 13px;
  color: #5b6470;
  background: #f4f7f8;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.9;
}
.year-index a { font-weight: 650; white-space: nowrap; }

/* Footer polish */
footer {
  border-top: 3px solid #3A6A74;
}
footer .fa-stack-2x { color: #2a333c !important; }
footer .fa-inverse { color: #D6DEE2 !important; }
