/* OnDigital Brand layer, part 1: ground, type, links, focus, corners, elevation,
   and remaps of the compiled Tailwind utilities Perfex uses.
   Values come only from od-tokens.css. Loaded after every Perfex stylesheet. */

/* Page ground and text: artboards 02, 03, 07 */
body {
  font-family: var(--od-font-body);
  font-size: var(--od-ui-size);
  line-height: var(--od-ui-lh);
  color: var(--od-ink);
  background: var(--od-surface-2);
}
#wrapper { background: var(--od-surface-2); }
/* Embeddable public forms sit inside other websites: keep their page ground transparent */
body.ticket_form, body.web-to-lead, body.estimate-request-form { background: transparent; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--od-font-body);
  color: var(--od-ink);
}

/* Links: Core Blue, hover Deep Blue (artboard 02). Element selector, so any class-based colour still wins. */
a { color: var(--od-blue-600); }
a:hover, a:focus { color: var(--od-blue-900); }

/* Focus ring: Core Blue (artboard 02) */
:focus-visible {
  outline: 2px solid var(--od-blue-600);
  outline-offset: 2px;
}

/* Square corners: surfaces only. Dots, pills, avatars and badges stay round. */
.btn, .form-control, .input-group-addon, .input-group-btn > .btn,
.panel, .panel_s, .panel-heading, .panel-body, .panel-footer, .well,
.dropdown-menu, .modal-content, .alert, .popover, .tooltip-inner,
.nav-tabs > li > a, .nav-pills > li > a, .progress, .progress-bar,
.bootstrap-select > .dropdown-toggle, .bootstrap-select .dropdown-menu,
.pagination > li > a, .pagination > li > span, .paginate_button,
.list-group-item, .thumbnail, .label, .select2-container .select2-selection,
.tw-rounded, .tw-rounded-sm, .tw-rounded-md, .tw-rounded-lg, .tw-rounded-xl, .tw-rounded-2xl {
  border-radius: var(--od-radius) !important;
}
.badge { border-radius: var(--od-radius-pill); }

/* Elevation: soft blue-tinted shadows, never heavy borders (artboard 04) */
.panel_s, .panel, .well { border: 0; box-shadow: var(--od-shadow-e1); }
.dropdown-menu { border: 0; box-shadow: var(--od-shadow-e1); }
.modal-content { border: 0; box-shadow: var(--od-shadow-e2); }
.tw-shadow, .tw-shadow-sm, .tw-shadow-md, .tw-shadow-lg { box-shadow: var(--od-shadow-e1); }
#header { background: var(--od-surface-1); box-shadow: none; border-bottom: 1px solid var(--od-line); }

/* Tailwind utility remaps: Perfex greys to the canvas neutrals */
.tw-text-neutral-400, .group:hover .group-hover\:tw-text-neutral-400 { color: var(--od-line-strong); }
.tw-text-neutral-500 { color: var(--od-text-3); }
.tw-text-neutral-600, .group:hover .group-hover\:tw-text-neutral-600,
.hover\:tw-text-neutral-600:hover, .focus\:tw-text-neutral-600:focus { color: var(--od-text-2); }
.tw-text-neutral-700, .hover\:tw-text-neutral-700:hover, .focus\:tw-text-neutral-700:focus { color: var(--od-text-2); }
.tw-text-neutral-800, .group:hover .group-hover\:tw-text-neutral-800,
.hover\:tw-text-neutral-800:hover, .focus\:tw-text-neutral-800:focus { color: var(--od-ink); }
.tw-bg-neutral-50 { background-color: var(--od-surface-1); }
.tw-bg-neutral-100, .hover\:tw-bg-neutral-100:hover { background-color: var(--od-surface-2); }
.hover\:tw-bg-neutral-200:hover { background-color: var(--od-surface-2); }
.tw-border-neutral-300, .tw-border-neutral-300\/80, .tw-border-neutral-600\/20 { border-color: var(--od-line); }
.tw-divide-neutral-300 > :not([hidden]) ~ :not([hidden]) { border-color: var(--od-line); }
.tw-bg-primary-600 { background-color: var(--od-blue-600); }
