/*
  CRM & data integration graphic (templates/_graphics/crm.twig): the agency's
  business support page in a browser frame, the CRM and reporting cards floating over its
  edge, a synced toast, the pointer, the enquiry flying across and the success
  burst. Colours come from the tokens in graphics.css.
*/
[data-g17-graphic="crm"] .g17g-cr-page { padding: 0; overflow: hidden; }
[data-g17-graphic="crm"] .g17g-cr-bar { display: flex; align-items: center; gap: .3em; height: 1.8em; padding: 0 .8em; background: var(--g17g-soft); }
[data-g17-graphic="crm"] .g17g-cr-bar > i { width: .42em; height: .42em; border-radius: 50%; background: var(--g17g-border-strong); }
[data-g17-graphic="crm"] .g17g-cr-url { display: flex; align-items: center; gap: .35em; margin: 0 auto; padding: .2em .9em; border-radius: 999px; background: var(--g17g-card); font-size: .56em; color: var(--g17g-muted); white-space: nowrap; }
[data-g17-graphic="crm"] .g17g-cr-url svg { width: 1em; height: 1em; color: var(--g17g-green); }

/* The agency's own site header */
[data-g17-graphic="crm"] .g17g-cr-site { display: flex; align-items: center; gap: .5em; height: 2.4em; padding: 0 1.05em; border-bottom: 1px solid var(--g17g-rule); }
[data-g17-graphic="crm"] .g17g-cr-logo { display: flex; align-items: center; gap: .45em; font-size: .72em; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
[data-g17-graphic="crm"] .g17g-cr-logo i { width: 1.3em; height: 1.3em; border-radius: .35em; background: var(--g17g-purple); box-shadow: inset 0 -.42em 0 var(--g17g-green); }
[data-g17-graphic="crm"] .g17g-cr-nav { display: flex; gap: 1.1em; margin-left: 1.6em; font-size: .56em; color: var(--g17g-muted); white-space: nowrap; }
[data-g17-graphic="crm"] .g17g-cr-nav b { color: var(--g17g-text); }

/* A flat purple hero */
[data-g17-graphic="crm"] .g17g-cr-hero { padding: .95em 1.05em 1em; background: var(--g17g-purple); color: var(--g17g-on-green); }
[data-g17-graphic="crm"] .g17g-cr-kicker { display: block; font-size: .56em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
[data-g17-graphic="crm"] .g17g-cr-h1 { display: block; margin: .15em 0 .2em; font-size: 1.2em; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
[data-g17-graphic="crm"] .g17g-cr-sub { display: block; font-size: .6em; opacity: .85; white-space: nowrap; }

/* The enquiry form */
[data-g17-graphic="crm"] .g17g-cr-body { padding: .1em 1.05em 1em; }
[data-g17-graphic="crm"] .g17g-cr-body .g17g-label { margin-top: .75em; }
[data-g17-graphic="crm"] .g17g-cr-topics { display: flex; gap: .4em; }
[data-g17-graphic="crm"] .g17g-cr-topic {
    position: relative; display: inline-flex; align-items: center; padding: .45em .8em; border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--g17g-border); font-size: .62em; font-weight: 600; color: var(--g17g-text-soft); white-space: nowrap;
}
[data-g17-graphic="crm"] .g17g-cr-topic > span { position: relative; z-index: 1; }
[data-g17-graphic="crm"] .g17g-cr-topic__on { position: absolute; z-index: 0; inset: 0; border-radius: inherit; background: var(--g17g-green-tint); box-shadow: inset 0 0 0 2px var(--g17g-green); }
[data-g17-graphic="crm"] .g17g-cr-page .g17g-btn { width: 11em; margin-top: 1em; }

/* Popular support topics, below the form */
[data-g17-graphic="crm"] .g17g-cr-pop { margin-top: 1.1em; padding-top: .85em; border-top: 1px solid var(--g17g-rule); }
[data-g17-graphic="crm"] .g17g-cr-poptitle { display: block; margin-bottom: .55em; font-size: .66em; font-weight: 700; }
[data-g17-graphic="crm"] .g17g-cr-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45em; }
[data-g17-graphic="crm"] .g17g-cr-tile { display: flex; align-items: center; gap: .55em; padding: .5em; border-radius: .7em; box-shadow: inset 0 0 0 1px var(--g17g-rule); font-size: .56em; font-weight: 600; white-space: nowrap; }
[data-g17-graphic="crm"] .g17g-cr-tile i { flex: none; display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: .6em; }
[data-g17-graphic="crm"] .g17g-cr-tile svg { width: 58%; height: 58%; }

/* Floating cards */
[data-g17-graphic="crm"] .g17g-cr-crm, [data-g17-graphic="crm"] .g17g-cr-report { z-index: 3; }
[data-g17-graphic="crm"] .g17g-cr-meta { display: grid; justify-items: start; }
[data-g17-graphic="crm"] .g17g-cr-meta > span { grid-area: 1 / 1; white-space: nowrap; }
[data-g17-graphic="crm"] .g17g-cr-report .g17g-count { transform-origin: 0 60%; }
[data-g17-graphic="crm"] .g17g-cr-toast { z-index: 5; display: flex; align-items: center; gap: .6em; padding: .7em 1.1em .7em .7em; border-radius: 999px; }
[data-g17-graphic="crm"] .g17g-cr-toast__t { display: block; font-size: .78em; white-space: nowrap; }
[data-g17-graphic="crm"] .g17g-cr-toast__s { display: block; margin-top: .1em; font-size: .58em; color: var(--g17g-muted); white-space: nowrap; }
[data-g17-graphic="crm"] .g17g-cr-disc { flex: none; display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--g17g-green); }
[data-g17-graphic="crm"] .g17g-cr-disc svg { width: 55%; height: 55%; }

