/* ADX presentation only: this file is loaded by the two staff templates. */
:is(.adx-layout,.insights-page) .uk-button {
  box-sizing:border-box;min-height:44px;max-width:100%;padding:12px 16px;
  font-size:16px;line-height:1.35;text-align:center;white-space:normal;
  overflow-wrap:anywhere;
}
:is(.adx-layout,.insights-page) :is(input,select,textarea) {
  box-sizing:border-box;min-width:0;max-width:100%;font-size:16px;line-height:1.5;
}
:is(.adx-layout,.insights-page) :is(button,a,input,select,textarea,summary):focus-visible {
  outline:3px solid #0f777e;outline-offset:3px;
}
/* Hash targets are reading containers, not controls. Safari can mark their
   programmatic focus as focus-visible even after a touch navigation. */
.adx-layout :is(#support,#system):focus {outline:none}
.adx-layout :is(.adx-health,.adx-budget,.adx-relationship-panel,.adx-push-panel) {
  border-color:#cfe1de;border-radius:16px;
}
.adx-layout .adx-relationship-toolbar {gap:12px}
.adx-layout .adx-relationship-panel [data-relationship-status] {margin:12px 0 16px;line-height:1.55}
.insights-controls {display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:0 0 16px}
.insights-controls .insights-period {flex:0 1 auto;min-width:0}
.insights-controls>[data-reauth] {margin:0}
.insights-page [data-status] {line-height:1.55;margin:0 0 24px}
.insights-page [data-status]:empty {display:none}
.insights-page .insights-heading p {line-height:1.55}
.insights-page .insights-search {align-items:end}
.insights-page .insights-detail .insights-actions {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
}
.insights-page .insights-detail .insights-actions>.uk-button {width:100%;height:100%}
.insights-page .insights-detail .insights-account-actions>.uk-button {padding-left:8px;padding-right:8px;overflow-wrap:normal}
.insights-page .insights-detail>p.insights-muted {margin:16px 0;text-align:justify;hyphens:auto}
.insights-page [data-view=users]>.insights-muted {text-align:justify;hyphens:auto}
.adx-layout :is(.adx-health,.adx-budget,.adx-relationship-panel,.adx-push-panel)>p:not([role]):not([data-budget-price]),
.adx-layout .support-work .support-composer>p {
  text-align:justify;hyphens:auto;font-size:14px;line-height:1.55;margin:16px 0;
}
.adx-layout .support-work .support-composer>p {margin:0} /* The composer's 16px grid gap supplies paragraph spacing. */
.insights-page .insights-detail .insights-grants {grid-template-columns:repeat(4,minmax(0,1fr))}
.insights-page .insights-detail .insights-account-actions>.uk-button:only-child {grid-column:1/-1}
.adx-layout .support-work>header h1 {font-size:28px;line-height:1.2;margin:0 0 12px;overflow-wrap:anywhere}
.adx-layout .support-work>header p {font-size:16px;line-height:1.55;margin:0}
.adx-layout .support-work[data-admin=true] .support-toolbar {justify-content:flex-start;margin:20px 0 12px}
.adx-layout .support-work[data-admin=true] [data-support-live] {font-size:14px;line-height:1.55;margin:0 0 16px}
.adx-layout .support-work :is(.support-composer>p,.support-event small) {line-height:1.55}
.adx-layout .support-work .support-composer>p {font-size:14px}
.adx-layout .support-work .support-actions {gap:12px;padding-top:20px;margin-top:24px}
.adx-layout .support-work .support-media-tools {gap:12px}
.adx-layout .support-work [hidden] {display:none!important}
@media(max-width:900px) {
  .adx-layout .uk-main {padding-bottom:32px}
  .adx-layout .support-work {min-width:0}
  .adx-layout .support-work>header {margin-top:24px}
}
@media(max-width:780px) {
  .insights-page .insights-shell {padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
  .adx-layout .uk-main {padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));padding-bottom:max(32px,env(safe-area-inset-bottom))}
  .adx-layout :is(.adx-health,.adx-budget,.adx-relationship-panel,.adx-push-panel) {padding:16px;margin:0 0 20px}
  .adx-layout .adx-relationship-toolbar {display:grid;grid-template-columns:minmax(0,1fr)}
  .adx-layout :is([data-health-refresh],[data-relationship-check],[data-relationship-resolve],[data-relationship-more]) {width:100%}
  .insights-page .insights-heading {gap:20px;margin:24px 0}
  .insights-page .insights-heading h1 {font-size:28px;line-height:1.2}
  .insights-page .insights-controls {display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-bottom:16px}
  .insights-page .insights-controls>.uk-button {width:100%}
  .insights-page .insights-period {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
  .insights-page .insights-period button {padding:12px 6px;min-width:0;font-size:16px;line-height:1.35;white-space:normal}
  .insights-page .insights-search {grid-template-columns:minmax(0,1fr);gap:16px}
  .insights-page .insights-search>* {grid-column:1;min-width:0;width:100%}
  .insights-page .insights-search label {font-size:14px;gap:8px}
  .insights-page .insights-muted {font-size:14px;line-height:1.55}
  .insights-page .insights-detail .insights-grants {grid-template-columns:repeat(2,minmax(0,1fr))}
  .insights-page .insights-detail h3 {font-size:16px;line-height:1.4;margin:24px 0 12px}
  .insights-page .insights-reason {font-size:14px;margin:20px 0;gap:8px}
  .adx-layout .support-work .support-toolbar>.uk-button {width:100%}
  .adx-layout .support-work .support-media-tools {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .adx-layout .support-work .support-media-tools>.uk-button {width:100%;margin:0;height:100%;padding-left:10px;padding-right:10px;overflow-wrap:normal}
  .adx-layout .support-work .support-media-tools>.uk-button:first-child {grid-column:1/-1}
  .adx-layout .support-work .support-composer {gap:16px}
  .adx-layout .support-work .support-composer>button[type=submit] {width:100%;justify-self:stretch;margin:0}
  .adx-layout .support-work .support-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
  .adx-layout .support-work .support-actions>.uk-button {width:100%;margin:0;height:100%;padding-left:10px;padding-right:10px;overflow-wrap:normal}
  .adx-layout .support-work .support-actions>label {grid-column:1/-1;width:100%;min-width:0;max-width:none;margin:4px 0 0;font-size:14px}
  .adx-layout .support-work .support-actions>label+.uk-button {grid-column:1/-1}
  .adx-layout .support-work .support-actions>.uk-button[hidden]+.uk-button {grid-column:1/-1}
  .adx-layout .support-work .support-actions>.uk-button:only-of-type {grid-column:1/-1}
}
@media(max-width:360px) {
  .adx-layout .support-work>header h1,.insights-page .insights-heading h1 {font-size:26px}
  :is(.adx-layout,.insights-page) .uk-button {padding-left:12px;padding-right:12px}
  .adx-layout .support-work .support-media-tools {grid-template-columns:minmax(0,1fr)}
  .adx-layout .support-work .support-actions {grid-template-columns:minmax(0,1fr)}
  .insights-page .insights-detail .insights-account-actions {grid-template-columns:minmax(0,1fr)}
}
