/* =====================================================
   WALDMAN DESIGN SYSTEM
   Scoped to body.ds so it can be rolled out page by page.
   Palette is taken from the Waldman logo: oxblood, brass, steel.
   ===================================================== */
:root {
  --ds-graphite: #1a1d21;
  --ds-ink-2: #4a5058;
  --ds-oxblood: #6e1428;
  --ds-maroon: #841c36;
  --ds-maroon-bright: #b02648;
  --ds-brass: #c9a06a;
  --ds-brass-deep: #a9804a;
  --ds-steel: #e9ecef;
  --ds-rule: #cdd2d8;
  --ds-white: #ffffff;

  --ds-font-display: 'Barlow Semi Condensed', 'Barlow', 'Nunito Sans', sans-serif;
  --ds-font-body: 'Barlow', 'Nunito Sans', sans-serif;

  --ds-max: 1200px;
  --ds-gutter: clamp(16px, 4vw, 40px);
  --ds-section-y: clamp(52px, 8vw, 112px);
  --ds-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
body.ds {
  font-family: var(--ds-font-body);
  color: var(--ds-graphite);
}

.ds .ds-section {
  padding: var(--ds-section-y) 0;
}

.ds .ds-wrap {
  max-width: var(--ds-max);
  margin: 0 auto;
  padding: 0 var(--ds-gutter);
}

.ds .ds-h2 {
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ds-graphite);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

.ds .ds-h3 {
  font-family: var(--ds-font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--ds-graphite);
  margin: 0 0 0.3em;
}

.ds .ds-section p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ds-ink-2);
  max-width: 62ch;
  margin: 0;
}

.ds .ds-section a:focus-visible {
  outline: 3px solid var(--ds-maroon-bright);
  outline-offset: 3px;
}

/* ---------- Hero type ---------- */
.ds .hero-content h1 {
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 7vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

/* ---------- Key facts strip ---------- */
.ds .hero-stat b {
  font-family: var(--ds-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ds-brass);
  line-height: 1.1;
}

.ds .hero-stat span {
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Why choose: photo + breaker panel ---------- */
.ds .ds-why {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(132, 28, 54, 0.07), transparent 60%),
    linear-gradient(180deg, var(--ds-white) 0%, var(--ds-steel) 100%);
  overflow: hidden;
}

.ds .ds-why-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

/* Photo with an offset brass frame and a logo plate */
.ds .ds-why-media {
  position: relative;
  margin: 0 18px 28px 0;
}

.ds .ds-why-media::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--ds-brass);
  border-radius: 8px;
}

.ds .ds-why-media > img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 30% 40%;
  border-radius: 8px;
  box-shadow: 0 30px 60px -20px rgba(26, 29, 33, 0.45);
}

.ds .ds-why-plate {
  position: absolute;
  left: -14px;
  bottom: -26px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 290px;
  padding: 12px 18px 12px 12px;
  background: var(--ds-graphite);
  color: var(--ds-white);
  border-left: 4px solid var(--ds-maroon-bright);
  border-radius: 6px;
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, 0.5);
}

.ds .ds-why-plate img {
  width: 92px;
  height: auto;
  flex: none;
}

.ds .ds-why-plate span {
  font-family: var(--ds-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
}

.ds .ds-why .ds-h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  margin-bottom: 0.7em;
}

/* The four reasons as breakers in a panel */
.ds .ds-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
  padding: 14px;
  background: linear-gradient(180deg, #2a2e34, var(--ds-graphite));
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 60px -24px rgba(26, 29, 33, 0.55);
}

.ds .ds-breaker {
  position: relative;
  padding: 22px 22px 24px;
  background: linear-gradient(180deg, #31363d, #262a30);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.ds .ds-breaker:hover {
  border-color: rgba(201, 160, 106, 0.55);
}

.ds .ds-breaker-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border: 1px solid rgba(201, 160, 106, 0.5);
  border-radius: 50%;
  color: var(--ds-brass);
  font-size: 1.05rem;
}

