/* Temelix brand layer for the WHMCS client area (theme nexus + order form standard_cart).
   Loaded after the theme by includes/hooks/temelix_brand.php, so it survives WHMCS updates.
   Goal: the same look as temelix.com (tokens copied from the site's resources/css/app.css). */

/* Fonts: same self-hosted files as the site (Fontsource, SIL OFL). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/inter-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('fonts/manrope-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --tx-navy: #0f1e33;
  --tx-navy-light: #1b3252;
  --tx-navy-dark: #091423;
  --tx-orange: #e9691c;
  --tx-orange-hover: #f27f3a;
  --tx-orange-strong: #b84d0c;
  --tx-orange-soft: #fdeee4;
  --tx-blue: #1d5fd1;
  --tx-blue-dark: #174ca8;
  --tx-blue-soft: #e8f0fc;
  --tx-muted: #566072;
  --tx-surface-muted: #f4f6f9;
  --tx-border: #dde2ea;
  --tx-inverted-muted: #c2cbda;
  --tx-shadow-card: 0 1px 2px rgb(15 30 51 / .06), 0 8px 24px rgb(15 30 51 / .06);
  --tx-font: 'Inter', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  --tx-font-display: 'Manrope', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --tx-header-height: 4.5rem;

  /* nexus theme variables (templates/nexus/css/custom.css) mapped to the brand */
  --primary: var(--tx-navy);
  --primary-lifted: var(--tx-navy-light);
  --primary-accented: var(--tx-navy-dark);
  --grayscale: var(--tx-navy);
  --grayscale-lifted: var(--tx-navy-light);
  --grayscale-accented: var(--tx-navy-light);
  --info: var(--tx-blue);
  --info-lifted: var(--tx-blue-dark);
  --info-accented: var(--tx-blue-dark);
  --text: var(--tx-navy);
  --text-accented: var(--tx-muted);
  --text-lifted: var(--tx-muted);
  --text-muted: #8791a3;
  --border-muted: var(--tx-border);
  --border: var(--tx-border);
  --bg-muted: var(--tx-surface-muted);
  --bg-lifted: var(--tx-surface-muted);
  --bg-accented: var(--tx-border);
  --bg-inverted: var(--tx-navy-dark);
  --rounding-sm: .5rem;
  --rounding-md: .75rem;
  --rounding-lg: 1.25rem;
}

