/* ==========================================================================
   ALUMINATE brand layer (brand-site 2026-11-21)
   Loads after every other stylesheet (theme, gov-precision, the aluminate-redesign mu-plugin at 9999) and maps the
   remaining theme variables and components onto the design-system tokens in ds-tokens.css
   (generated by design-system/build.mjs). CSS only; no markup, URL or behaviour changes.
   Reversible: dequeue 'aluminate-brand-layer' (functions.php, aluminate_brand_layer_assets).
   ========================================================================== */

/* 1. One neutral scale. The four theme families (al / gov / shell / portal) already share the brand blues and navy via
      the redesign layer; their muted text and line colours still diverged (#536f8b / #496582 / #53677f; #d8e3ef / #d9e3ef). */
:root {
  --al-muted: var(--ds-muted);
  --gov-muted: var(--ds-muted);
  --al-line: var(--ds-line);
  --gov-line: var(--ds-line);
  --al-text: var(--ds-text);
  --al-success: var(--ds-success);
}

/* 2. Legacy Elementor icon lists inside page content. The theme removes Elementor's stylesheets on the routes it owns,
      so the inline SVG icons lost their size and rendered at the full column width (a 775 x 886 px WhatsApp logo on the
      price list, the product catalogue and the custom-work page, live and local, scan 2026-11-21). */
.article-content .e-font-icon-svg,
.entry-content .e-font-icon-svg {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: -0.2em;
  fill: currentColor;
}
.article-content [data-widget_type="icon-list.default"] ul,
.entry-content [data-widget_type="icon-list.default"] ul {
  display: grid;
  gap: var(--ds-space-2);
  margin-inline: 0;
  padding: 0;
  list-style: none;
}
.article-content [data-widget_type="icon-list.default"] li,
.entry-content [data-widget_type="icon-list.default"] li {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
}
.article-content .e-fab-whatsapp,
.entry-content .e-fab-whatsapp { color: var(--ds-color-status-whatsapp); }

/* 3. Buttons: one radius and one minimum touch height for the theme's button families
      (measured before: radius 6 / 7 / 8 / 9 / 10 px, height 42-54 px). Pills (search, floating assistant) keep their shape. */
.button,
.portal-button,
.article-content a.legacy-cta-label,
.entry-content a.legacy-cta-label {
  border-radius: var(--ds-radius-md) !important;
  min-height: 48px;
}

/* 4. Legacy price-list and catalogue call-to-action links (">> ..." pale boxes): styled as the outline button of the
      card system, keeping their text, link and dark label colour (W-32 D-1). */
.article-content a.legacy-cta-label,
.entry-content a.legacy-cta-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  padding: 0 var(--ds-space-6);
  border: 1.5px solid var(--ds-blue) !important;
  background: var(--ds-paper) !important;
  color: var(--ds-navy) !important;
  font-weight: var(--ds-font-weight-bold);
  text-decoration: none;
  transition: background-color var(--ds-dur) var(--ds-ease), border-color var(--ds-dur) var(--ds-ease);
}
.article-content a.legacy-cta-label:hover,
.entry-content a.legacy-cta-label:hover {
  background: var(--ds-sky) !important;
  border-color: var(--ds-navy) !important;
}

/* 5. Motion: respect the visitor's reduced-motion setting everywhere the brand layers animate. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