/* Small toggle in the "on" position */
.ds .ds-breaker-switch {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 34px;
  height: 18px;
  border-radius: 9px;
  background: var(--ds-maroon-bright);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.ds .ds-breaker-switch span {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f2f2f2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.ds .ds-breaker .ds-h3 {
  color: var(--ds-white);
}

.ds .ds-breaker p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.98rem;
}

/* ---------- Risk + chart ---------- */
.ds .ds-risk {
  background: var(--ds-graphite);
  color: var(--ds-white);
}

.ds .ds-risk-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.ds .ds-risk .ds-h2 {
  color: var(--ds-white);
}

.ds .ds-risk p {
  color: rgba(255, 255, 255, 0.78);
}

.ds .ds-risk-facts {
  margin: 28px 0 0;
  padding: 0;
}

.ds .ds-risk-facts li {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.ds .ds-risk-facts strong {
  font-family: var(--ds-font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ds-brass);
  margin-right: 6px;
}

.ds .ds-chart {
  margin: 0;
  padding: clamp(20px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.ds .ds-chart-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ds-white);
  margin-bottom: 22px;
}

.ds .ds-chart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'label value'
    'track track';
  gap: 8px 12px;
  margin-bottom: 18px;
}

.ds .ds-chart-label {
  grid-area: label;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
}

.ds .ds-chart-value {
  grid-area: value;
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}

.ds .ds-chart-track {
  grid-area: track;
  display: block;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.ds .ds-chart-bar {
  display: block;
  height: 100%;
  width: var(--fill, 0%);
  background: #5d636c;
  transition: width 0.9s var(--ds-ease);
}

.ds .ds-chart.is-armed:not(.is-visible) .ds-chart-bar {
  width: 0;
}

.ds .ds-chart-row.is-lead .ds-chart-label {
  color: var(--ds-white);
  font-weight: 600;
}

.ds .ds-chart-row.is-lead .ds-chart-value {
  color: var(--ds-brass);
}

.ds .ds-chart-row.is-lead .ds-chart-bar {
  background: var(--ds-maroon-bright);
}

.ds .ds-chart-source {
  margin-top: 22px !important;
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

.ds .ds-chart-source a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Services directory ---------- */
.ds .ds-services {
  background: var(--ds-steel);
}

.ds .ds-services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 5vw, 64px);
  align-items: end;
}

.ds .ds-services-head .ds-h2 {
  margin: 0;
}

.ds .ds-services-body {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 48px);
}

.ds .ds-service-list {
  border-top: 2px solid var(--ds-graphite);
}

.ds .ds-service-thumb {
  display: none;
}

/* Photo that follows the hovered/focused service */
.ds .ds-service-preview {
  position: sticky;
  top: 150px;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ds-graphite);
  box-shadow: 0 30px 60px -24px rgba(26, 29, 33, 0.5);
}

.ds .ds-service-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(201, 160, 106, 0.6);
  border-radius: 10px;
  pointer-events: none;
}

.ds .ds-service-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.35s ease, transform 0.6s var(--ds-ease);
}

.ds .ds-service-shot.is-active {
  opacity: 1;
  transform: scale(1);
}

.ds .ds-service-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: clamp(14px, 2.2vw, 26px) 4px;
  border-bottom: 1px solid var(--ds-rule);
  color: var(--ds-graphite);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.ds .ds-service-row > .fas:first-of-type {
  color: var(--ds-oxblood);
  font-size: 1.3rem;
  text-align: center;
}