body {
  background-color: var(--tx-surface-muted);
  color: var(--tx-navy);
  font-family: var(--tx-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, .h1, .h2, .h3, .card-title {
  color: var(--tx-navy);
  font-family: var(--tx-font-display);
  font-weight: 700;
  line-height: 1.2;
}
h4, h5, h6 { color: var(--tx-navy); }
.btn, .form-control, .custom-select, input, select, textarea, button, .dropdown-menu, .popover, .tooltip {
  font-family: var(--tx-font);
}

a { color: var(--tx-blue); }
a:hover, a:focus { color: var(--tx-blue-dark); }
:focus-visible { outline: 3px solid var(--tx-orange); outline-offset: 2px; }

/* ---------- header: one row, as on temelix.com ---------- */
header.header {
  position: sticky;
  top: 0;
  z-index: 1020;
  border-bottom: 1px solid var(--tx-border);
  background-color: rgb(255 255 255 / .95);
  backdrop-filter: blur(8px);
}
header.header .navbar { min-height: 0; }
header.header > .navbar.navbar-light > .container {
  min-height: var(--tx-header-height);
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
header.header .logo-img { max-height: 30px; width: auto; }
header.header .navbar-nav { gap: .25rem; margin-top: 0; margin-bottom: 0; }
header.header #mainNavbar .navbar-nav > li > a {
  display: block;
  padding: .5rem .75rem;
  border-radius: .5rem;
  color: var(--tx-navy);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}
header.header #mainNavbar .navbar-nav > li > a:hover,
header.header #mainNavbar .navbar-nav > li.show > a { background-color: var(--tx-surface-muted); color: var(--tx-navy); }
header.header #mainNavbar .navbar-nav > li.active > a { background-color: var(--tx-blue-soft); color: var(--tx-blue); }
header.header .dropdown-menu {
  margin-top: .375rem;
  padding: .375rem;
  border: 1px solid var(--tx-border);
  border-radius: .75rem;
  box-shadow: var(--tx-shadow-card);
}
header.header .dropdown-menu .dropdown-item { border-radius: .5rem; color: var(--tx-navy); }
header.header .dropdown-menu li.dropdown-item { padding: 0; }
header.header .dropdown-menu a.dropdown-item { padding: .4rem .75rem !important; font-size: .9375rem; }
header.header .dropdown-menu .dropdown-item:hover,
header.header .dropdown-menu .dropdown-item:focus { background-color: var(--tx-surface-muted); color: var(--tx-navy); }
header.header .dropdown-item.active, header.header .dropdown-item:active { background-color: var(--tx-blue-soft); color: var(--tx-blue); }
header.header .toolbar .nav-link { border-color: var(--tx-border); border-radius: .5rem; color: var(--tx-navy); }
header.header .toolbar .nav-link:hover { background-color: var(--tx-surface-muted); color: var(--tx-navy); }
header.header .cart-btn .badge { background-color: var(--tx-orange); color: var(--tx-navy); }
header.header .search { border-color: var(--tx-border); border-radius: .5rem; }

@media (min-width: 1200px) {
  /* the theme puts logo + search in one bar and the menu in a second one: lay the menu over the first */
  header.header > .navbar.navbar-light .form-inline { display: none !important; }
  header.header > .main-navbar-wrapper {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: var(--tx-header-height);
    pointer-events: none;
  }
  header.header > .main-navbar-wrapper > .container { height: 100%; }
  header.header > .main-navbar-wrapper #mainNavbar { padding-left: 11.5rem; padding-right: 4rem; }
  header.header > .main-navbar-wrapper #mainNavbar > * { pointer-events: auto; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  header.header #mainNavbar .navbar-nav > li > a { padding-inline: .55rem; font-size: .9375rem; }
}
@media (max-width: 1199.98px) {
  header.header #mainNavbar { padding-bottom: .75rem; }
}

/* ---------- page frame ---------- */
.master-breadcrumb { background-color: transparent; border-bottom: 1px solid var(--tx-border); }
.master-breadcrumb .breadcrumb { background-color: transparent; color: var(--tx-muted); }
.master-breadcrumb .breadcrumb a { color: var(--tx-blue); }
.master-breadcrumb .breadcrumb:empty { padding: 0; }
.master-breadcrumb:has(.breadcrumb:empty) { border-bottom: 0; }
@media (min-width: 1400px) { .container { max-width: 1280px; } }

/* ---------- buttons: orange call to action with navy text, as on the site ---------- */
.btn { border-radius: .5rem; font-weight: 600; }
.btn-primary, .btn-success, .btn-checkout,
body #order-standard_cart .btn-primary, #order-standard_cart .btn-success, #order-standard_cart .btn-order-now,
body #order-standard_cart .btn-checkout {
  background-color: var(--tx-orange); border-color: var(--tx-orange); color: var(--tx-navy);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary:not(:disabled):not(.disabled):active,
.btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success:not(:disabled):not(.disabled):active,
.btn-checkout:hover,
body #order-standard_cart .btn-primary:hover, #order-standard_cart .btn-success:hover,
body #order-standard_cart .btn-order-now:hover, #order-standard_cart .btn-checkout:hover {
  background-color: var(--tx-orange-hover); border-color: var(--tx-orange-hover); color: var(--tx-navy);
}
.btn-primary:focus, .btn-success:focus { box-shadow: 0 0 0 .2rem rgb(233 105 28 / .3); }
.btn-primary.disabled, .btn-primary:disabled, .btn-success.disabled, .btn-success:disabled {
  background-color: var(--tx-orange); border-color: var(--tx-orange); color: var(--tx-navy);
}
.btn-outline-primary { color: var(--tx-navy); border-color: var(--tx-navy); }
.btn-outline-primary:hover { background-color: var(--tx-navy); border-color: var(--tx-navy); color: #fff; }
.btn-default, .btn-secondary { border-color: var(--tx-border); }
.btn-link { color: var(--tx-blue); font-weight: 500; }

/* ---------- cards, panels, forms ---------- */
.card, .panel {
  border: 1px solid var(--tx-border);
  border-radius: .75rem;
  box-shadow: var(--tx-shadow-card);
}
.card > .card-header:first-child, .panel > .panel-heading:first-child { border-radius: .75rem .75rem 0 0; }
.card > .card-footer:last-child, .card > .list-group:last-child { border-radius: 0 0 .75rem .75rem; }
.card-header, .panel-heading { background-color: #fff; border-bottom-color: var(--tx-border); }
.card-footer { background-color: var(--tx-surface-muted); border-top-color: var(--tx-border); }
.card-sidebar .card-title, .panel-sidebar .panel-title { font-family: var(--tx-font-display); font-weight: 700; font-size: 1rem; }
.card-sidebar .list-group-item.active, .panel-sidebar .list-group-item.active,
.list-group-item.active {
  background-color: var(--tx-blue-soft); border-color: var(--tx-border); color: var(--tx-blue);
}
.card-sidebar .list-group-item.active i, .list-group-item.active i { color: var(--tx-blue); }
.form-control, .custom-select { border-color: var(--tx-border); border-radius: .5rem; color: var(--tx-navy); }
.input-group > .form-control:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-text { background-color: var(--tx-surface-muted); border-color: var(--tx-border); color: var(--tx-muted); }
.form-control:focus, .custom-select:focus { border-color: var(--tx-blue); box-shadow: 0 0 0 .2rem rgb(29 95 209 / .18); }
.custom-control-input:checked ~ .custom-control-label::before { background-color: var(--tx-blue); border-color: var(--tx-blue); }
.bg-primary, .modal-header.bg-primary { background-color: var(--tx-navy) !important; }
.text-primary { color: var(--tx-blue) !important; }
.badge-info { background-color: var(--tx-blue); }
.page-item.active .page-link { background-color: var(--tx-blue); border-color: var(--tx-blue); }
.nav-pills .nav-link.active, .dropdown-item:active { background-color: var(--tx-blue); border-color: var(--tx-blue); }
.modal-content { border: 0; border-radius: 1.25rem; box-shadow: 0 16px 40px rgb(15 30 51 / .2); }
.text-muted { color: var(--tx-muted) !important; }

/* ---------- order form (standard_cart) ---------- */
body #order-standard_cart .header-lined { border-bottom: 0; margin-bottom: 1rem; }
body #order-standard_cart .header-lined h1 { font-size: 2rem; font-weight: 700; }
html body #order-standard_cart .cart-body .products .product {
  display: flex;
  flex-direction: column;
  height: calc(100% - 1.5rem);
  margin-bottom: 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--tx-border);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: var(--tx-shadow-card);
}
html body #order-standard_cart .cart-body .products .product header { margin: 0 0 .75rem; padding: 0; background: none; }
html body #order-standard_cart .cart-body .products .product header span {
  color: var(--tx-navy); font-family: var(--tx-font-display); font-size: 1.375rem; font-weight: 700;
}
html body #order-standard_cart .cart-body .products .product div.product-desc {
  float: none; width: auto; flex: 1; padding: 0; color: var(--tx-muted); font-size: .9375rem; line-height: 1.9;
}
html body #order-standard_cart .cart-body .products .product footer {
  float: none; width: auto; margin: 1.25rem 0 0; padding: 0; color: var(--tx-muted); font-size: .875rem; text-align: left;
}
html body #order-standard_cart .cart-body .products .product div.product-pricing { margin-bottom: 1rem; }
html body #order-standard_cart .cart-body .products .product div.product-pricing span.price {
  color: var(--tx-navy); font-family: var(--tx-font-display); font-size: 2rem; font-weight: 800;
}
html body #order-standard_cart .cart-body .products .product .btn-order-now {
  display: block; padding: .75rem 1.5rem; font-size: 1rem;
}
body #order-standard_cart .view-cart-items-header,
body #order-standard_cart .order-summary h2 { background-color: var(--tx-navy); }
body #order-standard_cart .order-summary { border-color: var(--tx-navy); background-color: #fff; border-radius: .75rem; overflow: hidden; }
body #order-standard_cart .sub-heading span, #order-standard_cart .sub-heading-borderless span { background-color: var(--tx-surface-muted); color: var(--tx-navy); }

