/* audience-colour.css -- the colour of an audience page, as named components. Tokens only (assets/theme.css): --aud, --aud-from, --aud-to
 * and --aud-ink are set per page by the audience tokens of theme.css, the brand colours come from the logo and the hero. Every block below
 * opens with an `@component` line: the catalogue (design/component-catalogue.md) is generated from those lines and from the partials.
 * No literal colour and no literal pixel length in this sheet (test/token-guard.js). */

/* @component tone-band: a full-width section band, cool (audience tint) or warm (amber tint), fading to the surface. */
.tone-cool,
.tone-warm {
  padding: clamp(var(--space-8), 8vw, var(--space-10)) clamp(var(--space-5), 4vw, var(--space-8));
  border-bottom: var(--line-1) solid var(--border);
}
.tone-cool { background: linear-gradient(180deg, color-mix(in srgb, var(--aud) 12%, var(--surface)) 0%, var(--surface) 80%); }
.tone-warm { background: linear-gradient(180deg, color-mix(in srgb, var(--brand-amber) 18%, var(--surface)) 0%, var(--surface) 80%); }
.chart-band { background: linear-gradient(180deg, color-mix(in srgb, var(--aud) 16%, var(--surface)) 0%, var(--surface) 85%); }

/* @component callout: a quotation or remark with a thick audience edge and a tint of the audience colour. */
.compo-callout {
  border-inline-start: var(--line-4) solid var(--aud);
  background: color-mix(in srgb, var(--aud) 10%, var(--surface));
}

/* @component figure-card: a key figure with a coloured top edge, the number in the audience ink; the primary card is the navy and blue brand panel. */
.company-road-risk-card { border-top: var(--line-4) solid var(--aud); }
.company-road-risk-card:not(.company-road-risk-card-primary) {
  background: linear-gradient(180deg, color-mix(in srgb, var(--aud) 9%, var(--surface-raised)) 0%, var(--surface-raised) 65%);
}
.company-road-risk-card-primary { border-top-color: var(--brand-amber); }
.company-road-risk-number { color: var(--aud-ink); }
.company-road-risk-card-primary .company-road-risk-number { color: var(--brand-amber); }

/* @component figure-note: a remark under the key figures, in the audience tint (accent variant) or the amber tint. */
.company-road-risk-note { background: color-mix(in srgb, var(--brand-amber) 16%, var(--surface)); border-color: color-mix(in srgb, var(--brand-amber) 55%, var(--border)); }
.company-road-risk-note .company-road-risk-icon { color: var(--brand-amber-ink); }
.company-road-risk-note-accent { background: color-mix(in srgb, var(--aud) 12%, var(--surface)); border-color: color-mix(in srgb, var(--aud) 40%, var(--border)); }
.company-road-risk-note-accent .company-road-risk-icon { color: var(--aud-ink); }

/* @component chart-card: the card around a chart, with a coloured top edge. */
.chart-card { background: var(--surface-raised); border-top: var(--line-4) solid var(--aud); }

/* @component calculator-panel: the panel of an interactive estimate, tinted with the audience colour. */
.calc-panel { background: color-mix(in srgb, var(--aud) 8%, var(--surface)); border-color: color-mix(in srgb, var(--aud) 30%, var(--border)); }

/* @component sector-tile: a sector of activity with its audience edge and an icon in a gradient square. */
.sector-tile { border-inline-start: var(--line-4) solid var(--aud); background: linear-gradient(135deg, color-mix(in srgb, var(--aud) 8%, var(--surface)), var(--surface) 70%); }
.sector-ico { border-radius: var(--radius-2); background: linear-gradient(145deg, var(--aud-from), var(--aud-to)); color: var(--hero-text); box-shadow: var(--shadow-2); }

/* @component offer-card: a service offer or a provider card with a coloured top edge and a number in the audience ink. */
.offer-card { border-top: var(--line-3) solid var(--aud); }
.offer-num { color: var(--aud-ink); }
.partner-service-card { border-top: var(--line-3) solid var(--aud); background: linear-gradient(180deg, color-mix(in srgb, var(--aud) 7%, var(--surface)), var(--surface) 60%); }

/* @component finance-card: a funding path, tinted in the audience colour (path B) or the success colour (path A). */
.finance-card.path-b { background: color-mix(in srgb, var(--aud) 8%, var(--surface)); }
.finance-card.path-a { background: color-mix(in srgb, var(--success) 8%, var(--surface)); }

/* @component section-list-link: the link of the section in view in the sticky list of sections takes the audience colour. */
.route-nav-list a[aria-current="location"] { color: var(--aud-ink); text-decoration-color: var(--brand-amber); }
