/* One palette for every category surface: navigation, headings, cards and sidebars. */
html:not([data-qt-theme="dark"]) [data-palette="construction"] { --cat:#b95a25; --shade:#87390f; --tint:#fff1e9; --edge:#efcbb8; }
html:not([data-qt-theme="dark"]) [data-palette="electrical"] { --cat:#a46b00; --shade:#785000; --tint:#fff7df; --edge:#e9d69d; }
html:not([data-qt-theme="dark"]) [data-palette="finance"] { --cat:#13805e; --shade:#086b4d; --tint:#e8f6ee; --edge:#bde4d0; }
html:not([data-qt-theme="dark"]) [data-palette="employment"] { --cat:#395ead; --shade:#2d4c92; --tint:#ebf1fc; --edge:#c8d8f4; }
html:not([data-qt-theme="dark"]) [data-palette="study"] { --cat:#7249be; --shade:#5b37a0; --tint:#f2edfc; --edge:#ded1f6; }
html:not([data-qt-theme="dark"]) [data-palette="digital"] { --cat:#097aa7; --shade:#075e82; --tint:#eaf6fb; --edge:#c4e2ef; }
html:not([data-qt-theme="dark"]) [data-palette="text"] { --cat:#a13f83; --shade:#812e68; --tint:#fceef7; --edge:#efc8e1; }
html:not([data-qt-theme="dark"]) [data-palette="daily"] { --cat:#c14364; --shade:#96304d; --tint:#fff0f3; --edge:#f1c6d1; }

html[data-qt-theme="dark"] [data-palette="construction"] { --qt-theme-hue:24; --menu-selected:#87390f; }
html[data-qt-theme="dark"] [data-palette="electrical"] { --qt-theme-hue:42; --menu-selected:#785000; }
html[data-qt-theme="dark"] [data-palette="finance"] { --qt-theme-hue:154; --menu-selected:#086b4d; }
html[data-qt-theme="dark"] [data-palette="employment"] { --qt-theme-hue:219; --menu-selected:#2d4c92; }
html[data-qt-theme="dark"] [data-palette="study"] { --qt-theme-hue:264; --menu-selected:#5b37a0; }
html[data-qt-theme="dark"] [data-palette="digital"] { --qt-theme-hue:197; --menu-selected:#075e82; }
html[data-qt-theme="dark"] [data-palette="text"] { --qt-theme-hue:311; --menu-selected:#812e68; }
html[data-qt-theme="dark"] [data-palette="daily"] { --qt-theme-hue:343; --menu-selected:#96304d; }

/* Home category tiles use the same category colors as the inner navigation. */
html body :is(.qt-mh-categories, .category-tiles) > a[data-palette] {
  background:var(--tint) !important;
  border-color:var(--edge) !important;
  color:var(--shade) !important;
}

html body .top .portal-nav .portal-nav-inner > a[data-palette][aria-current="page"] {
  background:var(--menu-selected,var(--shade)) !important;
  border-color:var(--menu-selected,var(--shade)) !important;
  color:#fff !important;
  box-shadow:none !important;
}

html[data-qt-interface="refined"]:not([data-qt-theme="dark"]) .top .portal-nav .portal-nav-inner > a[data-palette] {
  background:var(--tint) !important;
  border:1px solid var(--edge) !important;
  border-radius:9px;
  color:var(--shade) !important;
}
html[data-qt-interface="refined"]:not([data-qt-theme="dark"]) .top .portal-nav .portal-nav-inner > a[data-palette][aria-current="page"] {
  background:var(--shade) !important;
  border-color:var(--shade) !important;
  color:#fff !important;
}
