/* Lillirode design system: the decorative family (silver light as the base; orbits, satellite dots, spheres and dividers from the second family).
   Colours, sizes and glows come only from the tokens (tokens.css, tokens-dark.css, tokens-decor.css). No colour, size or font literal below: every value is var(--...),
   a calc() over tokens, 0, a percentage, an angle or a CSS keyword; the one literal length is the 720px container breakpoint.
   Put class "ds-deco" on the element that holds the decoration (inside the element that carries data-theme). Load this file before components.css. */

/* ---- hero light: a layer under the content (z-index 0), masked away from the text column */
.ds-deco-light { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: .85;
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, var(--decor-mask-on) 55%), linear-gradient(180deg, transparent 0%, var(--decor-mask-on) 14%, var(--decor-mask-on) 78%, transparent 100%);
  mask-image: linear-gradient(100deg, transparent 0%, var(--decor-mask-on) 55%), linear-gradient(180deg, transparent 0%, var(--decor-mask-on) 14%, var(--decor-mask-on) 78%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.ds-deco-light__svg { display: block; inline-size: 100%; block-size: 100%; }

/* ---- hero orbits: two orbits in a strip OUTSIDE the portrait and the text (the hero reserves the strip with its own padding);
   their centre lies outside the strip, so they never go round the portrait */
.ds-deco-orbits { position: absolute; z-index: 0; pointer-events: none; overflow: hidden; display: none; }
.ds-deco-orbits__svg { display: block; inline-size: 100%; block-size: 100%; }
.ds-deco-orbits__h { display: none; }
@container scr (min-width: 720px) {
  .ds-deco-orbits { display: block; inset-block: 0; inset-inline-end: 0; inline-size: var(--orb-w);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, var(--decor-mask-on) 45%), linear-gradient(180deg, transparent 0%, var(--decor-mask-on) 12%, var(--decor-mask-on) 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, var(--decor-mask-on) 45%), linear-gradient(180deg, transparent 0%, var(--decor-mask-on) 12%, var(--decor-mask-on) 88%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect; }
  .ds-deco-orbits__v { display: block; }
}
@container scr (not (min-width: 720px)) {
  .ds-deco-light { -webkit-mask-image: linear-gradient(180deg, transparent 38%, var(--decor-mask-on) 60%); mask-image: linear-gradient(180deg, transparent 38%, var(--decor-mask-on) 60%); }
  .ds-deco-orbits { display: block; inset-inline: 0; inset-block-end: 0; block-size: var(--orb-h);
    -webkit-mask-image: linear-gradient(0deg, var(--decor-mask-on) 70%, transparent 100%); mask-image: linear-gradient(0deg, var(--decor-mask-on) 70%, transparent 100%); }
  .ds-deco-orbits__h { display: block; }
  .ds-deco-orbits__v { display: none; }
}

/* ---- section divider: centred, never wider than its box */
.ds-divider { display: block; margin-inline: auto; max-inline-size: 100%; block-size: auto; }

/* ---- list marker: beside the first line of text */
.ds-bullet { flex: none; inline-size: var(--size-bullet); block-size: var(--size-bullet); margin-block-start: var(--space-1); }

/* ---- card accent, a modifier of .ds-card: a silver-to-lilac edge from the top start corner and the lilac and gold glow under the card,
   two orbit arcs on the top end corner (the card clips them) */
.ds-card.ds-card--deco { position: relative; overflow: hidden; border: var(--decor-edge) solid transparent; border-radius: var(--radius-lg); box-shadow: var(--shadow-decor);
  background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
              linear-gradient(135deg, var(--decor-silver), var(--color-second) 48%, transparent 100%) border-box; }
.ds-card__corner { position: absolute; inset-block-start: 0; inset-inline-end: 0; inline-size: var(--size-corner); block-size: var(--size-corner); }

/* ---- portrait: the light behind it and its edge. The portrait box itself is components.css (.ds-portrait). The light sits only at two corners, a little stronger than half,
   a little beyond the frame; no orbit, dot or ring touches the frame. The edge is her own gold, lilac and silver. */
.ds-portrait::before { content: ""; position: absolute; inset: calc(var(--decor-glow-out) * -1); z-index: 0; opacity: var(--decor-portrait-light); filter: blur(var(--decor-glow-blur)); border-radius: calc(var(--radius-lg) + var(--decor-glow-out));
  background: radial-gradient(55% 45% at 90% 94%, color-mix(in srgb, var(--decor-gold) 85%, transparent), transparent 70%),
              radial-gradient(55% 45% at 10% 6%, color-mix(in srgb, var(--color-second) 40%, transparent), transparent 70%); }
.ds-portrait > .ds-portrait__box { border: var(--decor-edge) solid transparent;
  background: linear-gradient(var(--color-surface-sunken), var(--color-surface-sunken)) padding-box,
              linear-gradient(150deg, var(--decor-silver), var(--color-second) 50%, var(--decor-gold)) border-box; }