.ds .ds-service-name {
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 4.4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.ds .ds-service-go {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ds-graphite);
  border-radius: 50%;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.ds .ds-service-row:hover,
.ds .ds-service-row:focus-visible {
  color: var(--ds-oxblood);
  background: rgba(255, 255, 255, 0.55);
}

.ds .ds-service-row:hover .ds-service-go,
.ds .ds-service-row:focus-visible .ds-service-go {
  background: var(--ds-oxblood);
  border-color: var(--ds-oxblood);
  color: var(--ds-white);
}

.ds .ds-services-foot {
  margin-top: clamp(32px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 40px);
  background: var(--ds-graphite);
  border-left: 4px solid var(--ds-maroon-bright);
  border-radius: 8px;
}

.ds .ds-services-foot p {
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Reviews ---------- */
.ds .ds-reviews {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(176, 38, 72, 0.35), transparent 60%),
    linear-gradient(160deg, #4a0e1c 0%, var(--ds-oxblood) 45%, #3a0a15 100%);
}

/* Oversized quote mark behind the cards */
.ds .ds-reviews::before {
  content: '\201C';
  position: absolute;
  top: -0.18em;
  right: 4%;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(16rem, 34vw, 30rem);
  line-height: 1;
  color: rgba(201, 160, 106, 0.12);
  pointer-events: none;
}

.ds .ds-reviews .ds-wrap {
  position: relative;
}

.ds .ds-reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.ds .ds-reviews .ds-h2 {
  color: var(--ds-white);
  max-width: 18ch;
  margin: 0;
}

.ds .ds-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ds .ds-review {
  margin: 0;
  padding: clamp(24px, 3vw, 36px);
  background: var(--ds-white);
  border-radius: 10px;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.ds .ds-stars {
  color: var(--ds-brass-deep);
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.ds .ds-review blockquote {
  margin: 16px 0 22px;
  flex: 1;
}

.ds .ds-review blockquote p {
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ds-graphite);
  max-width: none;
}

.ds .ds-read-more {
  color: var(--ds-oxblood);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ds .ds-review figcaption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--ds-rule);
}

.ds .ds-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ds-maroon);
  color: var(--ds-white);
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.ds .ds-review-name {
  font-weight: 700;
}

.ds .ds-review-date {
  font-size: 0.9rem;
  color: var(--ds-ink-2);
}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
  .ds .ds-why-grid,
  .ds .ds-risk-grid,
  .ds .ds-services-head {
    grid-template-columns: 1fr;
  }

  .ds .ds-why-media {
    max-width: 520px;
  }

  .ds .ds-services-body {
    grid-template-columns: 1fr;
  }

  .ds .ds-service-preview {
    display: none;
  }

  .ds .ds-service-thumb {
    display: block;
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
  }

  .ds .ds-service-row {
    grid-template-columns: 72px 28px 1fr auto;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .ds .ds-section {
    padding: 44px 0;
  }

  .ds .ds-section p {
    font-size: 1rem;
  }

  .ds .ds-h3 {
    font-size: 1.2rem;
  }

  .ds .ds-why-media {
    margin: 0 12px 30px 0;
  }

  .ds .ds-why-media::before {
    inset: 12px -12px -12px 12px;
  }

  .ds .ds-why-media > img {
    aspect-ratio: 16 / 11;
    object-position: 30% 30%;
  }

  .ds .ds-why-plate {
    left: 10px;
    bottom: -22px;
    padding: 10px 14px 10px 10px;
  }

  .ds .ds-why-plate img {
    width: 74px;
  }

  .ds .ds-why-plate span {
    font-size: 0.95rem;
  }

  .ds .ds-panel {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .ds .ds-breaker {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 14px;
    padding: 16px 52px 16px 14px;
  }

  .ds .ds-breaker-icon {
    grid-row: span 2;
    width: 40px;
    height: 40px;
    margin: 0;
    font-size: 0.95rem;
  }

  .ds .ds-breaker-switch {
    top: 16px;
    right: 14px;
    width: 28px;
    height: 15px;
  }

  .ds .ds-breaker-switch span {
    width: 11px;
    height: 11px;
  }

  .ds .ds-breaker p {
    font-size: 0.94rem;
  }

  .ds .ds-service-row {
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    padding: 10px 2px;
  }

  .ds .ds-service-thumb {
    width: 64px;
    height: 48px;
  }

  .ds .ds-service-row > .fas:first-of-type {
    display: none;
  }

  .ds .ds-service-name {
    font-size: 1.3rem;
  }

  .ds .ds-reviews-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ds .ds-service-go {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }

  .ds .ds-services-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .ds .ds-services-foot .hero-btn,
  .ds .ds-reviews .hero-btn {
    width: auto;
  }

  .ds .ds-review-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ds .ds-reviews::before {
    font-size: 14rem;
    right: -2%;
  }

  .ds .ds-review blockquote p {
    font-size: 1.08rem;
  }

  .ds .hero-stat b {
    font-size: 1.25rem;
  }

  .ds .hero-stat span {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ds .ds-chart-bar,
  .ds .ds-breaker,
  .ds .ds-service-shot,
  .ds .ds-service-row,
  .ds .ds-service-go {
    transition: none;
  }
}

/* Barlow runs wider than Nunito: keep both hero buttons on one row on phones */
@media (max-width: 835px) {
  .ds .hero-left .hero-buttons {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
  }

  .ds .hero-left .hero-buttons .hero-btn {
    padding: 11px 12px;
    font-size: 0.8rem;
    letter-spacing: 0.4px;
  }

  .ds .hero-left .hero-buttons .hero-btn svg {
    width: 16px;
    height: 16px;
    margin-right: 6px !important;
  }
}

/* Very small phones: let the buttons wrap instead of clipping */
@media (max-width: 359px) {
  .ds .hero-left .hero-buttons {
    flex-wrap: wrap;
  }
}

/* Buttons inside flex bands keep their natural width */
.ds .ds-services-foot .hero-btn,
.ds .ds-reviews-head .hero-btn {
  flex: none;
  width: auto;
}

/* =====================================================
   SHARED HERO FACTS LINE (every inner-page hero)
   One style everywhere: number + label, thin dividers, live status
   ===================================================== */
.ds .ds-hero-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ds-white);
}

.ds .ds-hero-facts li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  padding: 0 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--ds-font-body);
  font-size: 0.98rem;
  line-height: 1.2;
  white-space: nowrap;
}

