/* ================================
   PROFILE PAGE ONLY (scope)
   ================================ */
.node--type-profile {padding-top: 2rem;}

/* Body text on profile pages */
.node--type-profile p {
  font-size: 1rem;
	line-height: 1.6;
}

/* Section label size ("Qualifications", "Memberships") */
.node--type-profile .profile-details {
  font-size: 1rem;
  font-weight: 500;
}

/* “Standard” list styling used on profile pages */
.node--type-profile ul.standard {
  line-height: 1.2em;
  color: rgb(53, 142, 132);
  list-style: disc outside;
  padding-left: 2em;
  display: block;
  overflow: visible !important;
  font-size: 1rem;
}
.node--type-profile .standard li {
  list-style: disc;
}

/* Name (h1) with green highlight */
.node--type-profile h1.profile-highlight-green {
  font-family: "spectral";
  font-size: clamp(2.25rem, 2.5vw, 3rem);
  line-height: 1.08;
  display: inline-block;
  overflow-wrap: anywhere;
  max-width: 100%;
  color: #000;
}
.node--type-profile .highlight-green {
  background: linear-gradient(120deg, #00d2b9 80%, transparent 100%);
    background-position-x: 0%;
    background-position-y: 0%;
    background-repeat: repeat;
    background-size: auto;
  background-repeat: no-repeat;
  background-size: 100% 75%;
  background-position: 0 50%;
  padding: 0 0.2em 0 0;
  margin: 0 0 0 0;
}

/* Minor text utility */
.node--type-profile .indent {
  padding: 0;
  font-size: 1rem;
  color: #333;
}

/* ================================
   CONTACT CARD (top three columns)
   ================================ */
.node--type-profile .contact-card.ds-3col-equal > .group-left {
  float: left;
  width: 17%;
  padding-right: 1rem;
}
.node--type-profile .contact-card.ds-3col-equal > .group-middle {
  float: left;
  width: 30%;
  padding-right: 1rem;
}
.node--type-profile .contact-card.ds-3col-equal > .group-right {
  float: left;
  width: 50%;
  padding-left:1rem;
}

/* Job title + contact details come from a TAXONOMY TERM rendered
   in view mode `profile_contact_details` */
.node--type-profile
  .taxonomy-term--view-mode-profile-contact-details
  .field--name-field-role {
  /* replaces .jobtitle */
  font-size: 1rem;
  font-weight: lighter;
}

.node--type-profile
  .taxonomy-term--view-mode-profile-contact-details
  .field--type-ds p {
  margin: 0 0 0.25rem;
}

/* Qualifications & Memberships (right column wrappers from your twig) */
.node--type-profile .field--name-field-qualifications .field__label,
.node--type-profile .field--name-field-memberships .field__label {
  margin-bottom: 0.25rem;
}

.node--type-profile .field--name-field-qualifications .field__item ul,
.node--type-profile .field--name-field-memberships .field__item ul {
  padding-left: 1.25rem;
}

/* ================================
   PERSONAL PROFILE BOX
   ================================ */
.node--type-profile .text-box {
  /*max-width: 66ch;*/
  margin: 2rem 0 2rem 0;
  padding: 1rem 1rem 1rem 1rem;
  background-color: #f7f7f7;
  border-radius: 0.5rem;
}

.node--type-profile h2.highlight-green {
  padding: 0.5rem;
  width: fit-content;
}

.node--type-profile h2 {
  padding: 0;
  width: fit-content;
	text-size: 1.2rem;
}

/* ================================
   SOCIAL + CONTACT LINKS
   ================================ */

/* Base UL/LI styling */
.node--type-profile .profile-contact {
  list-style: none;
  margin: 0;
  padding: 0 0 1rem 0;
}
.node--type-profile .profile-contact .contact-item {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0;
}
.node--type-profile .profile-contact .contact-item i {
  line-height: 1;
}

/* Links inside contact list */
.node--type-profile .profile-contact li a {
  padding: 0;
  font-size: 1rem;
  color: rgb(53, 142, 132);
  text-decoration: none;
}
.node--type-profile .profile-contact li a:hover,
.node--type-profile .profile-contact li a:focus {
  text-decoration: underline;
}

/* Social icons block (if used later) */
.node--type-profile .profile-contact .social-icons a {
  font-size: 1.2rem;
  margin-right: 0.5em;
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}
.node--type-profile .profile-contact .social-icons a:hover {
  color: #238c7d;
}

/* =========================================
   FIELD GROUP BOOTSTRAP TABS — SITE-WIDE
   Supports up to six tabs
   ========================================= */

/* Equal-width tab columns */

.field-group-bootstrap_tabs-wrapper {
  --tab-background: #a6e8df;
  --tab-active-background: #00d2b9;
  --tab-text: #00332d;
  --tab-divider: #ffffff;
  --tab-focus: #004f45;
}

.field-group-bootstrap_tabs-wrapper > .nav.nav-pills {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  width: 100%;
  padding-left: 0;
  margin-left: 0;
}

/* For responsive tabs */

@media (max-width: 768px) {
  .field-group-bootstrap_tabs-wrapper > .nav.nav-pills {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
	gap: 0.1rem;
  }
  }

/* Individual tab items */
.field-group-bootstrap_tabs-wrapper > .nav.nav-pills > .nav-item {
  float: none;
  width: auto;
  margin: 0;
}

/* Base tab button */
.field-group-bootstrap_tabs-wrapper
  > .nav.nav-pills
  > .nav-item
  > .nav-link {

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 3rem;

  background-color: var(--tab-background);
  color: #00332d;

  border-radius: 0;
  border-right: 1px solid var(--tab-divider);
  font-weight: 400;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;

  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* Custom tab colours for research centres*/

/*.real-centre .field-group-bootstrap_tabs-wrapper {
  --tab-background: #d9c8f3;
  --tab-active-background: #7a3db8;
}

.pedal-centre .field-group-bootstrap_tabs-wrapper {
  --tab-background: #ffe0b3;
  --tab-active-background: #f28c00;
} */

.field-group-bootstrap_tabs-wrapper
  > .nav.nav-pills
  > .nav-item:last-child
  > .nav-link {
  border-right: 0;
}

/* Hover state */
.field-group-bootstrap_tabs-wrapper
  > .nav.nav-pills
  > .nav-item
  > .nav-link:hover {
  background-color: var(--tab-active-background);
  color: var(--tab-text);
}

/* Active tab */
.field-group-bootstrap_tabs-wrapper
  > .nav.nav-pills
  > .nav-item
  > .nav-link.active,
.field-group-bootstrap_tabs-wrapper
  > .nav.nav-pills
  > .nav-item.show
  > .nav-link {
  background-color: var(--tab-active-background);
  color: var(--tab-text);
  font-weight: 550;

  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

/* Keyboard focus */
.field-group-bootstrap_tabs-wrapper
  > .nav.nav-pills
  > .nav-item
  > .nav-link:focus-visible {
  background-color: #00d2b9;
  color: #00332d;
  outline: 3px solid var(--tab-focus);
  outline-offset: 3px;
}

/* Space above and below tab content */
.field-group-bootstrap_tabs-wrapper > .tab-content > .tab-pane {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Fallback for browsers without CSS Grid */
@supports not (display: grid) {
  .field-group-bootstrap_tabs-wrapper > .nav.nav-pills {
    display: flex;
    width: 100%;
  }

  .field-group-bootstrap_tabs-wrapper
    > .nav.nav-pills
    > .nav-item {
    flex: 1 1 0%;
  }
}

/* ——— Make list styling apply to actual profile fields ——— */
.node--type-profile .text-formatted ul {
  line-height: 1.6em;
  color: 0 0 0 0;
  list-style: disc outside;
  padding-left: 2em;
  font-size: 0.875rem;
}
.node--type-profile .text-formatted li {
  list-style: disc;
}

/* Qualifications and memberships lists only */
.node--type-profile .contact-card .group-right .text-formatted ul {
  font-size: 0.875rem;
  line-height: 1.2;
  padding-left: 1.5rem;
  color: #000;
}

/* ——— Job title in contact card (taxonomy view mode: profile_contact_details) ——— */
.node--type-profile
  .taxonomy-term--view-mode-profile-contact-details
  .field--name-field-role {
  font-size: 1.2rem; /* replaces .jobtitle */
  font-weight: lighter;
  line-height: 1.2;
  padding: 0.5rem 0 1rem 0;
}

/* ========== Responsive layout for Profile: Contact details ========== */
/* Extra Small Devices (mobile, below 480px) */
@media (max-width: 480px) {
  /* Section label size ("Qualifications", "Memberships") */
.node--type-profile .profile-details {
  font-size: 1.2rem;
  font-weight: 500;	
}

/* “Standard” list styling used on profile pages */
.node--type-profile ul.standard {
  line-height: 1.2em;
  color: rgb(53, 142, 132);
  list-style: disc outside;
  padding-left: 2em;
  display: block;
  overflow: visible !important;
  font-size: 1rem;
}
.node--type-profile .standard li {
  list-style: disc;
}

/* Name (h1) with green highlight */
.node--type-profile h1.profile-highlight-green {
  font-family: "spectral";
  font-size: 19.5vw;
  line-height: 22vw;
  display: inline-block;
  max-width: 70%;
  color: #000;
}
.node--type-profile .highlight-green {
  background: linear-gradient(120deg, #00d2b9 80%, transparent 100%);
    background-position-x: 0%;
    background-position-y: 0%;
    background-repeat: repeat;
    background-size: auto;
  background-repeat: no-repeat;
  background-size: 100% 75%;
  background-position: 0 50%;
  padding: 0 0.2em 0 0;
  margin: 0 0 0 0;
}

/* Minor text utility */
.node--type-profile .indent {
  padding: 0;
  font-size: 1rem;
  color: #333;
}

/* ================================
   CONTACT CARD (top three columns)
   ================================ */
.node--type-profile .contact-card.ds-3col-equal > .group-left {
  float: left;
  width: 100%;
  padding-right: 1rem;
}
.node--type-profile .contact-card.ds-3col-equal > .group-middle {
  float: left;
  width: 100%;
  padding-right: 1rem;
}
.node--type-profile .contact-card.ds-3col-equal > .group-right {
  float: left;
  width: 100%;
  padding-left:1rem;
}

/* Job title + contact details come from a TAXONOMY TERM rendered
   in view mode `profile_contact_details` */
.node--type-profile
  .taxonomy-term--view-mode-profile-contact-details
  .field--name-field-role {
  /* replaces .jobtitle */
  font-size: 1.5rem;
  font-weight: lighter;
}

.node--type-profile
  .taxonomy-term--view-mode-profile-contact-details
  .field--type-ds p {
  margin: 0 0 0.25rem;
}

/* Qualifications & Memberships (right column wrappers from your twig) */
.node--type-profile .field--name-field-qualifications .field__label,
.node--type-profile .field--name-field-memberships .field__label {
  margin-bottom: 0.25rem;
}

.node--type-profile .field--name-field-qualifications .field__item ul,
.node--type-profile .field--name-field-memberships .field__item ul {
  padding-left: 1.25rem;
}

/* ================================
   EQUAL-WIDTH TABS (add below)
   ================================ */

/* Prefer grid: one equal column per tab */
.node--type-profile .field-group-bootstrap_tabs-wrapper .nav.nav-pills {
  display: block;               /* why: stacks tabs vertically */
  width: 100%;
  padding-left: 0;             /* neutralize list spacing if any */
  margin-left: 0;
}	
}

/* Small Devices (portrait tablets and small desktops, 481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  /* Section label size ("Qualifications", "Memberships") */
.node--type-profile .profile-details {
  font-size: 1.2rem;
  font-weight: 500;	
}

/* “Standard” list styling used on profile pages */
.node--type-profile ul.standard {
  line-height: 1.2em;
  color: rgb(53, 142, 132);
  list-style: disc outside;
  padding-left: 2em;
  display: block;
  overflow: visible !important;
  font-size: 1rem;
}
.node--type-profile .standard li {
  list-style: disc;
}

/* Name (h1) with green highlight */
.node--type-profile h1.profile-highlight-green {
  font-family: "spectral";
  font-size: 11.5vw;
  line-height: 12.8vw;
  display: inline-block;
  max-width: 70%;
  color: #000;
}
.node--type-profile .highlight-green {
  background: linear-gradient(120deg, #00d2b9 80%, transparent 100%);
    background-position-x: 0%;
    background-position-y: 0%;
    background-repeat: repeat;
    background-size: auto;
  background-repeat: no-repeat;
  background-size: 100% 75%;
  background-position: 0 50%;
  padding: 0 0.2em 0 0;
  margin: 0 0 0 0;
}

/* Minor text utility */
.node--type-profile .indent {
  padding: 0;
  font-size: 1rem;
  color: #333;
}

/* ================================
   CONTACT CARD (top three columns)
   ================================ */
.node--type-profile .contact-card.ds-3col-equal > .group-left {
  float: left;
  width: 33%;
  padding-right: 1rem;
}
.node--type-profile .contact-card.ds-3col-equal > .group-middle {
  float: left;
  width: 67%;
  padding-right: 1rem;
}
.node--type-profile .contact-card.ds-3col-equal > .group-right {
  float: left;
  width: 100%;
  padding-left:1rem;
}

/* Job title + contact details come from a TAXONOMY TERM rendered
   in view mode `profile_contact_details` */
.node--type-profile
  .taxonomy-term--view-mode-profile-contact-details
  .field--name-field-role {
  /* replaces .jobtitle */
  font-size: 1.3rem;
  font-weight: lighter;
}

.node--type-profile
  .taxonomy-term--view-mode-profile-contact-details
  .field--type-ds p {
  margin: 0 0 0.25rem;
}

/* Qualifications & Memberships (right column wrappers from your twig) */
.node--type-profile .field--name-field-qualifications .field__label,
.node--type-profile .field--name-field-memberships .field__label {
  margin-bottom: 0.25rem;
}

.node--type-profile .field--name-field-qualifications .field__item ul,
.node--type-profile .field--name-field-memberships .field__item ul {
  padding-left: 1.25rem;
}
}

/* Medium Devices (landscape tablets, small desktops, 769px to 991px) */
@media (min-width: 769px) and (max-width: 991px) {
  /* Section label size ("Qualifications", "Memberships") */
.node--type-profile .profile-details {
  font-size: 1.2rem;
  font-weight: 500;
}

/* “Standard” list styling used on profile pages */
.node--type-profile ul.standard {
  line-height: 1.2em;
  color: rgb(53, 142, 132);
  list-style: disc outside;
  padding-left: 2em;
  display: block;
  overflow: visible !important;
  font-size: 1rem;
}
.node--type-profile .standard li {
  list-style: disc;
}

/* Name (h1) with green highlight */
.node--type-profile h1.profile-highlight-green {
  font-family: "spectral";
  font-size: 7.5vw;
  line-height: 8.5vw;
  display: inline-block;
  max-width: 70%;
  color: #000;
}
.node--type-profile .highlight-green {
  background: linear-gradient(120deg, #00d2b9 80%, transparent 100%);
    background-position-x: 0%;
    background-position-y: 0%;
    background-repeat: repeat;
    background-size: auto;
  background-repeat: no-repeat;
  background-size: 100% 75%;
  background-position: 0 50%;
  padding: 0 0.2em 0 0;
  margin: 0 0 0 0;
}

/* Minor text utility */
.node--type-profile .indent {
  padding: 0;
  font-size: 1rem;
  color: #333;
}

/* ================================
   CONTACT CARD (top three columns)
   ================================ */
.node--type-profile .contact-card.ds-3col-equal > .group-left {
  float: left;
  width: 26.5%;
  padding-right: 1rem;
}
.node--type-profile .contact-card.ds-3col-equal > .group-middle {
  float: left;
  width: 73%;
  padding-right: 1rem;
}
.node--type-profile .contact-card.ds-3col-equal > .group-right {
  float: left;
  width: 100%;
  padding-left:1rem;
}

/* Job title + contact details come from a TAXONOMY TERM rendered
   in view mode `profile_contact_details` */
.node--type-profile
  .taxonomy-term--view-mode-profile-contact-details
  .field--name-field-role {
  /* replaces .jobtitle */
  font-size: 1.5rem;
  font-weight: lighter;
}

.node--type-profile
  .taxonomy-term--view-mode-profile-contact-details
  .field--type-ds p {
  margin: 0 0 0.25rem;
}

/* Qualifications & Memberships (right column wrappers from your twig) */
.node--type-profile .field--name-field-qualifications .field__label,
.node--type-profile .field--name-field-memberships .field__label {
  margin-bottom: 0.25rem;
}

.node--type-profile .field--name-field-qualifications .field__item ul,
.node--type-profile .field--name-field-memberships .field__item ul {
  padding-left: 1.25rem;
}
}

/* Large Devices (desktops, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  /* Section label size ("Qualifications", "Memberships") */
.node--type-profile .profile-details {
  font-size: 1.2rem;
  font-weight: 500;	
}

/* “Standard” list styling used on profile pages */
.node--type-profile ul.standard {
  line-height: 1.2em;
  color: rgb(53, 142, 132);
  list-style: circle outside;
  padding-left: 2em;
  display: block;
  overflow: visible !important;
  font-size: 1rem;
}
.node--type-profile .standard li {
  list-style: disc;
}

/* Name (h1) with green highlight */
.node--type-profile h1.profile-highlight-green {
  font-family: "spectral";
  font-size: 7.5vw;
  line-height: 8vw;
  display: inline-block;
  max-width: 100%;
  color: #000;
}
.node--type-profile .highlight-green {
  background: linear-gradient(120deg, #00d2b9 80%, transparent 100%);
    background-position-x: 0%;
    background-position-y: 0%;
    background-repeat: repeat;
  background-repeat: no-repeat;
  background-size: 100% 75%;
  background-position: 0 50%;
  padding: 0 0.2em 0 0;
  margin: 0 0 0 0;
}

/* Minor text utility */
.node--type-profile .indent {
  padding: 0;
  font-size: 1rem;
  color: #333;
}

/* ================================
   CONTACT CARD (top three columns)
   ================================ */
.node--type-profile .contact-card.ds-3col-equal > .group-left {
  float: left;
  width: 22.5%;
  padding-right: 1rem;
}
.node--type-profile .contact-card.ds-3col-equal > .group-middle {
  float: left;
  width: 77.5%;
  padding-right: 1rem;
}
.node--type-profile .contact-card.ds-3col-equal > .group-right {
  float: left;
  width: 100%;
  padding-left:1rem;
}

/* Job title + contact details come from a TAXONOMY TERM rendered
   in view mode `profile_contact_details` */
.node--type-profile
  .taxonomy-term--view-mode-profile-contact-details
  .field--name-field-role {
  /* replaces .jobtitle */
  font-size: 1.5rem;
  font-weight: lighter;
}

.node--type-profile
  .taxonomy-term--view-mode-profile-contact-details
  .field--type-ds p {
  margin: 0 0 0.25rem;
}

/* Qualifications & Memberships (right column wrappers from your twig) */
.node--type-profile .field--name-field-qualifications .field__label,
.node--type-profile .field--name-field-memberships .field__label {
  margin-bottom: 0.25rem;
}

.node--type-profile .field--name-field-qualifications .field__item ul,
.node--type-profile .field--name-field-memberships .field__item ul {
  padding-left: 1.25rem;
}
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) and (max-width: 1399px) {
  /* Section label size ("Qualifications", "Memberships") */
.node--type-profile .profile-details {
  font-size: 1.2rem;
  font-weight: 500;
}

/* “Standard” list styling used on profile pages */
.node--type-profile ul.standard {
  line-height: 1.2em;
  color: rgb(53, 142, 132);
  list-style: disc outside;
  padding-left: 2em;
  display: block;
  overflow: visible !important;
  font-size: 1rem;
}
.node--type-profile .standard li {
  list-style: disc;
}

/* Name (h1) with green highlight */
.node--type-profile h1.profile-highlight-green {
  font-family: "spectral";
  font-size: 3.5vw;
  line-height: 4.0vw;
  display: inline-block;
  max-width: 100%;
  color: #000;
}
.node--type-profile .highlight-green {
  background: linear-gradient(120deg, #00d2b9 80%, transparent 100%);
    background-position-x: 0%;
    background-position-y: 0%;
    background-repeat: repeat;
    background-size: auto;
  background-repeat: no-repeat;
  background-size: 100% 75%;
  background-position: 0 50%;
  padding: 0 0.2em 0 0;
  margin: 0 0 0 0;
}

/* Minor text utility */
.node--type-profile .indent {
  padding: 0;
  font-size: 1rem;
  color: #333;
}

/* ================================
   CONTACT CARD (top three columns)
   ================================ */
.node--type-profile .contact-card.ds-3col-equal > .group-left {
  float: left;
  width: 17%;
  padding-right: 1rem;
}
.node--type-profile .contact-card.ds-3col-equal > .group-middle {
  float: left;
  width: 30%;
  padding-right: 1rem;
}
.node--type-profile .contact-card.ds-3col-equal > .group-right {
  float: left;
  width: 50%;
  padding-left:1rem;
}

/* Job title + contact details come from a TAXONOMY TERM rendered
   in view mode `profile_contact_details` */
.node--type-profile
  .taxonomy-term--view-mode-profile-contact-details
  .field--name-field-role {
  /* replaces .jobtitle */
  font-size: 1rem;
  font-weight: lighter;
}

.node--type-profile
  .taxonomy-term--view-mode-profile-contact-details
  .field--type-ds p {
  margin: 0 0 0.25rem;
}

/* Qualifications & Memberships (right column wrappers from your twig) */
.node--type-profile .field--name-field-qualifications .field__label,
.node--type-profile .field--name-field-memberships .field__label {
  margin-bottom: 0.25rem;
}

.node--type-profile .field--name-field-qualifications .field__item ul,
.node--type-profile .field--name-field-memberships .field__item ul {
  padding-left: 1.25rem;
}
}