/* Novasean House Style 1.0 for WHMCS — Monochrome canon, loaded last.
 *
 * Two jobs, in this order:
 *  1. Re-point the token layer that custom.css and chrome.css installed for the
 *     previous (petrol/blue) palette. WHMCS Nexus resolves its own components
 *     through these same variables, so this single step moves buttons, links,
 *     borders, surfaces and corner radii at once — including native SPA surfaces.
 *  2. Apply the canon's typography and focus treatment, which the variables do
 *     not carry, and pin the few components Nexus hard-codes.
 *
 * Canon (House Style Guide 1.0, Monochrome):
 *   ink #181818 · muted #595959 · rule #D9D9D9 · border #767676
 *   surface #FFFFFF · soft #F5F5F5 · raised #E8E8E8 · accent (single) #C44124
 *   Source Sans 3 · 2px control corners · square cards · focus 2px ink, 3px white halo
 */

:root {
  /* --- Novasean palette variables (custom.css / chrome.css) --- */
  --nova-ink: #181818;
  --nova-muted: #595959;
  --nova-blue: #181818;
  --nova-blue-dark: #000000;
  --nova-navy: #181818;
  --nova-paper: #F5F5F5;
  --nova-white: #FFFFFF;
  --nova-border: #D9D9D9;
  --nova-soft: #F5F5F5;
  --nova-font: 'Source Sans 3', Arial, sans-serif;

  --ns-navy: #181818;
  --ns-ink: #181818;
  --ns-muted: #595959;
  --ns-blue: #181818;
  --ns-blue-dark: #000000;
  --ns-sky: #E8E8E8;
  --ns-paper: #F5F5F5;
  --ns-surface: #FFFFFF;
  --ns-border: #D9D9D9;
  --ns-soft: #F5F5F5;
  --ns-green: #181818;
  --ns-radius: 2px;
  --ns-font: 'Source Sans 3', system-ui, sans-serif;

  /* --- Nexus design tokens --- */
  --white: #FFFFFF;
  --primary-50: #F5F5F5;
  --primary-100: #E8E8E8;
  --primary-200: #D9D9D9;
  --primary-300: #B4B4B4;
  --primary-400: #767676;
  --primary-500: #595959;
  --primary-600: #181818;
  --primary-700: #000000;
  --primary-800: #000000;
  --primary-900: #000000;
  --primary-950: #000000;
  --primary: #181818;
  --primary-lifted: #000000;
  --primary-accented: #000000;
  --secondary: #595959;
  --secondary-lifted: #4A4A4A;
  --secondary-accented: #181818;
  --text: #181818;
  --text-muted: #595959;
  --text-lifted: #595959;
  --text-accented: #181818;
  --text-inverted: #FFFFFF;
  --border-muted: #D9D9D9;
  --border: #D9D9D9;
  --border-lifted: #767676;
  --border-accented: #595959;
  --bg: #FFFFFF;
  --bg-muted: #F5F5F5;
  --bg-lifted: #F5F5F5;
  --bg-accented: #E8E8E8;
  --bg-inverted: #181818;
  --rounding-sm: 2px;
  --rounding-md: 2px;
  --rounding-lg: 2px;
  --letter-spacing: 0;

  /* accent: vermilion stays the only colour, used for emphasis, never as a surface */
  --nova-accent: #C44124;
  --ns-accent: #C44124;
}

/* Typography — canon sets body copy at 1.125rem/1.55 and headings at 650. */
body,
.portal-home,
#body,
.content,
.form-control,
.btn,
.table,
.panel {
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-synthesis: none;
}

body {
  color: #181818;
  background: #FFFFFF;
  font-size: 1.125rem;
  line-height: 1.55;
}

body h1, .panel h1, h1,
html body h1, html body .h1 {
  font-family: 'Source Sans 3', Arial, sans-serif !important;
  font-weight: 650 !important;
  letter-spacing: -.025em;
  line-height: 1.08;
  color: #181818 !important;
}