.ds .ds-hero-facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.ds .ds-hero-facts b,
.ds .ds-hero-facts b a {
  font-family: var(--ds-font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ds-brass);
  text-decoration: none;
}

.ds .ds-hero-facts span {
  color: rgba(255, 255, 255, 0.82);
}

/* Live open/closed status: dot + text, same as the homepage chip */
.ds .ds-hero-facts-status {
  align-items: center !important;
}

.ds .ds-hero-facts-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.ds .ds-hero-facts-status:has(.open-status.is-open) .ds-hero-facts-dot {
  background: #2ecc71;
}

.ds .ds-hero-facts-status:has(.open-status.is-closed) .ds-hero-facts-dot {
  background: #ff4444;
}

.ds .ds-hero-facts .open-status {
  display: inline;
  position: static;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  text-shadow: none;
  font-weight: 600;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.82);
}

.ds .ds-hero-facts .open-status .status {
  margin-right: 6px;
  padding: 0;
  background: none;
  text-shadow: none;
  font-weight: 700;
}

.ds .ds-hero-facts .open-status .status.open {
  color: #2ecc71;
}

.ds .ds-hero-facts .open-status .status.closed {
  color: #ff6b6b;
}

/* Light hero variant */
.ds .ds-hero-facts--light {
  color: var(--ds-graphite);
}

.ds .ds-hero-facts--light li {
  border-left-color: var(--ds-rule);
}

.ds .ds-hero-facts--light b {
  color: var(--ds-oxblood);
}

.ds .ds-hero-facts--light span,
.ds .ds-hero-facts--light .open-status {
  color: var(--ds-ink-2);
}

.ds .ds-hero-facts--light .open-status .status.open {
  color: #1e8a4c;
}

.ds .ds-hero-facts--light .open-status .status.closed {
  color: #b3261e;
}

/* Phones: two facts side by side, status on its own line */
@media (max-width: 768px) {
  .ds .ds-hero-facts {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: start;
    gap: 10px 0;
    margin-top: 18px;
  }

  .ds .ds-hero-facts li {
    padding: 0 12px;
    font-size: 0.9rem;
    white-space: normal;
    flex-wrap: wrap;
    column-gap: 5px;
    row-gap: 0;
  }

  .ds .ds-hero-facts b {
    font-size: 1.15rem;
  }

  .ds .ds-hero-facts-status {
    grid-column: 1 / -1;
    padding-left: 0 !important;
    border-left: 0 !important;
  }
}

/* =====================================================
   SHARED MOBILE ACCORDION ([data-ds-accordion])
   Desktop: plain list, button is inert. Phones: tap a title to open.
   ===================================================== */
.ds [data-ds-accordion] .ds-acc-btn {
  all: unset;
  display: block;
  width: 100%;
  cursor: default;
}

.ds [data-ds-accordion] .ds-acc-chev {
  display: none;
}

.ds [data-ds-accordion] .ds-acc-label > i:first-child {
  margin-right: 10px;
}

@media (max-width: 768px) {
  .ds [data-ds-accordion] .ds-acc-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .ds [data-ds-accordion] .ds-acc-label {
    flex: 1;
  }

  .ds [data-ds-accordion] .ds-acc-btn strong {
    margin: 0 !important;
  }

  .ds [data-ds-accordion] .ds-acc-btn:focus-visible {
    outline: 2px solid var(--ds-maroon-bright);
    outline-offset: 3px;
  }

  .ds [data-ds-accordion] .ds-acc-chev {
    display: inline-block;
    flex: none;
    margin: 0 !important;
    width: auto !important;
    font-size: 0.8rem !important;
    opacity: 0.7;
    color: inherit !important;
    transition: transform 0.2s ease;
  }

  .ds [data-ds-accordion] .is-open .ds-acc-chev {
    transform: rotate(180deg);
  }

  .ds [data-ds-accordion] .ds-acc-panel {
    display: none !important;
  }

  .ds [data-ds-accordion] .is-open .ds-acc-panel {
    display: block !important;
    padding-top: 6px;
  }

  .ds [data-ds-accordion] dt,
  .ds [data-ds-accordion] dd {
    margin: 0;
  }

  /* Keep row icons level with the title when a row is open */
  .ds [data-ds-accordion] [data-acc-item],
  .ds [data-ds-accordion] > li {
    align-items: start !important;
  }

  .ds [data-ds-accordion] > li > i:first-child {
    margin-top: 9px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ds [data-ds-accordion] .ds-acc-chev {
    transition: none;
  }
}
