/* =====================================================================
   Deck pieces: the parts taken straight from the AURA presentation style.
   Numbered markers, charcoal callouts, the mascot and its speech bubble,
   and the grey spiral that peeks from one corner of the page.
   ===================================================================== */

/* Spiral: the same mark, size and corner as the deck slides (centre just above the top-right corner), scaled with the
   page width. Decoration only, behind everything, never in print. */
body::before {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  --spiral-s: clamp(.38px, .0443vw, .6px);              /* 0.85 × page width / 1920, as on the slides */
  width: calc(440 * var(--spiral-s)); height: calc(440 * var(--spiral-s));
  top: calc(var(--topbar-h, 60px) - 220 * var(--spiral-s)); right: calc(-130 * var(--spiral-s));   /* the slide corner is below our top bar: centre on its bottom edge */
  background: var(--deco-line);
  -webkit-mask: url("../brand/deco/spiral-v1.svg") center / contain no-repeat;
  mask: url("../brand/deco/spiral-v1.svg") center / contain no-repeat;
}
@media print { body::before { display: none; } }

/* Marker: an orange numbered dot, as on the slides. */
.marker {
  display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--aura-color-brand-solid); color: var(--aura-color-brand-on-solid);
  font: 800 14px/1 var(--aura-font-family-display);
}
.marker.is-lg { width: 40px; height: 40px; font-size: 17px; }
.marker.is-quiet { background: var(--aura-color-bg-sunken); color: var(--aura-color-text-heading); }

/* Callout: a charcoal bar with an orange label, for the one thing to remember. */
.callout {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--r-inner);
  background: var(--surface-ink); color: var(--on-ink); font-size: 15px; line-height: 1.5;
}
.callout-label { flex: none; font: 800 12px/1 var(--aura-font-family-display); letter-spacing: .1em; text-transform: uppercase; color: var(--aura-color-brand-solid); }
.callout p { margin: 0; color: var(--on-ink); }
.callout a { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .callout { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* Aurai: the mascot. Decorative, so it never carries the only copy of a message. */
.aurai { display: flex; align-items: flex-end; gap: 12px; }
.aurai-img { flex: none; width: auto; max-width: none; height: 120px; object-fit: contain; }
.aurai.is-sm .aurai-img { height: 72px; }
.aurai.is-lg .aurai-img { height: 200px; }
.aurai.is-flip { flex-direction: row-reverse; }
.aurai-say {
  position: relative; max-width: 300px; margin-bottom: 22px; padding: 12px 16px; border-radius: 16px;
  background: var(--aura-color-bg-raised); border: 1.5px solid var(--aura-color-text-heading);
  color: var(--aura-color-text-heading); font: 600 14px/1.45 var(--aura-font-family-body);
}
.aurai-say::before {
  content: ""; position: absolute; left: -8px; bottom: 14px; width: 14px; height: 14px;
  background: inherit; border-left: 1.5px solid var(--aura-color-text-heading); border-bottom: 1.5px solid var(--aura-color-text-heading);
  transform: rotate(45deg);
}
.aurai.is-flip .aurai-say::before { left: auto; right: -8px; transform: rotate(-135deg); }
@media (max-width: 560px) { .aurai-img { height: 88px; } .aurai.is-lg .aurai-img { height: 130px; } .aurai-say { max-width: none; } }

/* Aurai's tip: a slim strip above the page content. It sits in the page flow, so it can never cover a button. */
.aurai-tip {
  display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; margin: 0 0 18px; padding: 8px 18px 8px 10px;
  border-radius: 999px; background: var(--aura-color-bg-raised); border: 1.5px solid var(--aura-color-text-heading);
}
.aurai-tip[hidden] { display: none; }
.aurai-tip .aurai-img { height: 44px; }
.aurai-tip-body { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-width: 0; }
.aurai-tip-body p { margin: 0; font: 600 13.5px/1.45 var(--aura-font-family-body); color: var(--aura-color-text-heading); }
.aurai-tip-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.aurai-tip-actions .btn-link { font-size: 13px; font-weight: 700; }
.aurai-tip-actions .aurai-tip-off { color: var(--aura-color-text-muted); font-weight: 600; }
@media (max-width: 700px) { .aurai-tip { border-radius: 18px; align-items: flex-start; } }
@media print { .aurai-tip { display: none; } }
