/* ================================
   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: 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: 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: 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 (your current styles kept)
   ================================ */
.node--type-profile .field-group-bootstrap_tabs-wrapper .nav.nav-pills .nav-link {
  color: #333;
  border-radius: 0;
  font-weight: 400;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Opacity steps per tab (only within profile tabs) */
.node--type-profile .field-group-bootstrap_tabs-wrapper .nav.nav-pills .nav-item:nth-child(1) .nav-link {
  background-color: rgba(0, 210, 185, 0.75);
  color: #333;
}
.node--type-profile .field-group-bootstrap_tabs-wrapper .nav.nav-pills .nav-item:nth-child(2) .nav-link {
  background-color: rgba(0, 210, 185, 0.5);
  color: #333;
}
.node--type-profile .field-group-bootstrap_tabs-wrapper .nav.nav-pills .nav-item:nth-child(3) .nav-link {
  background-color: rgba(0, 210, 185, 0.25);
  color: #00332d;
}

/* Hover / focus */
.node--type-profile .field-group-bootstrap_tabs-wrapper .nav.nav-pills .nav-link:hover,
.node--type-profile .field-group-bootstrap_tabs-wrapper .nav.nav-pills .nav-link:focus {
  background-color: #00d2b9;
  color: #fff;
  outline: 2px solid #00332d;
  outline-offset: 2px;
}

/* Active */
.node--type-profile .field-group-bootstrap_tabs-wrapper .nav.nav-pills .nav-link.active {
  background-color: #00d2b9;
  color: #fff;
}

/* Better keyboard focus */
.node--type-profile .field-group-bootstrap_tabs-wrapper .nav.nav-pills .nav-link:focus-visible {
  outline: 3px solid #004f45;
  outline-offset: 3px;
}

/* Tab panel padding */
.node--type-profile .field-group-bootstrap_tabs-wrapper .tab-content .tab-pane {
  padding-top: 0.75rem;
}

/* ================================
   EQUAL-WIDTH TABS (add below)
   ================================ */

/* Prefer grid: one equal column per tab */
.node--type-profile .field-group-bootstrap_tabs-wrapper .nav.nav-pills {
  display: grid;               /* why: guarantees equal widths */
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: 100%;
  padding-left: 0;             /* neutralize list spacing if any */
  margin-left: 0;
}

/* Fallback for browsers without grid */
@supports not (display: grid) {
  .node--type-profile .field-group-bootstrap_tabs-wrapper .nav.nav-pills {
    display: flex;
    width: 100%;
  }
  .node--type-profile .field-group-bootstrap_tabs-wrapper .nav.nav-pills .nav-item {
    flex: 1 1 0%;              /* why: force equal distribution */
  }
}

/* Make links fill the cell and center the label */
.node--type-profile .field-group-bootstrap_tabs-wrapper .nav.nav-pills .nav-link {
  display: flex;               /* why: bigger, centered hit area */
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  white-space: normal;         /* allow wrapping for long text */
  word-break: break-word;
  min-height: 2.5rem;
}

/* Optional: if legacy floats sneak in via other CSS */
.node--type-profile .field-group-bootstrap_tabs-wrapper .nav.nav-pills .nav-item {
  float: none;
  width: auto;
  margin: 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: 1rem;
}
.node--type-profile .text-formatted li {
  list-style: disc;
}

/* ——— 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.5rem; /* replaces .jobtitle */
  font-weight: lighter;
  line-height: 1.2;
  padding: 1rem 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: 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: 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: 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: 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;
}
}