/* The GetHacked badge being built behind the licensing work: decorative, drawn by /platform/core/badge-mark.js.
   The host owns layout, opacity and the accessible progress text; the drawing never takes pointer events, so it cannot
   cover a control. Clicks that reach its built lines through empty space open the Badge page (see licensing-shield.js). */
.shield-stage{position:absolute;inset:0;isolation:isolate;pointer-events:none;user-select:none;overflow:hidden;contain:layout style}
/* A calm size: the whole badge and its caption stay inside the backdrop with room around them, never past a quiet maximum,
   and clear of the Back / Continue row along the bottom of the licensing work. */
.shield-art{position:absolute;inset:16px 16px 64px;margin:auto;width:min(calc(100% - 32px),520px);height:min(calc(100% - 80px),590px);display:flex;flex-direction:column;align-items:center;justify-content:center;container-type:size}
.shield-mark{flex:1 1 0;min-height:0;width:100%}
/* Words beside the colour: the state and the scope, under the drawing. Where words or a field lie under them (a phone
   form over the badge), they move above the drawing, or step aside and keep their space so the drawing never jumps. */
.shield-caption{flex:none;box-sizing:border-box;max-width:100%;margin:12px 0 0;padding:0 4px;font:500 11px/1.5 var(--label);letter-spacing:.08em;text-transform:uppercase;text-align:center;text-wrap:balance;color:var(--muted)}
.is-caption-above>.shield-caption{order:-1;margin:0 0 12px}
.shield-caption.is-stepped-aside{visibility:hidden}
/* The drawing keeps about a tenth of its width clear above and below the lines; the caption moves into that space. */
@supports (width:1cqh){
  .shield-art{--shield-mark:min(100cqw,calc((100cqh - 30px) * 400 / 430))}
  .shield-mark{flex:none;width:var(--shield-mark);aspect-ratio:400/430}
  .shield-caption{margin-top:calc(14px - var(--shield-mark) * .1)}
  .is-caption-above>.shield-caption{margin:0 0 calc(14px - var(--shield-mark) * .09)}
}
.shield-pieces{display:none}
/* Over the built lines, through empty space, the pointer says the badge can be opened. */
body[data-shield-pointing]{cursor:pointer}