/* domain search banner: navy instead of the theme's yellow */
body .domain-checker-container {
  border-radius: 1.25rem;
  background: linear-gradient(120deg, var(--tx-navy-dark), var(--tx-navy) 45%, var(--tx-navy-light));
}
body .domain-checker-bg { background-image: none; }
body .domain-checker-container .input-group-box { border-radius: .75rem; }
body #order-standard_cart .domain-pricing .tld-pricing-header .col-sm-2,
body #order-standard_cart .domain-pricing .tld-pricing-header .col-xs-2,
body #order-standard_cart .domain-pricing .tld-pricing-header .col-xs-4 { border-color: var(--tx-navy); }
body #order-standard_cart .domain-pricing .tld-row.highlighted,
body #order-standard_cart .domain-pricing .tld-row:nth-child(even) { background-color: var(--tx-surface-muted); }
body #order-standard_cart .tld-filters a.badge { border-radius: 999px; padding: .4em .8em; }
body #order-standard_cart .tld-filters a.badge-success { background-color: var(--tx-blue-soft); color: var(--tx-blue); }

/* ---------- footer ---------- */
footer.footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgb(255 255 255 / .06);
  background-color: var(--tx-navy-dark);
  color: var(--tx-inverted-muted);
  font-size: .9375rem;
}
footer.footer .nav-link { color: var(--tx-inverted-muted); }
footer.footer .nav-link:hover { color: var(--tx-orange); }
footer.footer .btn { background-color: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .2); color: #fff; font-weight: 500; }
footer.footer .btn:hover { border-color: #fff; background-color: rgb(255 255 255 / .12); }
footer.footer .copyright { color: var(--tx-inverted-muted); font-size: .875rem; }

/* site footer block added by the hook (moved into footer.footer by its script) */
.tx-footer { background-color: var(--tx-navy-dark); color: var(--tx-inverted-muted); font-size: .9375rem; line-height: 1.6; }
footer.footer .tx-footer { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgb(255 255 255 / .1); }
body > .tx-footer { padding: 2.5rem 15px; }
.tx-footer-inner { display: grid; gap: 2.5rem; }
@media (min-width: 992px) { .tx-footer-inner { grid-template-columns: 1.5fr 3fr; gap: 3rem; } }
.tx-footer-logo img { display: block; width: auto; height: 30px; }
.tx-footer-text { max-width: 20rem; margin: 1rem 0 0; }
.tx-footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 1.5rem 2rem; }
.tx-footer-title { margin: 0 0 1rem; color: #fff; font-family: var(--tx-font-display); font-size: 1rem; font-weight: 700; }
.tx-footer-list { display: flex; flex-direction: column; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tx-footer a { color: inherit; text-decoration: none; }
.tx-footer a:hover { color: var(--tx-orange); }

/* the order form stylesheet is loaded after this file: make the call-to-action colours stick */
body .btn-primary, body .btn-success, body .btn-checkout, body #order-standard_cart .btn-order-now {
  background-color: var(--tx-orange) !important; border-color: var(--tx-orange) !important; color: var(--tx-navy) !important;
}
body .btn-primary:hover, body .btn-success:hover, body .btn-checkout:hover, body #order-standard_cart .btn-order-now:hover {
  background-color: var(--tx-orange-hover) !important; border-color: var(--tx-orange-hover) !important;
}
html body #order-standard_cart .cart-body .products .product header { border: 0; }
html body #order-standard_cart .cart-body .products .product .btn-order-now i { display: none; }
body #order-standard_cart .tld-filters a.badge-success,
body #order-standard_cart .tld-filters a.badge-success:hover { background-color: var(--tx-navy) !important; color: #fff !important; }

/* language button: English carries the EU flag, as on the site */
.iti-flag.us, .iti-flag.gb {
  width: 21px; height: 14px; border-radius: 2px;
  background: url('flag-eu.svg') center / cover no-repeat !important;
}
/* home page tiles of the pages left out of the menu */
.col-6:has(> a[href*="announcements"]), .col-6:has(> a[href*="serverstatus.php"]),
.col-6:has(> a[href*="knowledgebase"]), .col-6:has(> a[href*="/download"]) { display: none !important; }

/* greeting with a long company name must not run under the cart button */
header.header #mainNavbar #Secondary_Navbar-Account > a {
  display: inline-block; max-width: 11.5rem; margin-right: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle;
}
/* "what you use" list on the client home page */
.tx-uses th { border-top: 0; color: var(--tx-muted); font-size: .8125rem; font-weight: 600; }
.tx-uses td, .tx-uses th { padding: .6rem .75rem; vertical-align: middle; }

/* Sitejet Builder is not offered for now (user decision 2026-11-30): hide its buttons; the home panel is removed by the hook */
[data-identifier="sitejet"], .btn-group:has(> [data-identifier="sitejet"]:only-child) { display: none !important; }
