/*
 * Homepage globe animation (B1). Renders inside Webflow's Shadow DOM: colours and fonts come
 * in through custom properties set from props. Sizes are stage pixels (1400 x 1400, 2x the
 * Figma frame), scaled to the component width. --hud (>= 1) enlarges markers and cards on
 * narrow screens so their text stays readable.
 */

.shg-root {
  --shg-bg: var(--_default---primary--ocean, #1c213d);
  --shg-sphere: var(--_default---primary--ocean, #1c213d);
  --shg-land: color-mix(in srgb, var(--_default---primary--sky, #00b2ff) 8%, transparent);
  --shg-rim: var(--_default---primary--sky, #00b2ff);
  --shg-route-a: var(--_default---primary--sky, #00b2ff);
  --shg-route-b: var(--_default---primary--tangerine, #ff863b);
  --shg-dest: var(--_default---primary--tangerine, #ff863b);
  --shg-marker: var(--_default---primary--sky, #00b2ff);
  --shg-card: var(--_default---primary--cloud, #f8f8f8);
  --shg-text: var(--_default---primary--ocean, #1c213d);
  --shg-ok: #00bc70;
  --shg-risk: #ff7373;
  --shg-action: var(--_default---primary--amber, #f6c242);
  --shg-accent: var(--_default---primary--sky, #00b2ff);
  --shg-ai: var(--_default---primary--sky, #00b2ff);
  --shg-white: var(--_default---swatch--neutral, #ffffff);
  --shg-font: var(--_typography---font--primary-family, "Fg Futurist", Arial, sans-serif);
  --shg-radius: 12px;
  --hud: 1;
  --shg-muted: color-mix(in srgb, var(--shg-text) 80%, transparent);
  --shg-faint: color-mix(in srgb, var(--shg-text) 12%, transparent);
  --shg-shadow: 12px 8px 20px rgb(0 0 0 / 0.05);
  --shg-drop: drop-shadow(12px 8px 20px rgb(0 0 0 / 0.05));

  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--shg-bg);
  font-family: var(--shg-font);
  color: var(--shg-text);
  isolation: isolate;
  contain: layout paint;
  -webkit-font-smoothing: antialiased;
  line-height: 1.2;
}

.shg-root *,
.shg-root *::before,
.shg-root *::after {
  box-sizing: border-box;
}

.shg-root[data-shadow="false"] {
  --shg-shadow: none;
  --shg-drop: none;
}

/* Webflow wraps the component in a div inside its shadow root; let it fill the parent */
:host,
:host > div:has(> .shg-root) {
  border-radius: inherit;
}

:host > div:has(> .shg-root) {
  display: block;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  align-self: stretch;
}

/* ---------- stage and first load ---------- */

/* Frame corner radius and border; the border is drawn over everything. Parent takes the radius of
   the element the component sits in (on the hero, .animation-wrapper, which clips it), through the
   host and Webflow's shadow div above. Right and All use the radius props; tablet and below follow
   Webflow's tablet breakpoint (991 px), where the hero stacks the globe under the text. */
.shg-root {
  border-radius: var(--shg-frame-radius, 0px);
}

@media (max-width: 991px) {
  .shg-root {
    border-radius: var(--shg-frame-radius-tablet, var(--shg-frame-radius, 0px));
  }
}

.shg-root[data-corners="Parent"] {
  border-radius: inherit;
}

.shg-root::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  border-radius: inherit;
  box-shadow: inset 0 0 0 var(--shg-frame-border-width, 0px) var(--shg-frame-border-color, transparent);
  pointer-events: none;
}

/* Edge fade: the globe and the background fade into the page where the box meets the hero text,
   on the left on desktop and on the top from tablet down, where the globe sits under the text;
   the route, markers and cards stay sharp. The stage covers the root exactly (adapt fit), so the masks line
   up, and the frame border fades with them. */
.shg-root[data-fade-left="true"] {
  --shg-fade-mask: linear-gradient(to right, transparent, #000 var(--shg-fade-left, 25%));
  background: none;
}

@media (max-width: 991px) {
  .shg-root[data-fade-left="true"] {
    --shg-fade-mask: linear-gradient(to bottom, transparent, #000 var(--shg-fade-left, 25%));
  }
}

.shg-root[data-fade-left="true"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--shg-bg);
}

.shg-root[data-fade-left="true"]::before,
.shg-root[data-fade-left="true"]::after,
.shg-root[data-fade-left="true"] .shg-poster,
.shg-root[data-fade-left="true"] .shg-globe {
  -webkit-mask-image: var(--shg-fade-mask);
  mask-image: var(--shg-fade-mask);
}

.shg-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1400px;
  height: 1400px;
  transform-origin: 0 0;
}

/* Until the script has scaled the stage and built frame 0, only the CSS-sized poster shows */
.shg-root:not([data-ready="true"]) .shg-stage {
  opacity: 0;
}

.shg-root[data-ready="true"] .shg-poster {
  visibility: hidden;
}

.shg-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- globe ---------- */

.shg-globe,
.shg-routes {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
}

.shg-stop-sphere {
  stop-color: var(--shg-sphere);
}

.shg-stop-rim {
  stop-color: var(--shg-rim);
}

.shg-land {
  fill: var(--shg-land);
}

/* ---------- route, dots, marker ---------- */

.shg-route {
  fill: none;
  stroke-width: calc(4px * var(--hud));
  stroke-linecap: round;
}

.shg-route-ahead {
  fill: none;
  stroke: var(--shg-ahead, var(--shg-route-b));
  stroke-width: calc(4px * var(--hud));
  stroke-linecap: round;
}

.shg-stop-route0 {
  stop-color: var(--shg-route-a);
  stop-opacity: 0;
}

.shg-stop-route-a {
  stop-color: var(--shg-route-a);
}

.shg-arrow path {
  fill: none;
  stroke: var(--shg-ahead, var(--shg-route-b));
  stroke-width: 4px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shg-dot circle {
  fill: var(--shg-dest);
}

.shg-dot .shg-dot__ring {
  opacity: 0.2;
}

.shg-dot .shg-halo {
  fill: none;
  stroke: var(--shg-dest);
  stroke-width: 3px;
}

.shg-marker {
  --pop: 0;
  --risk: 0;
  --pulse: 0;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

.shg-marker__inner {
  position: absolute;
  left: -32px;
  top: -32px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  transform: scale(calc(var(--hud) * var(--pop)));
}

.shg-marker__inner > * {
  grid-area: 1 / 1;
}

.shg-marker__halo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  transform: scale(calc(1 + 0.9 * var(--pulse)));
}

.shg-marker__halo--ok {
  background: var(--shg-marker);
  opacity: calc(0.35 * (1 - var(--pulse)) * (1 - var(--risk)));
}

.shg-marker__halo--risk {
  background: var(--shg-risk);
  opacity: calc(0.5 * (1 - var(--pulse)) * var(--risk));
}

.shg-marker__truck,
.shg-marker__dot,
.shg-marker__arrow {
  display: none;
}

.shg-marker__truck,
.shg-marker__dot,
.shg-marker__arrow {
  position: relative;
  z-index: 1;
}

.shg-root[data-marker="Truck"] .shg-marker__truck,
.shg-root[data-marker="Dot"] .shg-marker__dot,
.shg-root[data-marker="Arrow"] .shg-marker__arrow {
  display: grid;
}

.shg-marker__truck {
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: var(--shg-marker);
  color: var(--shg-white);
  box-shadow: 0 0 0 5px var(--shg-white);
}

.shg-marker__truck svg {
  width: 36px;
  height: 36px;
}

.shg-marker__dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--shg-marker);
  box-shadow: 0 0 0 5px var(--shg-white);
}

.shg-marker__arrow {
  width: 52px;
  height: 52px;
  color: var(--shg-marker);
  rotate: var(--marker-angle, 0deg);
}

.shg-arrow-glyph {
  fill: currentColor;
  stroke: var(--shg-white);
  stroke-width: 3;
  stroke-linejoin: round;
}

.shg-on-tone {
  fill: none;
  stroke: var(--shg-white);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shg-on-tone-fill {
  fill: var(--shg-white);
}

/* ---------- cards and panels ---------- */

/* Left-hand cards sit 160 stage px in, mirroring the right-hand cards (right: 160px); on narrow
   screens they are enlarged by --hud, so they keep the 64 px inset */
.shg-root {
  --shg-left-panel-x: 160px;
}

.shg-root[data-narrow="true"] {
  --shg-left-panel-x: 64px;
}

.shg-hud {
  position: absolute;
  scale: var(--hud);
  transform-origin: 0% 100%;
}

/* Anchored right/bottom so the enlarged card grows left and up and stays inside the stage */
.shg-hud--status {
  right: 160px;
  bottom: 332px;
  transform-origin: 100% 100%;
}

.shg-root[data-narrow="true"] .shg-hud--status {
  bottom: 60px;
}

.shg-card {
  position: relative;
  min-width: 496px;
  background: var(--shg-card);
  color: var(--shg-text);
  border-radius: var(--shg-radius);
  box-shadow: var(--shg-shadow);
  opacity: 0;
  visibility: hidden;
  transform-origin: 0% 100%;
}

.shg-panel {
  width: 720px;
}

.shg-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 34px 44px 34px 96px;
}

.shg-title {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.22;
}

.shg-line {
  font-size: 30px;
  line-height: 1.3;
  color: var(--shg-muted);
}

.shg-ind {
  position: absolute;
  inset: 0 auto 0 0;
  width: 96px;
}

.shg-ind__tone {
  position: absolute;
  inset: 0;
}

.shg-ind__tone:not(:first-child) {
  opacity: 0;
  visibility: hidden;
}

.shg-ind__tone[data-tone="ok"] {
  --tone: var(--shg-ok);
}

.shg-ind__tone[data-tone="risk"] {
  --tone: var(--shg-risk);
}

.shg-ind__tone[data-tone="action"] {
  --tone: var(--shg-action);
}

.shg-ind__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  border-radius: 4px;
  background: var(--tone);
}

.shg-ind__icon {
  position: absolute;
  left: 34px;
  top: var(--shg-ind-top, 40px);
  width: 44px;
  height: 44px;
  color: var(--tone);
}

.shg-ind__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.shg-ind__dot {
  display: none;
  position: absolute;
  left: 40px;
  top: calc(var(--shg-ind-top, 40px) + 10px);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--tone);
}

.shg-root[data-status-style="Dot"] .shg-ind__bar,
.shg-root[data-status-style="Dot"] .shg-ind__icon {
  display: none;
}

.shg-root[data-status-style="Dot"] .shg-ind__dot {
  display: block;
}

.shg-swap {
  display: grid;
}

.shg-swap > * {
  grid-area: 1 / 1;
}

.shg-swap > :not(:first-child) {
  opacity: 0;
  visibility: hidden;
}

.shg-eta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shg-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 24px;
  font-weight: 500;
  color: var(--shg-text);
  opacity: 0;
  visibility: hidden;
}

.shg-tag--risk {
  background: color-mix(in srgb, var(--shg-risk) 24%, transparent);
}

.shg-tag--action {
  background: color-mix(in srgb, var(--shg-action) 34%, transparent);
}

/* ---------- Shippeo AI cards (frames 2–3, 4 and 6) ---------- */

/* --spin, --sweep and --glow are written from the timeline time (tracks/ai.ts); the title sits
   under the eyebrow, so the status icon moves down with it */
.shg-card--ai {
  --spin: 0deg;
  --sweep: 0;
  --glow: 0;
  --shg-ind-top: 90px;
}

.shg-ai {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding: 5px 18px 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--shg-ai) calc(11% + var(--glow) * 9%), transparent);
  box-shadow: 0 0 calc(var(--glow) * 24px) calc(var(--glow) * 3px) color-mix(in srgb, var(--shg-ai) calc(var(--glow) * 45%), transparent);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.shg-ai__spark {
  display: block;
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--shg-ai);
  filter: drop-shadow(0 0 calc(var(--glow) * 8px) color-mix(in srgb, var(--shg-ai) calc(var(--glow) * 100%), transparent));
  transform: scale(calc(1 + var(--glow) * 0.16));
}

.shg-ai__spark svg,
.shg-step__done svg,
.shg-spinner svg {
  display: block;
  width: 100%;
  height: 100%;
}

.shg-ai__label {
  text-shadow: 0 0 calc(var(--glow) * 14px) color-mix(in srgb, var(--shg-ai) calc(var(--glow) * 70%), transparent);
}

/* Cards that grow with their content (frames 2–3 and 6): the layout keeps the full size, so nothing
   reflows and the card stays at its anchor; the timeline tweens --grow (stage px, tracks/util.ts grow)
   and the card is clipped to it, its top edge fixed. A box-shadow would be clipped too, so the shadow
   is a drop-shadow on the Hud wrapper, which follows the clip. */
.shg-card--grow {
  --grow: 100000;
  box-shadow: none;
  transform-origin: 0% 0%;
  clip-path: inset(0 0 max(0px, calc(100% - var(--grow) * 1px)) 0 round var(--shg-radius));
}

.shg-hud--reason,
.shg-hud--invoice {
  filter: var(--shg-drop);
}

/* Every line of an AI card stays on one line, so the heights the timeline measures do not depend on the font */
.shg-card--ai .shg-title,
.shg-card--ai .shg-line,
.shg-step__text,
.shg-step__detail {
  white-space: nowrap;
}

/* Stacked layers (steps, then details) share one grid cell; each keeps its own height, which the card fits */
.shg-layers {
  display: grid;
  margin-top: 10px;
}

.shg-layers > * {
  grid-area: 1 / 1;
  align-self: start;
}

.shg-layer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
}

.shg-steps {
  display: grid;
  align-content: start;
  gap: 16px;
}

/* A line the AI works through: spinner and shimmer while --active, then the result icon */
.shg-step {
  --active: 0;
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  column-gap: 16px;
  row-gap: 4px;
  font-size: 28px;
  line-height: 1.25;
  opacity: 0;
  visibility: hidden;
}

.shg-step__icon {
  display: grid;
  width: 36px;
  height: 36px;
}

.shg-step__icon > * {
  grid-area: 1 / 1;
}

.shg-spinner svg {
  transform: rotate(var(--spin));
}

.shg-spinner__track,
.shg-spinner__arc {
  fill: none;
  stroke-width: 3.5;
}

.shg-spinner__track {
  stroke: color-mix(in srgb, var(--shg-ai) 22%, transparent);
}

.shg-spinner__arc {
  stroke: var(--shg-ai);
  stroke-linecap: round;
  stroke-dasharray: 30 70;
}

.shg-step__done {
  color: var(--shg-ai);
  opacity: 0;
  visibility: hidden;
}

/* The shimmer: a light band sweeps across the text while the line is active (--sweep 0..1) */
.shg-step__text {
  position: relative;
  justify-self: start;
  --shg-shine: color-mix(in srgb, var(--shg-text), var(--shg-card) calc(var(--active) * 72%));
  background-image: linear-gradient(100deg, var(--shg-text) 40%, var(--shg-shine) 50%, var(--shg-text) 60%);
  background-size: 300% 100%;
  background-position: calc((1 - var(--sweep)) * 100%) 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.shg-step__detail {
  grid-column: 2;
  font-size: 24px;
  color: var(--shg-muted);
}

.shg-step__detail.shg-eta {
  gap: 8px;
}

.shg-step__detail .shg-tag {
  padding: 2px 12px;
  font-size: 22px;
}

/* A value that changes in place: both values sit in one cell and crossfade (tracks/util.ts swap) */
.shg-value {
  font-weight: 500;
  color: var(--shg-text);
}

/* ---------- frames 2–3: reasoning, then the production risk ---------- */

.shg-hud--reason {
  left: var(--shg-left-panel-x);
  top: calc(800px + var(--stage-extra-h, 0px));
}

.shg-root[data-narrow="true"] .shg-hud--reason {
  top: calc(880px + var(--stage-extra-h, 0px));
}

.shg-axis {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 14px;
  overflow: visible;
}

.shg-axis__line,
.shg-axis__tick {
  stroke: var(--shg-faint);
  stroke-linecap: round;
}

.shg-axis__line {
  stroke-width: 4;
}

.shg-axis__tick {
  stroke-width: 3;
}

.shg-axis__label {
  fill: var(--shg-muted);
  font-size: 22px;
  text-anchor: middle;
}

.shg-axis__band {
  fill: color-mix(in srgb, var(--shg-risk) 22%, transparent);
  opacity: 0;
  visibility: hidden;
}

.shg-axis__planned {
  fill: none;
  stroke: var(--shg-muted);
  stroke-width: 3;
  stroke-dasharray: 4 5;
  opacity: 0;
  visibility: hidden;
}

.shg-axis__eta,
.shg-axis__deadline,
.shg-buffer {
  opacity: 0;
  visibility: hidden;
}

.shg-axis__eta circle {
  fill: var(--shg-risk);
}

.shg-axis__eta text,
.shg-axis__deadline text {
  fill: var(--shg-text);
  font-size: 24px;
  font-weight: 500;
  text-anchor: middle;
}

.shg-axis__deadline line {
  stroke: var(--shg-text);
  stroke-width: 4;
}

.shg-buffer {
  color: var(--shg-text);
  font-weight: 500;
}

/* ---------- frame 4: dock slot and notification ---------- */

.shg-hud--dock {
  left: var(--shg-left-panel-x);
  top: calc(800px + var(--stage-extra-h, 0px));
}

.shg-slots {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--slots), 1fr);
  gap: 12px;
  margin-top: 16px;
}

.shg-slots__slot {
  position: relative;
  display: grid;
  place-items: center;
  height: 76px;
  border: 3px solid var(--shg-faint);
  border-radius: 12px;
  font-size: 26px;
  font-weight: 500;
  color: var(--shg-muted);
}

.shg-slots__strike {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 3px;
  background: var(--shg-risk);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.shg-slots__pick {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: calc((100% - (var(--slots) - 1) * 12px) / var(--slots));
  height: 76px;
  border: 4px solid var(--shg-accent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--shg-accent) 14%, transparent);
  opacity: 0;
  visibility: hidden;
}

/* The slot Shippeo AI recommends, outlined until the pick moves onto it */
.shg-slots__suggest {
  position: absolute;
  inset: -3px;
  border: 3px dashed var(--shg-ai);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
}

.shg-slots__spark {
  position: absolute;
  right: -15px;
  top: -17px;
  width: 30px;
  height: 30px;
  padding: 3px;
  border-radius: 50%;
  background: var(--shg-card);
  color: var(--shg-ai);
}

.shg-slots__spark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.shg-float {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
}

.shg-toast {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px 18px 20px;
  font-size: 28px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 1;
  visibility: inherit;
  scale: var(--hud);
  translate: -50% 0;
  transform-origin: 50% 0;
}

.shg-toast__check {
  width: 38px;
  height: 38px;
  color: var(--shg-ok);
}

.shg-toast__check svg,
.shg-plane svg {
  display: block;
  width: 100%;
  height: 100%;
}

.shg-plane {
  position: absolute;
  left: -26px;
  top: -26px;
  width: 52px;
  height: 52px;
  opacity: 0;
  visibility: hidden;
}

.shg-plane__icon {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--shg-accent);
  scale: var(--hud);
}

/* ---------- frame 6: invoice ---------- */

.shg-hud--invoice {
  left: var(--shg-left-panel-x);
  top: calc(800px + var(--stage-extra-h, 0px));
}

.shg-inv {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

/* The invoice lines are AI steps (panels/Ai.tsx) with a flag or check as their result */
.shg-inv__row {
  --flag: 0;
  padding: 14px 18px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--shg-risk) calc(var(--flag) * 20%), transparent);
}

.shg-inv__row .shg-step__done {
  color: var(--shg-ok);
}

.shg-inv__row--flag .shg-step__done {
  color: var(--shg-risk);
}

.shg-inv__strike {
  position: absolute;
  left: -6px;
  right: -6px;
  top: 52%;
  height: 3px;
  background: var(--shg-risk);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.shg-inv__badge {
  align-self: flex-start;
  margin-top: 16px;
  padding: 8px 18px;
  font-size: 28px;
}

/* ---------- frame 7: summary ---------- */

.shg-hud--summary {
  right: 160px;
  bottom: 320px;
  transform-origin: 100% 100%;
}

.shg-root[data-narrow="true"] .shg-hud--summary {
  bottom: 60px;
}

.shg-check {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
}

.shg-check::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--shg-ok);
}

/* ---------- frame 5: eCMR ---------- */

.shg-hud--ecmr {
  left: var(--shg-left-panel-x);
  top: calc(740px + var(--stage-extra-h, 0px));
}

.shg-ecmr__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 26px;
  margin-top: 16px;
}

.shg-doc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 3px solid var(--shg-faint);
  border-radius: 10px;
  background: var(--shg-white);
}

.shg-doc__head {
  font-size: 26px;
  font-weight: 500;
}

.shg-doc__lines {
  display: grid;
  gap: 8px;
}

.shg-doc__lines i {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--shg-faint);
}

.shg-doc__lines i:nth-child(2) {
  width: 80%;
}

.shg-doc__lines i:nth-child(3) {
  width: 60%;
}

.shg-doc__sign {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 3px solid var(--shg-faint);
}

.shg-doc__sign path {
  fill: none;
  stroke: var(--shg-text);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  visibility: hidden;
}

.shg-doc__caption {
  white-space: nowrap;
  font-size: 20px;
  color: var(--shg-muted);
  opacity: 0;
  visibility: hidden;
}

.shg-ecmr__side {
  display: flex;
  flex-direction: column;
}

.shg-count {
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.shg-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
}

.shg-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shg-photo__flash {
  position: absolute;
  inset: 0;
  background: var(--shg-white);
  opacity: 0;
}

.shg-photo__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: auto;
  max-width: calc(100% - 24px);
  padding: 4px 12px;
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--shg-card);
  box-shadow: inset 0 0 0 3px var(--shg-risk);
}