body h2, h2, html body h2, html body .h2 { font-family: 'Source Sans 3', Arial, sans-serif !important;
  font-weight: 650 !important; letter-spacing: -.02em; line-height: 1.15; color: #181818 !important; }
body h3, h3, html body h3, html body .h3 { font-family: 'Source Sans 3', Arial, sans-serif !important;
  font-weight: 650 !important; color: #181818 !important; }
body h4, h5, h6, html body h4, html body h5, html body h6 { font-family: 'Source Sans 3', Arial, sans-serif !important;
  font-weight: 650 !important; color: #181818 !important; }

/* The order/store template hard-codes the previous look on body-prefixed ids:
   `body #order-standard_cart .header-lined h1 { color:#172f37; font-family:"Novasean Inter" }`. */
body #order-standard_cart .header-lined h1, body #order-standard_cart .sub-heading,
body #main-body .header-lined h1, body .header-lined h1 {
  font-family: 'Source Sans 3', Arial, sans-serif !important;
  color: #181818 !important;
}

/* Links: canon underlines and offsets them; Nexus colours them as primary. */
#body a:not(.btn), .panel-body a:not(.btn), .table a:not(.btn) {
  color: #181818;
  text-decoration: underline;
  text-underline-offset: .2em;
}
#body a:not(.btn):hover, .panel-body a:not(.btn):hover {
  text-decoration-thickness: 2px;
  color: #181818;
}

/* Focus: 2px ink outline with a white halo, on every interactive element. */
:focus-visible,
.btn:focus-visible,
a:focus-visible,
.form-control:focus-visible,
button:focus-visible {
  outline: 2px solid #181818 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 3px #FFFFFF !important;
}

/* Controls: square corners, 1px rules, ink labels.
   custom.css pins 6px on `body #main-body .btn, body #order-standard_cart .btn
   { border-radius:6px !important }`, so the radius override needs the same
   specificity and !important to win. */
