/* Agent pages (Agent - <Name>.dc.html): keyframes, style-hover rules and the widget mount frame.
   Section styles are inline in parts/marketplace/agent/*.php. */

.site-main h1, .site-main h2, .site-main h3, .site-main p { margin: 0; }
.site-main ul { margin: 0; padding: 0; list-style: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

@keyframes gdsPulse { 0% { box-shadow: 0 0 0 0 rgba(242, 195, 0, 0.7); } 70% { box-shadow: 0 0 0 14px rgba(242, 195, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 195, 0, 0); } }
@keyframes gdsUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* style-hover */
.mpa-h-crumb:hover { color: var(--gds-navy) !important; }
.mpa-h-try:hover { background: #0B1630 !important; color: #fff !important; text-decoration: none !important; }
.mpa-h-demo:hover { background: var(--gds-navy) !important; color: #fff !important; text-decoration: none !important; }

/* Widget mount: the design's 1320 x 760 card frame, scaled with the page width; the widget script takes over its content. */
.mpa-widget { position: relative; width: 100%; aspect-ratio: 1320 / 760; border-radius: 20px; overflow: hidden; background: #1C2940; color: #fff; }
.mpa-widget.is-live { aspect-ratio: auto; overflow: visible; background: transparent; color: inherit; }
.mpa-widget__fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; }
.mpa-widget__icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); color: var(--gds-yellow); display: flex; align-items: center; justify-content: center; flex: none; }
.mpa-widget__title { font-size: clamp(16px, 2.2vw, 28px); font-weight: 700; }
.mpa-widget__caption { max-width: 560px; font-size: clamp(12px, 1.2vw, 16px); line-height: 1.5; color: #98A5C4; }
@media (max-width: 560px) { .mpa-widget__icon { width: 40px; height: 40px; border-radius: 12px; } .mpa-widget__icon svg { width: 20px; height: 20px; } .mpa-widget__caption { display: none; } }

@media (prefers-reduced-motion: reduce) {
	[data-pulse], .site-main [style*="gdsUp"] { animation: none !important; }
}

/* ---- "Try now for free": access form dialog and demo overlay (parts/marketplace/access-form.php, marketplace-demo.js) ---- */
.mpd [hidden] { display: none !important; }
.mpd { position: relative; z-index: 2147483000; font-family: var(--font-sans, 'Inter', system-ui, sans-serif); color: var(--gds-navy); }
.mpd__sr, .mpd__sr-close:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mpd__scrim { position: fixed; inset: 0; z-index: 2147483000; overflow-y: auto; background: rgba(17, 31, 61, 0.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.mpd__dialog { position: relative; box-sizing: border-box; width: calc(100% - 32px); max-width: 560px; margin: 32px auto; padding: 28px 28px 24px; background: #fff; border: 1px solid var(--gds-slate-100); border-radius: 16px; box-shadow: 0 1px 3px rgba(17, 31, 61, 0.08), 0 18px 46px -20px rgba(17, 31, 61, 0.35); outline: none; }
.mpd__x { position: absolute; top: 16px; right: 16px; display: inline-flex; padding: 6px; background: none; border: 0; border-radius: 6px; color: var(--gds-navy); opacity: 0.7; cursor: pointer; }
.mpd__x:hover { opacity: 1; }
.mpd__logo { display: block; height: 20px; width: auto; margin: 0 0 20px; }
.mpd__title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.mpd__subtitle { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--gds-slate-700); }
.mpd__form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.mpd__row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 520px) { .mpd__row { grid-template-columns: 1fr 1fr; } }
.mpd__field { display: flex; flex-direction: column; gap: 6px; }
.mpd__field label, .mpd__label { margin: 0; font-size: 13px; font-weight: 500; color: var(--gds-navy); }
.mpd__req { color: #B42318; }
.mpd__field > input[type="text"], .mpd__field > input[type="email"], .mpd__trigger { box-sizing: border-box; width: 100%; height: 44px; margin: 0; padding: 0 14px; font: inherit; font-size: 15px; font-weight: 400; color: var(--gds-navy); background: #fff; border: 1px solid var(--gds-slate-300); border-radius: var(--radius-md, 8px); outline: none; }
.mpd__field > input::placeholder, .mpd__search input::placeholder { color: var(--gds-slate-500); }
.mpd__field > input[type="text"]:hover, .mpd__field > input[type="email"]:hover, .mpd__trigger:hover { border-color: var(--gds-slate-600); }
.mpd__field > input[type="text"]:focus, .mpd__field > input[type="email"]:focus, .mpd__trigger:focus-visible { border-color: var(--gds-blue); box-shadow: 0 0 0 2px rgba(26, 73, 175, 0.25); }
.mpd__field.is-invalid input[type="text"], .mpd__field.is-invalid input[type="email"], .mpd__field.is-invalid .mpd__trigger, .mpd__field.is-invalid .mpd__pill span { border-color: #B42318; }
.mpd__error-text { margin: 0; font-size: 13px; color: #B42318; }
.mpd__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.mpd__pill { position: relative; display: inline-flex; font-size: 13px; font-weight: 400 !important; cursor: pointer; }
.mpd__pill input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.mpd__pill span { display: inline-block; padding: 8px 15px; border: 1px solid var(--gds-slate-300); border-radius: 999px; background: #fff; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.mpd__pill input:hover + span { border-color: var(--gds-navy); background: var(--gds-blue-50); }
.mpd__pill input:checked + span { border-color: var(--gds-navy); background: var(--gds-navy); color: #fff; }
.mpd__pill input:focus-visible + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gds-blue); }
.mpd__combo { position: relative; }
.mpd__trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; }
.mpd__trigger .is-placeholder { color: var(--gds-slate-500); }
.mpd__trigger svg { flex: none; color: var(--gds-slate-600); transition: transform 0.15s; }
.mpd__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.mpd__pop { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0; overflow: hidden; background: #fff; border: 1px solid var(--gds-slate-100); border-radius: 10px; box-shadow: 0 12px 30px -10px rgba(17, 31, 61, 0.35); }
.mpd__search { padding: 5px; border-bottom: 1px solid var(--gds-slate-100); }
.mpd__search input { box-sizing: border-box; width: 100%; height: 34px; margin: 0; padding: 0 8px; font: inherit; font-size: 14px; color: var(--gds-navy); background: transparent; border: 0; outline: none; }
.mpd__list { max-height: 264px; overflow-y: auto; overscroll-behavior: contain; padding: 5px; }
.mpd__opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 7px; font-size: 14px; cursor: default; }
.mpd__opt.is-active { background: var(--gds-blue-50); }
.mpd__opt[aria-selected="true"] { font-weight: 600; }
.mpd__opt-code { font-size: 11.5px; color: var(--gds-slate-500); }
.mpd__empty { margin: 0; padding: 24px 8px; text-align: center; font-size: 14px; color: var(--gds-slate-700); }
.mpd__marketing { margin-top: 8px; padding: 14px 16px; background: var(--gds-slate-75); border: 1px solid var(--gds-slate-100); border-radius: 11px; }
.mpd__marketing .mpd__label { color: var(--gds-slate-800); }
.mpd__consent { display: flex; gap: 11px; margin-top: 10px; }
.mpd__consent input { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--gds-navy); cursor: pointer; }
.mpd__consent p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--gds-slate-800); }
.mpd__consent a { color: inherit; text-decoration: underline; }
.mpd__failure { margin: 0; padding: 12px; font-size: 14px; color: #B42318; background: #FEF3F2; border: 1px solid #FECDCA; border-radius: 8px; }
.mpd__submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; width: 100%; height: 48px; margin-top: 8px; padding: 0 16px; font: inherit; font-size: 16px; font-weight: 600; color: var(--gds-slate-700); background: var(--gds-slate-100); border: 0; border-radius: 999px; cursor: pointer; transition: background 0.15s; }
.mpd__submit.is-ready { background: var(--gds-yellow); color: var(--gds-navy); }
.mpd__submit.is-ready:hover { background: #E0B400; }
.mpd__submit:focus-visible { outline: 2px solid var(--gds-blue); outline-offset: 2px; }
.mpd__submit:disabled { cursor: progress; opacity: 0.85; }
.mpd__footnote { margin: -6px 0 0; text-align: center; font-size: 12px; color: var(--gds-slate-600); }
.mpd__spin, .mpd__ring { display: inline-block; flex: none; box-sizing: border-box; border-radius: 50%; animation: mpdSpin 0.8s linear infinite; }
.mpd__spin { width: 16px; height: 16px; border: 2px solid rgba(17, 31, 61, 0.25); border-top-color: var(--gds-navy); }
.mpd__ring { width: 32px; height: 32px; border: 2px solid var(--gds-slate-100); border-top-color: var(--gds-slate-600); }
.mpd__ring--sm { width: 16px; height: 16px; }
.mpd__ring--light { border-color: rgba(255, 255, 255, 0.25); border-top-color: #fff; }
@keyframes mpdSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mpd__spin, .mpd__ring { animation-duration: 2.4s; } .mpd__rail-demo { animation: none; } }

/* Demo overlay: a rail with its own ground (#0E1622) over any demo, then the frame. */
.mpd__overlay { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; height: 100dvh; background: #fff; overscroll-behavior: none; padding-bottom: env(safe-area-inset-bottom); outline: none; }
.mpd__rail { flex: none; background: #0E1622; border-bottom: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.75); padding-top: env(safe-area-inset-top); }
.mpd__rail-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 40px; padding: 0 14px; }
.mpd__rail-name { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; }
.mpd__rail-name span:first-child { flex: none; color: #8A9CB4; }
.mpd__rail-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: #E9EFF7; }
.mpd__rail-actions { flex: none; display: flex; align-items: center; gap: 8px; }
/* Demo files: the brand yellow on the dark rail, with three pulses of the hero's yellow ring each time the overlay opens (the
   [hidden] overlay restarts the animation), so it is not missed next to the demo. */
.mpd__rail-demo { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; line-height: inherit; color: #0E1622; background: var(--gds-yellow); border-radius: 6px; text-decoration: none; animation: gdsPulse 1.6s cubic-bezier(.4, 0, .6, 1) 600ms 3; }
.mpd__rail-demo:hover { color: #0E1622; background: #FFD633; text-decoration: none; }
.mpd__rail-demo:focus-visible { outline: 2px solid #33CCFF; outline-offset: 2px; }
.mpd__rail-demo-short { display: none; }
/* Phones: both buttons must fit (320 px and up), so the demo name gives way and the demo files label shortens. The name
   still labels the dialog (aria-labelledby reads hidden elements). */
@media (max-width: 480px) {
	.mpd__rail-row { padding: 0 10px; gap: 6px; justify-content: flex-end; }
	.mpd__rail-name, .mpd__rail-demo-full { display: none; }
	.mpd__rail-demo-short { display: inline; }
	.mpd__rail-actions { gap: 6px; }
}
.mpd__rail-close { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font: inherit; font-size: 12.5px; font-weight: 600; color: #0E1622; background: #fff; border: 0; border-radius: 6px; cursor: pointer; }
.mpd__rail-close:hover { background: #D9E4F2; }
.mpd__rail-close:focus-visible { outline: 2px solid #33CCFF; outline-offset: 2px; }
.mpd__loading, .mpd__error { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mpd__stage { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.mpd__frame { flex: 1; width: 100%; border: 0; background: #fff; }
.mpd__cover { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; background: rgba(14, 22, 34, 0.7); }
.mpd__card { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; max-width: 448px; padding: 24px; text-align: center; background: #fff; border: 1px solid var(--gds-slate-100); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15); }
.mpd__card p { margin: 0; font-size: 16px; }
.mpd__slow { position: absolute; z-index: 20; top: 33%; left: 16px; right: 16px; margin: 0 auto; }
.mpd__slow-line { display: flex; align-items: center; gap: 12px; }
.mpd__card-x { position: absolute; top: 8px; right: 8px; display: inline-flex; padding: 6px; background: none; border: 0; border-radius: 6px; color: var(--gds-navy); opacity: 0.7; cursor: pointer; }
.mpd__card-x:hover { opacity: 1; }
.mpd__card-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.mpd__btn { padding: 10px 20px; font: inherit; font-size: 16px; font-weight: 600; color: var(--gds-navy); background: #fff; border: 1px solid var(--gds-slate-300); border-radius: 999px; cursor: pointer; }
.mpd__btn:hover { background: var(--gds-slate-75); }
.mpd__btn--primary { color: var(--gds-navy); background: var(--gds-yellow); border-color: var(--gds-yellow); }
.mpd__btn--primary:hover { background: #E0B400; }
.mpd__btn:focus-visible, .mpd__card-x:focus-visible, .mpd__x:focus-visible { outline: 2px solid var(--gds-blue); outline-offset: 2px; }
.mpd__sr-close:focus { position: absolute; right: 16px; bottom: 16px; z-index: 30; padding: 8px 14px; font: inherit; font-size: 14px; background: #fff; border: 1px solid var(--gds-slate-300); border-radius: 8px; }
