/**
 * Story group: "why choose us", the makes we service, and the mission + FAQ
 * band.
 *
 * Only what the shared layers do not already provide is declared here. The
 * heading blocks, grids, split panels, rules and buttons all come from
 * `layout.css`, `base.css` and `components.css`; these rules carry the values
 * that are specific to these three sections — the pillar's shorter rule, the
 * brand list, and the accordion.
 */

/* ====================================================================== why */

.dk-why__pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dk-why__title {
  margin: 24px 0 0;
  font: 600 17px/1.35 var(--dk-font-display);
  letter-spacing: var(--dk-track-label);
  text-transform: uppercase;
  color: var(--dk-ink);
}

/** The pillar rule is shorter and sits tighter than the section rule. */
.dk-why__rule {
  width: 56px;
  margin: 18px 0 20px;
}

.dk-why__text {
  margin: 0;
  max-width: 360px;
  font: 400 16px/1.8 var(--dk-font-body);
  color: var(--dk-muted);
  text-wrap: pretty;
}

/** This section sets its closing action four pixels further down than most. */
.dk-why__cta {
  --dk-cta-gap: 60px;
}

/* =================================================================== brands */

.dk-brands__panel {
  background: var(--dk-beige);
}

.dk-brands__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/**
 * The heading block is a flex item of the centred column, so it would otherwise
 * shrink to its content and pull the standfirst's wrapping in with it.
 */
.dk-brands__head {
  width: 100%;
}

/** Wider and tighter than the shared standfirst, and it takes the full column. */
.dk-brands__lede {
  margin: 0;
  font: 400 17px/1.75 var(--dk-font-body);
  color: var(--dk-muted);
  text-wrap: pretty;
}

/**
 * The marque list. Content, not navigation — the markers are removed but the
 * list semantics stay, so the count is still announced.
 */
.dk-brands__list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px 24px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.dk-brands__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 400 16px/1.4 var(--dk-font-body);
  color: var(--dk-muted);
}

.dk-brands__check {
  font-size: 13px;
  color: var(--dk-blue);
}

.dk-brands__cta {
  margin-top: 44px;
}

/* ========================================================== mission and faq */

.dk-missionfaq__col {
  min-width: 0;
}

.dk-mission__lede {
  margin: 0 0 22px;
  font: 400 17px/1.85 var(--dk-font-body);
  color: var(--dk-muted);
  text-wrap: pretty;
}

.dk-mission__text {
  margin: 0 0 34px;
  font: 400 16px/1.8 var(--dk-font-body);
  color: var(--dk-muted);
  text-wrap: pretty;
}

/* ------------------------------------------------------------------- faq */

.dk-faq__panel {
  border: 1px solid var(--dk-border);
  border-radius: var(--dk-radius-lg);
  overflow: hidden;
  box-shadow: var(--dk-shadow-panel);
}

.dk-faq__row {
  border-bottom: 1px solid var(--dk-border);
}

.dk-faq__row--open {
  background: var(--dk-warm-100);
}

/**
 * The heading exists for the document outline only; the button inside it is
 * what the visitor sees, so the heading gives up its own margin and type.
 */
.dk-faq__heading {
  margin: 0;
  font: inherit;
}

.dk-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.dk-faq__q:hover {
  background: var(--dk-warm-100);
}

/**
 * The plus that becomes a cross. Rotating the same glyph rather than swapping
 * two icons is what lets the change be a transition instead of a rebuild.
 */
.dk-faq__mark {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--dk-border-stronger);
  border-radius: var(--dk-radius-pill);
  color: var(--dk-blue);
  font-size: 12px;
  transition:
    transform 0.28s ease,
    background-color var(--dk-speed-fast) ease,
    border-color var(--dk-speed-fast) ease,
    color var(--dk-speed-fast) ease;
}

.dk-faq__row--open .dk-faq__mark {
  transform: rotate(45deg);
  background: var(--dk-blue);
  border-color: var(--dk-blue);
  color: var(--dk-on-dark);
}

.dk-faq__label {
  flex: 1 1 auto;
  font: 500 18px/1.45 var(--dk-font-body);
  color: var(--dk-text);
}

/** Indented past the mark so the answer hangs under the question, not the icon. */
.dk-faq__answer {
  margin: 0;
  padding: 0 24px 26px 70px;
  font: 400 16px/1.8 var(--dk-font-body);
  color: var(--dk-muted);
  text-wrap: pretty;
}
