/* Owner-supplied ornaments (skin/ornaments, cut by qa/prepare-ornament-art.py). Candidate components only:
   no live screen links this file yet; ornaments-preview.html shows them for review. */

/* Winged seal: wraps any square icon in the empty gold seal. Set --wb-seal-icon to the icon's diameter.
   The 160x80 seal's black medallion is centred at (79, 39) with a 64.8px opening; the icon is clipped to
   62px of it so a hairline of the medallion's own black stays between the icon and the gold ring. */
.wb-seal{--wb-seal-icon:48px;position:relative;display:inline-block;flex:none;vertical-align:middle;
 width:calc(var(--wb-seal-icon)*160/62);height:calc(var(--wb-seal-icon)*80/62);
 background:url('./skin/ornaments/seal-winged.png') center/100% 100% no-repeat}
.wb-seal>img,.wb-seal::after{position:absolute;left:calc(100%*79/160);top:calc(100%*39/80);width:var(--wb-seal-icon);height:var(--wb-seal-icon);
 border-radius:50%;transform:translate(-50%,-50%)}
.wb-seal>img{object-fit:cover;border:0}
/* Seats the icon in the medallion: a soft dark edge, like the original emblem's shadowed rim. */
.wb-seal::after{content:'';pointer-events:none;box-shadow:inset 0 0 calc(var(--wb-seal-icon)*.12) calc(var(--wb-seal-icon)*.02) #000c}
.wb-seal.is-locked{filter:grayscale(1) brightness(.68)}
.wb-seal-sm{--wb-seal-icon:30px}.wb-seal-lg{--wb-seal-icon:64px}

/* Dividers. The lines fade at both ends, so they stretch to any width at their native height. */
.wb-rule-glow,.wb-rule-gold,.wb-rule-shadow{display:block;width:100%;border:0;margin:0;background:center/100% 100% no-repeat}
.wb-rule-glow{height:14px;background-image:url('./skin/ornaments/line-glow.png')}
.wb-rule-gold{height:12px;background-image:url('./skin/ornaments/line-gold.png')}
.wb-rule-shadow{height:4px;background-image:url('./skin/ornaments/line-shadow.png')}
/* Gold rule with its dark under-line, stacked as on the supplied sheet. */
.wb-rule{display:block;height:16px;width:100%;border:0;margin:0;
 background:url('./skin/ornaments/line-gold.png') center top/100% 12px no-repeat,url('./skin/ornaments/line-shadow.png') center bottom/88% 4px no-repeat}
/* Centred scroll flourishes and the small glint, at native size (or twice it with -lg). */
.wb-flourish,.wb-flourish-small,.wb-glint{display:block;margin-inline:auto;border:0;background:center/contain no-repeat}
.wb-flourish{width:97px;height:25px;background-image:url('./skin/ornaments/flourish-scroll.png')}
.wb-flourish-small{width:92px;height:21px;background-image:url('./skin/ornaments/flourish-small.png')}
.wb-glint{width:48px;height:10px;background-image:url('./skin/ornaments/glint.png')}
.wb-flourish.wb-ornament-lg{width:146px;height:38px}
