/* ==========================================================================
   Section title
   Originally the Figma "Filter / Date" heading chip (3462:17883): 20px Medium
   on an app-bg-pink chip, 6px/10px padding. THE CHIP IS RETIRED — Peter,
   14 Jul 2026: "we never use pink background… these aren't the right
   paddings — make it global for that heading." Now a PLAIN heading: no
   background, no chip padding, flush with the content edge. Size/weight and
   the caret behaviour unchanged. Used as the heading of every content
   section ("Summary", "VAT Owed", "Returns status", ...).
   ========================================================================== */

.section-title {
  display: inline-flex;
  align-items: center;
  align-self: flex-start; /* hug content inside flex columns */
  width: fit-content;
  gap: var(--space-2);
  padding: 0;
  background: transparent;
  font-size: var(--text-section);
  font-weight: var(--weight-medium);
  line-height: 1;
  color: var(--color-text);
}

/* Collapsible section heading — a real button with a 12px caret
   (Figma "Filter / Date" + Caret wrapper, node 3462:18074) */
button.section-title {
  border: none;
  cursor: pointer;
}

.section-title > svg {
  width: 12px;
  height: 12px;
  flex: none;
  transition: transform 120ms ease; /* provisional */
}

.section-title[aria-expanded="false"] > svg {
  transform: rotate(-90deg);
}

/* Small variant — group labels on instruction screens (e.g. "Download return") */
.section-title--sm {
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
}

/* Muted qualifier in the title, e.g. "Completed · Filed & paid" */
.section-title > small {
  font-size: inherit;
  color: var(--color-text-muted);
  font-weight: var(--weight-regular);
}