.btn, .btn-primary, .btn-default, .btn-secondary, .btn-success, .btn-danger,
.btn-warning, .btn-info, .btn-link, .button,
body #main-body .btn, body #order-standard_cart .btn, body #frmDomainHomepage .btn {
  border-radius: 2px !important;
}
.btn {
  font-weight: 600;
  letter-spacing: 0;
  padding: .625rem 1.25rem;
  box-shadow: none !important;
  text-transform: none !important;
}
.btn-primary {
  background-color: #181818 !important;
  border: 1px solid #181818 !important;
  color: #FFFFFF !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #000000 !important;
  border-color: #000000 !important;
  color: #FFFFFF !important;
}
.btn-default, .btn-secondary, .btn-link {
  background-color: #FFFFFF !important;
  border: 1px solid #181818 !important;
  color: #181818 !important;
  text-decoration: none !important;
}
.btn-default:hover, .btn-secondary:hover {
  background-color: #F5F5F5 !important;
  color: #181818 !important;
}
/* Destructive stays legible without introducing a second colour: vermilion text on white. */
.btn-danger {
  background-color: #FFFFFF !important;
  border: 1px solid #C44124 !important;
  color: #C44124 !important;
}
.btn-danger:hover { background-color: #C44124 !important; color: #FFFFFF !important; }

.form-control, select.form-control, textarea.form-control,
.custom-select, .input-group-text,
body #order-standard_cart .form-control, body #order-standard_cart .custom-select,
body #main-body .form-control {
  border: 1px solid #767676 !important;
  border-radius: 2px !important;
  background: #FFFFFF !important;
  color: #181818 !important;
  font-size: 1rem;
  box-shadow: none !important;
}
.form-control:focus, .custom-select:focus {
  border-color: #181818 !important;
  box-shadow: none !important;
}
label, .control-label, .help-block { color: #181818; }
.help-block, .text-muted, small.text-muted { color: #595959 !important; }

/* Surfaces: no radius, no shadow, rules instead of tinted borders.
   custom.css pins 12px on `.card, .panel, .modal-content` and `.alert`. */
.panel, .card, .well, .modal-content, .dropdown-menu, .list-group-item, .alert {
  border-radius: 2px !important;
  box-shadow: none !important;
  border: 1px solid #D9D9D9;
  background: #FFFFFF;
  color: #181818;
}
/* Body copy that panels and cards inherit was petrol (#172f37) via --nova-ink
   on a body-prefixed selector; pin the inheriting containers to ink. */
.panel, .panel-body, .card, .card-body, .well, .list-group-item,
body #order-standard_cart .panel, body #order-standard_cart .panel-body,
body #main-body .panel, body #main-body .panel-body {
  color: #181818 !important;
}
.panel-heading, .card-header, .modal-header {
  background: #FFFFFF;
  border-bottom: 1px solid #D9D9D9;
  border-radius: 0;
  color: #181818;
  font-weight: 650;
}
.panel-title { font-weight: 650; color: #181818; }
.panel-footer, .modal-footer { background: #FFFFFF; border-top: 1px solid #D9D9D9; border-radius: 0; }
.well, .bg-muted, .table-striped > tbody > tr:nth-of-type(odd) { background: #F5F5F5; }

/* Tables: ink header rule, thin row rules, no zebra tint. */
.table { color: #181818; }
.table > thead > tr > th {
  border-bottom: 1px solid #181818;
  color: #181818;
  font-weight: 650;
  text-transform: none;
  background: #FFFFFF;
}
.table > tbody > tr > td, .table > tbody > tr > th { border-top: 1px solid #D9D9D9; }
.table-striped > tbody > tr:nth-of-type(odd) { background: #FFFFFF; }
.table-hover > tbody > tr:hover { background: #F5F5F5; }

/* Breadcrumb and navigation: plain ink on white, no pill, no tint. */
.breadcrumb {
  background: #FFFFFF;
  border-radius: 0;
  color: #595959;
  padding-inline: 0;
  border-bottom: 1px solid #D9D9D9;
}
.breadcrumb a { color: #595959; text-decoration: underline; text-underline-offset: .2em; }
.breadcrumb > .active { color: #181818; }

.navbar, .navbar-default, .navbar-collapse { background: #FFFFFF; border-color: #D9D9D9; }
.nav-tabs { border-bottom: 1px solid #D9D9D9; }
.nav-tabs > li > a { border-radius: 0; color: #595959; }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
  border: 1px solid #D9D9D9;
  border-bottom-color: #FFFFFF;
  background: #FFFFFF;
  color: #181818;
  font-weight: 650;
}
.dropdown-menu > li > a { color: #181818; }
.dropdown-menu > li > a:hover { background: #F5F5F5; color: #181818; }

/* Status messages: rules and ink, with vermilion reserved for errors. */
.alert { border-radius: 0; border: 1px solid #D9D9D9; border-left: 4px solid #181818;
         background: #F5F5F5; color: #181818; }
.alert-success, .alert-info { border-left-color: #181818; background: #F5F5F5; color: #181818; }
.alert-warning, .alert-danger, .alert-error {
  border-left-color: #C44124; background: #FFFFFF; color: #181818;
}
.label, .badge { border-radius: 0; font-weight: 650; }
.label-primary, .label-info, .badge-primary { background: #181818; color: #FFFFFF; }
.label-success { background: #181818; color: #FFFFFF; }
.label-warning { background: #E8E8E8; color: #181818; }
.label-danger { background: #C44124; color: #FFFFFF; }

/* Sidebar and pagination: ink on white, square. */
.sidebar .list-group-item { border: 0; border-bottom: 1px solid #D9D9D9; background: #FFFFFF; color: #181818; }
.sidebar .list-group-item.active { background: #F5F5F5; color: #181818; font-weight: 650; }
.pagination > li > a, .pagination > li > span { border-radius: 0; border-color: #D9D9D9; color: #181818; }
.pagination > .active > a, .pagination > .active > span {
  background: #181818; border-color: #181818; color: #FFFFFF;
}

/* Footer notes: links must carry the note's own size. On the public site
   `.sc-footer a{font-size:1rem}` makes the two mailto links 16px inside a 13px
   note; the same rule is present in the portal chrome, so pin inheritance here
   too and drop the 44px tap target that belongs to the navigation links. */
.sc-footer-note a, .sc-footer .sc-text-link,
.ns-site-footer .sc-footer-note a {
  font-size: inherit !important;
  min-height: auto !important;
  padding-block: 0 !important;
  display: inline;
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* Chrome (public header/footer shell) — same canon, so it stops looking like a different site. */
.ns-site-header, .ns-site-footer { font-family: 'Source Sans 3', system-ui, sans-serif; }
.ns-site-footer { background: #181818; color: #FFFFFF; border-top: 0; }
.ns-site-footer p, .ns-site-footer a { color: #FFFFFF; }
.ns-site-footer .footer-group h2 { color: #FFFFFF; font-weight: 650; }
