/*-- -------------------------- -->
<---          My Approach        -->
<--- -------------------------- -*/

@media only screen and (min-width: 0rem) {
  #my-approach {
    width: 100%;
    padding: var(--sectionPadding);
    background-color: transparent;
    box-sizing: border-box;
  }
  #my-approach .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: flex;
    flex-direction: column;
  }
  #my-approach .cs-card-group {
    width: 100%;
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--secondaryLight);
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #fff;
  }
  #my-approach .cs-item {
    width: 100%;
    padding: 2rem;
    box-sizing: border-box;
    border-top: 1px solid var(--secondaryLight);
  }
  #my-approach .cs-item:first-child {
    border-top: none;
  }
  #my-approach .cs-item-title {
    width: 100%;
    font-family: var(--headingFont);
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1.3em;
    color: var(--navy);
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    cursor: pointer;
    position: relative;
  }
  #my-approach .cs-item-title::-webkit-details-marker {
    display: none;
  }
  #my-approach .cs-item-chevron {
    width: 1rem;
    height: 1rem;
    flex: none;
    margin-right: 1rem;
    color: var(--navy);
    transition: transform 0.3s;
  }
  #my-approach .cs-item[open] .cs-item-chevron {
    transform: rotate(180deg);
  }
  #my-approach .cs-item-text {
    font-family: var(--bodyFont);
    font-size: 1rem;
    line-height: 1.6em;
    color: var(--bodyTextColor);
    margin: 0;
  }
}

/* Mobile/tablet only - collapse each approach into an accordion, same
   pattern as the About section's native details/summary accordion. */
@media only screen and (max-width: 63.9375rem) {
  #my-approach .cs-title {
    font-size: 1.75rem;
  }
  #my-approach .cs-item {
    padding: 1.125rem 1.25rem;
  }
  #my-approach .cs-item-title {
    margin: 0;
    align-items: flex-start;
    justify-content: flex-start;
  }
  #my-approach .cs-accordion-body {
    padding-top: 0.75rem;
  }
}

/* Desktop - 64rem */
@media only screen and (min-width: 64rem) {
  /* Live version still uses plain (non-collapsible) list items -
     keep those laid out as three columns side by side. */
  #my-approach .cs-card-group:has(> li.cs-item) {
    flex-direction: row;
  }
  #my-approach .cs-card-group:has(> li.cs-item) > .cs-item {
    flex: 1 1 0;
    border-top: none;
  }
  #my-approach .cs-card-group:has(> li.cs-item) > .cs-item:not(:first-child) {
    border-left: 1px solid var(--secondaryLight);
  }
  #my-approach .cs-card-group:has(> li.cs-item) .cs-item-title {
    cursor: default;
  }
  #my-approach .cs-card-group:has(> li.cs-item) .cs-item-title:before,
  #my-approach .cs-card-group:has(> li.cs-item) .cs-item-title:after {
    display: none;
  }

  /* Draft versions use native details/summary - keep them a
     left-aligned, single-column accordion on desktop too. */
  #my-approach .cs-card-group:has(> details.cs-item) {
    max-width: 40rem;
  }
}
