/* Section intro blocks on the Trading page: an eyebrow plus explanatory copy that separates
   the market / watchlist / account / orders zones. Rendered mobile-only by TradingSectionIntro.razor.

   Values come from the Claude Design "Main Screen" spec (uploads/section-intro-spec.md).

   The block is deliberately unstyled beyond type — no card, border, background, radius or shadow.
   The moment the text gets a container it reads as one more block and stops working as a separator. */

.tsi {
    --tsi-eyebrow-size: 12px;
    --tsi-eyebrow-weight: 600;
    --tsi-eyebrow-tracking: 0.08em;
    --tsi-eyebrow-color: #6E7480;

    --tsi-body-size: 15px;
    --tsi-body-weight: 400;
    --tsi-body-leading: 1.4;
    --tsi-body-color: #8A8F98;

    --tsi-gap-eyebrow: 10px;
    --tsi-gap-para: 12px;
    --tsi-space-before: 28px;
    --tsi-space-after: 20px;
    --tsi-inline-pad: 20px;

    margin: var(--tsi-space-before) 0 var(--tsi-space-after);
    padding: 0 var(--tsi-inline-pad);
}

/* Per-instance spacing is not done with modifier classes — TradingSectionIntro's SpaceBefore /
   SpaceAfter parameters write the two tokens above into an inline style at the call site. */

.tsi__eyebrow {
    margin: 0 0 var(--tsi-gap-eyebrow);
    font-family: inherit;
    font-size: var(--tsi-eyebrow-size);
    font-weight: var(--tsi-eyebrow-weight);
    line-height: 1.2;
    letter-spacing: var(--tsi-eyebrow-tracking);
    /* Uppercase in CSS, not in the source string — otherwise screen readers spell it out
       letter by letter and localization breaks. */
    text-transform: uppercase;
    color: var(--tsi-eyebrow-color);
}

/* Eyebrow rendered on its own (Part="Eyebrow") sits directly on top of the block it labels. */
.tsi__eyebrow:last-child {
    margin-bottom: 0;
}

.tsi__body {
    display: flex;
    flex-direction: column;
    gap: var(--tsi-gap-para);
}

.tsi__paragraph {
    margin: 0;
    max-width: 65ch;
    font-family: inherit;
    font-size: var(--tsi-body-size);
    font-weight: var(--tsi-body-weight);
    line-height: var(--tsi-body-leading);
    color: var(--tsi-body-color);
    text-align: left;
    text-wrap: pretty;
}
