/**
 * @file
 * site-specific front-end overrides (human / site owner only).
 *
 * agents must not edit this file. put theme/product css in mucss-drupal.css
 * or fix markup in twig/preprocess. this file is for brand colours, client
 * layout quirks, and one-off public-site fixes owned by the human.
 *
 * admin ui is mucss too; site-wide brand still belongs here. module ui (e.g.
 * xadmin bar) lives under modules/xweb/<name>/css/.
 *
 * load order (last wins for equal specificity):
 *   1. css/vendor/mu.css       — µcss framework (npm sync only)
 *   2. css/mucss-drupal.css    — reusable drupal ↔ µcss bridges
 *   3. css/site.css            — this file (site-specific)
 */
/* example (human-owned):
:root {
  --mu-primary: #0b5fff;
}
*/
:root {
  font-size: 1rem;
}

html[data-theme="dark"] {
  scrollbar-color: #0ea5e9 #232a38;
}

html[data-theme="light"] {
  scrollbar-color: #118fd5 #f3f3f3;
}

a {
  text-decoration: none;
}

header:has(> nav.site-nav) {
  background: #006193;
}

nav.site-nav {
  margin-bottom: 1rem;
}

nav.site-nav .site-branding__name {
  display: none;
}

nav.site-nav .site-branding__logo img {
  height: 4.5rem;
}

nav.site-nav .navbar-menu {
  gap: 0.5rem;
}

nav.site-nav .navbar-menu a:hover,
nav.site-nav .navbar-menu a.active {
  background-color: var(--mu-primary-hover);
}

.icon-feature {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 0.5rem;
  color: var(--mu-primary);
  flex-shrink: 0;
}

.icon-feature + p {
  display: inline-flex;
  margin: 0;
}

.icon-inline {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 0.5rem;
  color: var(--mu-primary);
}

.card header {
  font-weight: bold;
}

.card header .icon-feature {
  vertical-align: middle;
}

@media (min-width: 1536px) {
  .container {
    max-width: 1130px;
  }
}

/**
 * webform / intake form
 */
.progress-step {
  list-style: none;
}

.webform-signature-pad input.button {
  top: 0.25rem;
  right: 0.25rem;
  width: auto;
}

.webform-readonly input[type="text"] {
  background: var(--mu-form-element-background-color);
  border-color: var(--mu-form-element-border-color);
  color: var(--mu-form-element-color);
}

/**
 * icons svg
 */
img[src*="icons.svg#"] {
  height: 32px;
  width: 32px;
}

[data-theme="dark"] img[src*="icons.svg#"] {
  filter: invert(1);
}

table.downloads {
  width: 100%;
}

table.downloads td:first-child {
  width: 70px;
}
