/**
 * Social proof: the testimonial band and the Instagram grid.
 *
 * Both sections lean on the shared primitives — `.dk-dark--quote`,
 * `.dk-iconbtn--quote`, `.dk-stars`, `.dk-diamond`, `.dk-rating`, `.dk-photo`,
 * `.dk-grid--gallery`, `.dk-btn--solid` — so what is left here is only what is
 * particular to these two blocks: their own rhythm, the quote typography and
 * the tile decorations.
 *
 * Values are transcribed from the design source (testimonial 466-504,
 * Instagram 533-554) including the stylesheet overrides at the top of that
 * file, which repaint the rating pills and round the Instagram links.
 */

/* ========================================================= testimonial band */

/**
 * The band's photo marker sits two pixels lower and a shade fainter than the
 * shared `.dk-placeholder`; everything else about it is inherited.
 */
.dk-quote__ph {
  bottom: 14px;
  color: rgba(255, 255, 255, 0.4);
}

/** Narrower than a normal section: a quote reads badly at full container width. */
.dk-quote__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 84px 24px 88px;
  text-align: center;
}

/** The 110px outline hexagon carrying the quote glyph. */
.dk-quote__mark {
  --dk-hexicon-glyph: 26px;
  --dk-hexicon-color: var(--dk-on-dark);
}

/**
 * The figure is a transparent wrapper: it exists to tie the attribution to the
 * quote for assistive technology, so it repeats the column layout of its parent
 * and paints nothing of its own.
 */
.dk-quote__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
}

/**
 * Prev arrow, quote, next arrow. The responsive sheet reorders this row on
 * narrow screens — the quote is `.dk-quote__quote`, the arrows are the two
 * `.dk-iconbtn--quote` siblings.
 */
.dk-quote-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-top: 34px;
}

.dk-quote__quote {
  flex: 1 1 auto;
  max-width: 760px;
  margin: 0;
}

.dk-quote__text {
  margin: 0;
  font: 400 italic 21px/1.75 var(--dk-font-body);
  color: var(--dk-on-dark);
  text-wrap: pretty;
}

.dk-quote__stars {
  margin-top: 30px;
}

/** Shorter and white: the section-heading `.dk-rule` is 64px and blue. */
.dk-quote__rule {
  width: 44px;
  height: 2px;
  margin: 26px 0 16px;
  background: rgba(255, 255, 255, 0.75);
}

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

.dk-quote__author {
  font: 600 14px/1 var(--dk-font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dk-on-dark);
}

.dk-quote__source {
  margin-top: 9px;
  font: 400 14px/1.4 var(--dk-font-body);
  color: rgba(255, 255, 255, 0.65);
}

.dk-quote__dots {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.dk-quote__ratings {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

/**
 * The design's own stylesheet repaints the first span of every rating pill
 * (`[data-rating] span:first-child { color: #F0BC63 !important }`), which is
 * the value — so the pills read amber-on-navy, not white-on-navy.
 */
.dk-quote__ratings .dk-rating__value {
  color: var(--dk-amber-star);
}

/* =========================================================== instagram grid */

/** This section's standfirst is 60px narrower than the shared `.dk-head__lede`. */
.dk-instagram__lede {
  max-width: 700px;
}

/**
 * A square post placeholder on the `.dk-photo` ground. The radius comes from
 * the design's rounded-theme rule, which reaches every Instagram link inside a
 * section.
 */
.dk-instagram__tile {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--dk-radius-sm);
}

/** The shorthand is deliberate: hovering drops the glow for a flat blue field. */
.dk-instagram__tile:hover {
  background: var(--dk-blue);
  transform: scale(1.03);
}

.dk-instagram__glyph {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
}

.dk-instagram__caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font: 400 11px/1 var(--dk-font-mono);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}

.dk-instagram__cta-row {
  --dk-cta-gap: 48px;
}

/** One pixel wider than the standard button gap, and a larger glyph. */
.dk-instagram__cta {
  gap: 12px;
}

.dk-instagram__cta i {
  font-size: 16px;
}