/* Layers that fill the stage: the pointer, the enquiry in flight and the burst */
[data-g17-graphic="crm"] .g17g-cr-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 8; pointer-events: none; }
[data-g17-graphic="crm"] .g17g-cr-cursor svg { position: absolute; left: -.32em; top: -.2em; width: 1.55em; height: 1.55em; color: var(--g17g-text); filter: drop-shadow(0 .15em .25em var(--g17g-shadow)); }
[data-g17-graphic="crm"] .g17g-cr-ring { position: absolute; left: -.9em; top: -.9em; width: 1.8em; height: 1.8em; border-radius: 50%; border: 2px solid var(--g17g-green); opacity: 0; }
[data-g17-graphic="crm"] .g17g-cr-flypill {
    position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: .45em;
    padding: .3em .8em .3em .3em; border-radius: 999px; background: var(--g17g-card); font-size: .62em; font-weight: 700; white-space: nowrap;
    box-shadow: 0 .5em 1.4em var(--g17g-shadow), 0 0 0 1px var(--g17g-edge);
}
[data-g17-graphic="crm"] .g17g-cr-flypill .g17g-av { font-size: .9em; }
[data-g17-graphic="crm"] .g17g-cr-burst { z-index: 7; }
[data-g17-graphic="crm"] .g17g-cr-burst i { position: absolute; left: -.22em; top: -.22em; width: .44em; height: .44em; border-radius: 50%; background: var(--g17g-green); opacity: 0; }
[data-g17-graphic="crm"] .g17g-cr-burst i:nth-child(even) { background: var(--g17g-purple); }

/* A client's own details: a longer name stays within the space the example had, so the nav stays in view */
[data-g17-graphic="crm"] .g17g-cr-logo { min-width: 0; max-width: 14em; }
[data-g17-graphic="crm"] .g17g-cr-logo i,
[data-g17-graphic="crm"] .g17g-cr-nav,
[data-g17-graphic="crm"] .g17g-cr-url svg { flex: none; }
[data-g17-graphic="crm"] .g17g-cr-url { max-width: 80%; }
[data-g17-graphic="crm"] .g17g-cr-logo [data-g17-var],
[data-g17-graphic="crm"] .g17g-cr-urltext,
[data-g17-graphic="crm"] .g17g-cr-body .g17g-type { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
