/* System messages + the Launch add-on card (2026-10-20) – html/layouts/joomla/system/message.php.
   Mockup: mockups/notices-2026-10-20.html (A1 + B1). Tokens: --ds-* from custom.css (fallbacks for pages without them). */
#system-message-container:empty { display: none; }
.px-msgs { display: grid; gap: 10px; max-width: 1320px; margin: 16px auto 0; padding: 0 16px; }
.px-msgs:last-child { margin-bottom: 8px; }

/* one notice style for every type */
.px-msg { --c: var(--ds-navy, #050038); --bg: #f2f4fb; --ic: var(--ds-navy, #050038);
	display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start;
	padding: 14px 14px 14px 16px; border-radius: var(--ds-r-sm, 12px); background: var(--bg); color: var(--ds-text, #161616);
	box-shadow: inset 3px 0 0 var(--c); font-size: .95rem; line-height: 1.55; }
.px-msg--success { --c: var(--ds-green, #34c759); --bg: #effaf2; --ic: var(--ds-green-ink, #15803d); }
.px-msg--info    { --c: #3b5bdb; --bg: #f1f4ff; --ic: #3b5bdb; }
.px-msg--warning { --c: #e59a00; --bg: #fff8e6; --ic: #9a5b00; }
.px-msg--error   { --c: #d92d20; --bg: #fef3f2; --ic: #b42318; }
.px-msg__ico { width: 20px; height: 20px; margin-top: 1px; color: var(--ic); }
.px-msg__text { min-width: 0; overflow-wrap: anywhere; }
.px-msg__text p { margin: 0; }
.px-msg__text p + p { margin-top: 4px; }
.px-msg__text strong { color: var(--ds-navy, #050038); }
.px-msg__text a { color: var(--ds-navy, #050038); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.px-msg__x { width: 32px; height: 32px; margin: -6px -4px -6px 0; padding: 0; border: 0; border-radius: 8px; background: transparent;
	color: var(--ds-muted, #5b6474); cursor: pointer; display: grid; place-items: center; }
.px-msg__x:hover { background: rgba(5,0,56,.06); color: var(--ds-navy, #050038); }
.px-msg__x:focus-visible { outline: 2px solid var(--ds-green-ink, #15803d); outline-offset: 1px; }
.px-msg__x svg { width: 16px; height: 16px; }

/* messages rendered later by Joomla's JS (<joomla-alert>) in the same look */
#system-message-container joomla-alert { display: block; max-width: 1320px; margin: 16px auto 0; padding: 14px 48px 14px 16px; border: 0;
	border-radius: var(--ds-r-sm, 12px); background: #f1f4ff; box-shadow: inset 3px 0 0 #3b5bdb; color: var(--ds-text, #161616); font-size: .95rem; }
#system-message-container joomla-alert[type="danger"] { background: #fef3f2; box-shadow: inset 3px 0 0 #d92d20; }
#system-message-container joomla-alert[type="warning"] { background: #fff8e6; box-shadow: inset 3px 0 0 #e59a00; }
#system-message-container joomla-alert[type="success"] { background: #effaf2; box-shadow: inset 3px 0 0 var(--ds-green, #34c759); }
#system-message-container joomla-alert .alert-heading { display: none; }

/* the Launch add-on card */
.px-gate { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; width: 100%; max-width: 760px; margin: 8px auto;
	padding: 24px; border-radius: var(--ds-r-lg, 24px); background: #fff;
	box-shadow: var(--ds-sh-float, 0 24px 50px -28px rgba(5,0,56,.35), 0 0 0 1px rgba(5,0,56,.05)); }
.px-gate__ico { width: 52px; height: 52px; border-radius: 14px; background: var(--ds-navy, #050038); display: grid; place-items: center; }
.px-gate__ico svg { width: 24px; height: 24px; color: var(--ds-green-on-navy, #7ee39a); }
.px-gate small { display: block; margin-bottom: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ds-green-ink, #15803d); }
.px-gate h2 { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; color: var(--ds-navy, #050038); }
.px-gate p { margin: 6px 0 16px; font-size: .97rem; color: var(--ds-muted, #5b6474); }
.px-gate__paths { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.px-gate__path { display: block; padding: 14px 16px; border: 1.5px solid var(--ds-line-strong, #d9dee5); border-radius: var(--ds-r-sm, 12px);
	color: var(--ds-text, #161616); text-decoration: none; transition: border-color .15s; }
.px-gate__path:hover { border-color: var(--ds-navy, #050038); color: var(--ds-text, #161616); }
.px-gate__path:focus-visible { outline: 2px solid var(--ds-green-ink, #15803d); outline-offset: 2px; }
.px-gate__path b { display: flex; justify-content: space-between; gap: 8px; font-size: .98rem; color: var(--ds-navy, #050038); }
.px-gate__path b em { font-style: normal; color: var(--ds-green-ink, #15803d); }
.px-gate__path span { display: block; margin-top: 2px; font-size: .85rem; color: var(--ds-muted, #5b6474); }
.px-gate__path.is-main { background: var(--ds-navy, #050038); border-color: var(--ds-navy, #050038); }
.px-gate__path.is-main:hover { background: #1a1550; border-color: #1a1550; }
.px-gate__path.is-main b { color: #fff; }
.px-gate__path.is-main b em { color: var(--ds-green-on-navy, #7ee39a); }
.px-gate__path.is-main span { color: rgba(255,255,255,.72); }
.px-gate p.px-gate__foot { margin: 12px 0 0; font-size: .85rem; color: var(--ds-label, #636b78); }
.px-gate__foot a { color: var(--ds-navy, #050038); font-weight: 600; }
.px-gate .px-msg__x { position: absolute; right: 12px; top: 12px; margin: 0; }

@media (max-width: 575.98px) {
	.px-gate { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
	.px-gate__paths { grid-template-columns: 1fr; }
	.px-gate h2 { padding-right: 28px; }
}
