/* ==========================================================================
   Education Host — HostBill client-area skin (theme: educationhost-2026)
   ==========================================================================
   Loaded AFTER templates/<theme>/dist/css/app.min.css (stock HostBill "2019"
   template, Bootstrap 4). This file re-skins the stock template to match the
   Education Host marketing site (educationhost.co.uk) design system.

   Contents
     1.  Fonts        — self-hosted Inter (no external requests)
     2.  Tokens       — design tokens as CSS custom properties
     3.  Base         — background, typography, links, focus, selection
     4.  Layout shell — content max-width, overflow safety, spacing
     5.  Header       — fixed top navbar, search, Order CTA, dropdowns
     6.  Sub-bar      — light mobile secondary bar (d-lg-none)
     7.  Sidebar      — navy panel, nav states, headings, JS website link
     8.  Dashboard    — portal-home root-box tiles (grid, no overflow)
     8B. Portal home  — eh-hero / eh-actions / eh-support-strip / eh-edu-card
                        (markup from tpl/overrides/root.tpl)
     8C. Client dash  — eh-quick-actions strip + info-box panels
                        (markup from tpl/overrides/clientarea/dashboard.tpl)
     9.  Cards        — generic card chrome
     10. Buttons
     11. Forms
     12. Tables
     13. Badges & status labels
     14. Alerts
     15. Chrome       — breadcrumbs, pagination, modals, progress, misc
     16. Auth         — login / register / password reset
     17. Footer       — light portal footer aligned with content
     18. Utilities    — Bootstrap utility re-mapping
     19. Responsive   — QA passes for 1440 / 1366 / 1024 / 768 / 390
     20. Print

   No HostBill structure or behaviour is changed: selectors only re-paint the
   stock DOM (colours, type, radii, shadows, spacing, and a CSS-grid layout
   for the decorative portal-home tiles). Forms, hidden inputs, CSRF tokens,
   captchas, payment/order flows and modules keep working as shipped.

   Known stock rules this file corrects (from dist/css/app.min.css):
   - .root-boxes is "row card-deck" and its tiles are "col-md-4 card":
     col-md-4 forces flex-basis 33.333% while card-deck adds ±.625rem side
     margins per card → 3 tiles exceed 100% → horizontal scroll. Fixed by
     re-laying the container out as CSS grid and neutralising the margins.
   - .navbar-search .input-group is width:100%/height:100% → a giant search
     slab filling the whole 72px navbar. Fixed by constraining it to a
     compact 40px pill.
   - body .footer-content .footer{max-width:1400px!important;margin:20px auto}
     made the navy-painted footer float as a box. Restyled as a light footer
     that aligns with the content column.
   - Bootstrap .row pulls −15px while .section-main only pads 10px below
     994px → guaranteed overflow on tablets/phones. Padding raised to 16px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTS — self-hosted Inter (variable). No external font requests.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  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-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. TOKENS — mirrors the marketing site's globals.css
   -------------------------------------------------------------------------- */
:root {
  /* navy scale (header/sidebar) */
  --eh-navy-950: #060a12;
  --eh-navy-900: #0a0f1a;
  --eh-navy-800: #0d1424;
  --eh-navy-700: #111a2e;
  /* brand blue */
  --eh-brand-50: #eef5ff;
  --eh-brand-100: #d9e8ff;
  --eh-brand-300: #84b2ff;
  --eh-brand-400: #4f8bfb;
  --eh-brand-500: #2563eb;
  --eh-brand-600: #1d4fd8;
  --eh-brand-700: #1a40b0;
  /* accents — green is reserved for the Order CTA */
  --eh-orange: #f36f21;
  --eh-orange-dark: #d85d12;
  --eh-green: #2fbf71;
  --eh-green-dark: #219a58;
  /* ink (text) scale */
  --eh-ink-900: #0b1220;
  --eh-ink-700: #2b3648;
  --eh-ink-500: #5b6678;
  --eh-ink-300: #9aa4b4;
  /* surfaces & lines */
  --eh-page-bg: #f4f6fa;
  --eh-line: #e4e9f2;
  --eh-line-soft: #edf1f7;
  --eh-border-card: rgba(11, 18, 32, 0.07);
  /* shape */
  --eh-radius-card: 0.875rem;
  --eh-radius-btn: 0.5rem;
  --eh-shadow-card: 0 1px 2px rgba(11, 18, 32, 0.04),
    0 10px 28px -14px rgba(11, 18, 32, 0.12);
  --eh-shadow-card-hover: 0 2px 4px rgba(11, 18, 32, 0.05),
    0 20px 44px -16px rgba(11, 18, 32, 0.18);
  /* layout */
  --eh-content-max: 1160px; /* stock forces 1400px!important — too sparse */
  --eh-nav-h: 72px; /* stock fixed navbar height */
  /* re-point Bootstrap's informational custom properties too */
  --primary: #2563eb;
  --blue: #2563eb;
}

/* --------------------------------------------------------------------------
   3. BASE — page background, typography, links, focus, selection
   -------------------------------------------------------------------------- */
/* Stock template forces "Rubik ... !important" on body/headings/tooltips,
   so the font swap needs !important too. */
body.template_2019 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif !important;
  color: var(--eh-ink-900);
  background-color: var(--eh-page-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.template_2019 h1,
.template_2019 h2,
.template_2019 h3,
.template_2019 h4,
.template_2019 h5,
.template_2019 h6,
.template_2019 .h1,
.template_2019 .h2,
.template_2019 .h3,
.template_2019 .h4,
.template_2019 .h5,
.template_2019 .h6 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif !important;
  color: var(--eh-ink-900);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Calmer heading scale inside the content column (stock is oversized) */
.template_2019 .section-main h1 { font-size: 1.75rem; }
.template_2019 .section-main h2 { font-size: 1.375rem; }
.template_2019 .section-main h3 { font-size: 1.1875rem; }

.template_2019 .tooltip,
.template_2019 .popover {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif !important;
}

.template_2019 a {
  color: var(--eh-brand-600);
}
.template_2019 a:hover {
  color: var(--eh-brand-700);
}

.template_2019 ::selection {
  background: var(--eh-brand-100);
  color: var(--eh-ink-900);
}

/* Visible keyboard focus everywhere (matches marketing site) */
.template_2019 :focus-visible {
  outline: 2px solid var(--eh-brand-400);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .template_2019 *,
  .template_2019 *::before,
  .template_2019 *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Page loader (brand-coloured) */
.pageloader-wrapper {
  background-color: var(--eh-page-bg);
}
.pageloader-wrapper .pageloader-item .pageloader-layer:nth-of-type(1):before {
  background: rgba(37, 99, 235, 0.85);
}
.pageloader-wrapper .pageloader-item .pageloader-layer:nth-of-type(2):before {
  background: rgba(79, 139, 251, 0.75);
}
.pageloader-wrapper .pageloader-item .pageloader-layer:nth-of-type(3):before {
  background: rgba(26, 64, 176, 0.9);
}

/* --------------------------------------------------------------------------
   4. LAYOUT SHELL — content width, overflow safety, breathing room
   -------------------------------------------------------------------------- */
/* Safety net: nothing inside the content column may push the page sideways.
   overflow-x:clip (unlike hidden) does not create a scroll container and
   leaves vertical overflow/position:fixed children alone. */
.template_2019 .body-content {
  overflow-x: clip;
}

/* Contained, centred content column. Stock forces 1400px!important, which
   reads as sparse; 1160px keeps tables comfortable and cards balanced. */
body.template_2019 .body-content .section-main {
  max-width: var(--eh-content-max) !important;
}
@media (min-width: 994px) {
  body.template_2019 .body-content .section-main {
    margin: calc(var(--eh-nav-h) + 28px) auto 8px;
    padding: 12px 32px 40px;
  }
}
/* Below 994px stock pads .section-main only 10px while Bootstrap rows pull
   −15px → guaranteed 5px horizontal overflow. 16px covers the pull. */
@media (max-width: 993px) {
  body.template_2019 .body-content .section-main {
    padding: 16px;
    margin: 0 auto 16px;
  }
}

/* Portal home: stock leaves an empty #tweets.my-5 block that adds ~6rem of
   dead whitespace — hide it when empty. */
.template_2019 .section-main #tweets:empty {
  display: none;
}

/* --------------------------------------------------------------------------
   5. HEADER — fixed top navbar (navy, like the marketing site)
   NOTE: dark styles are scoped to .navbar.fixed-top so the light mobile
   .navbar.sub-bar (also .navbar-body/.navbar-menu inside) is not affected.
   -------------------------------------------------------------------------- */
.template_2019 .navbar.fixed-top {
  background-color: var(--eh-navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -18px rgba(6, 10, 18, 0.6);
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .template_2019 .navbar.fixed-top {
    background-color: rgba(10, 15, 26, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

/* Left block (logo zone matches the 250px sidebar) and middle body both show
   the navbar's navy through — one seamless bar instead of stock's grey+white */
.template_2019 .navbar.fixed-top .navbar-left,
.template_2019 .navbar.fixed-top .navbar-body {
  background-color: transparent;
  border-bottom: 0;
}

/* Brand logo (image is swapped for the Education Host wordmark). Stock
   constrains the anchor to 80% height with overflow hidden. */
.template_2019 .navbar.fixed-top .navbar-left .navbar-brand {
  display: flex;
  align-items: center;
  height: auto;
  overflow: visible;
}
.template_2019 .navbar.fixed-top .navbar-brand img {
  height: 30px;
  max-height: none;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* Hamburger / mobile icon buttons in the navbar */
.template_2019 .navbar.fixed-top .navbar-left .btn-left-navbar {
  color: rgba(255, 255, 255, 0.75);
}
.template_2019 .navbar.fixed-top .navbar-left .btn-left-navbar:hover,
.template_2019 .navbar.fixed-top .navbar-left .btn-left-navbar:active {
  color: #fff;
}

/* Desktop with sidebar collapsed: stock turns the 72px left block white —
   keep it navy so the bar stays seamless. */
@media (min-width: 994px) {
  .template_2019 .sidenav-toggled .navbar.fixed-top .navbar-left {
    background-color: transparent;
    border-bottom: 0;
  }
  .template_2019 .sidenav-toggled .navbar.fixed-top .navbar-left .btn-toggler {
    color: rgba(255, 255, 255, 0.75);
  }
  .template_2019 .sidenav-toggled .navbar.fixed-top .navbar-left .btn-toggler:hover,
  .template_2019 .sidenav-toggled .navbar.fixed-top .navbar-left .btn-toggler:active {
    color: #fff;
  }
}

/* Search: stock stretches .input-group to 100%×100% of the 72px bar (the
   "huge dark blob"). Constrain it to a compact, quiet 40px field. */
.template_2019 .navbar.fixed-top .navbar-body .navbar-search {
  display: flex;
  align-items: center;
  height: 100%;
  padding-right: 1rem;
}
.template_2019 .navbar.fixed-top .navbar-body .navbar-search .input-group {
  height: 40px;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.625rem;
  overflow: visible; /* keep the results dropdown visible */
  transition: background-color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.template_2019 .navbar.fixed-top .navbar-body .navbar-search .input-group:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--eh-brand-400);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}
.template_2019 .navbar.fixed-top .navbar-body .navbar-search .input-group input,
.template_2019 .navbar.fixed-top .navbar-body .navbar-search .input-group input:active,
.template_2019 .navbar.fixed-top .navbar-body .navbar-search .input-group input:focus,
.template_2019 .navbar.fixed-top .navbar-body .navbar-search .input-group input:hover {
  background: transparent;
  color: #fff;
  caret-color: #fff;
  font-size: 0.875rem;
}
.template_2019 .navbar.fixed-top .navbar-body .navbar-search .input-group input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.template_2019
  .navbar.fixed-top
  .navbar-body
  .navbar-search
  .input-group
  .input-icon-placeholder
  .input-group-text {
  background: transparent;
  color: rgba(255, 255, 255, 0.5) !important;
  padding: 0 4px 0 14px !important;
}
.template_2019 .navbar.fixed-top .navbar-body .navbar-search .input-group .input-icon-placeholder .input-group-text .material-icons {
  font-size: 20px;
}

/* Search results panel (anchored to the compact field) */
.template_2019 .navbar.fixed-top .navbar-search-results {
  margin: 6px 0 0;
  min-width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--eh-border-card);
  box-shadow: var(--eh-shadow-card-hover);
}

/* "Order" CTA — the one green action in the header */
.template_2019 .navbar .navbar-order .btn-success {
  background-color: var(--eh-green);
  border-color: var(--eh-green);
  color: #fff;
  font-weight: 600;
  border-radius: 0.625rem;
  padding: 0.5rem 1.15rem;
  box-shadow: 0 8px 18px -8px rgba(47, 191, 113, 0.65);
}
.template_2019 .navbar .navbar-order .btn-success:hover,
.template_2019 .navbar .navbar-order .btn-success:focus {
  background-color: var(--eh-green-dark);
  border-color: var(--eh-green-dark);
}

/* Icon/menu links (cart, login/user) — quiet on navy, no stock borders */
.template_2019 .navbar.fixed-top .navbar-body .navbar-menu .nav-link {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}
.template_2019 .navbar.fixed-top .navbar-body .navbar-menu .nav-link:hover,
.template_2019 .navbar.fixed-top .navbar-body .navbar-menu .nav-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  opacity: 1;
}
.template_2019 .navbar .eh-nav-website small {
  color: inherit;
}

/* Dropdown panels (order mega-menu, cart, user, search results) */
.template_2019 .dropdown-menu {
  border: 1px solid var(--eh-border-card);
  border-radius: 0.75rem;
  box-shadow: var(--eh-shadow-card-hover);
  color: var(--eh-ink-700);
}
.template_2019 .dropdown-item:hover,
.template_2019 .dropdown-item:focus {
  background-color: var(--eh-brand-50);
  color: var(--eh-brand-700);
}
.template_2019 .navbar-dropdown-item {
  color: var(--eh-ink-700);
  border-radius: 0.5rem;
}
.template_2019 .navbar-dropdown-item:hover,
.template_2019 .navbar-dropdown-item:focus {
  color: var(--eh-brand-700);
  background-color: var(--eh-brand-50);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   6. SUB-BAR — the light secondary bar shown under the navbar on <lg screens
   -------------------------------------------------------------------------- */
.template_2019 .navbar.sub-bar {
  background-color: #fff !important;
  border-bottom: 1px solid var(--eh-line);
  box-shadow: 0 2px 8px rgba(11, 18, 32, 0.05);
}
.template_2019 .navbar.sub-bar .navbar-menu .nav-link {
  color: var(--eh-ink-500);
  background: transparent;
}
/* Extra .navbar-body hop so this outranks stock's
   .navbar .navbar-body .navbar-menu .nav-link:hover:not(.active,.disabled) */
.template_2019 .navbar.sub-bar .navbar-body .navbar-menu .nav-link:hover:not(.active, .disabled),
.template_2019 .navbar.sub-bar .navbar-body .navbar-menu .nav-link:focus:not(.active, .disabled) {
  color: var(--eh-brand-600);
  background: transparent;
  opacity: 1;
}
.template_2019 .navbar.sub-bar .navbar-search .input-group input {
  color: var(--eh-ink-900);
}
.template_2019 .navbar.sub-bar .navbar-search .input-group input::placeholder {
  color: var(--eh-ink-300);
}

/* --------------------------------------------------------------------------
   7. SIDEBAR — dark navy panel, blue-tinted hover, clear active state
   -------------------------------------------------------------------------- */
.template_2019 .sidebar {
  background-color: var(--eh-navy-800);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.template_2019 .sidebar .sidebar-wrap {
  padding-bottom: 2rem;
}
/* Subtle scrollbar on the nav column (WebKit) */
.template_2019 .sidebar .sidebar-wrap::-webkit-scrollbar {
  width: 8px;
}
.template_2019 .sidebar .sidebar-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}
.template_2019 .sidebar .sidebar-wrap::-webkit-scrollbar-track {
  background: transparent;
}

/* Group headings — small caps, aligned with the nav-link text (utilities on
   the element are !important, so these must be too) */
.template_2019 .sidebar .sidebar-heading,
.template_2019 .sidebar .sidebar-heading span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.template_2019 .sidebar .sidebar-heading {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  margin-top: 1.75rem !important;
  margin-bottom: 0.375rem !important;
}

/* Nav items */
.template_2019 .sidebar .nav-item > .nav-link {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 0.75rem;
  margin: 2px 12px;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.template_2019 .sidebar .nav-item > .nav-link > .material-icons {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.15s ease;
}
.template_2019 .sidebar .nav-item > .nav-link:hover:not(.active),
.template_2019 .sidebar .nav-item > .nav-link:focus:not(.active) {
  background-color: rgba(37, 99, 235, 0.16); /* subtle blue tint */
  color: #fff;
}
.template_2019 .sidebar .nav-item > .nav-link:hover:not(.active) > .material-icons,
.template_2019 .sidebar .nav-item > .nav-link:focus:not(.active) > .material-icons {
  color: var(--eh-brand-300);
}
.template_2019 .sidebar .nav-item > .nav-link.active,
.template_2019 .sidebar .nav-pills .show > .nav-link {
  color: #fff;
  background-color: var(--eh-brand-500);
  box-shadow: 0 6px 14px -6px rgba(37, 99, 235, 0.6);
}
.template_2019 .sidebar .nav-item > .nav-link.active .material-icons {
  color: #fff;
}

/* Accordion/section rows some HostBill pages add inside the sidebar */
.template_2019 .sidebar .nav-item.nav-item-head .nav-link,
.template_2019 .sidebar .nav-item > .nav-link.nav-link-dropdown:not(.collapsed) {
  background-color: var(--eh-navy-700);
  color: rgba(255, 255, 255, 0.85);
}
.template_2019 .sidebar .nav-item .nav-subnav {
  background-color: var(--eh-navy-900);
}
.template_2019 .sidebar .nav-item .nav-subnav .nav-item > .nav-link {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.6);
}
.template_2019 .sidebar .nav-item .nav-subnav .nav-item > .nav-link:hover:not(.active),
.template_2019 .sidebar .nav-item .nav-subnav .nav-item > .nav-link:focus:not(.active) {
  background-color: rgba(37, 99, 235, 0.14);
  color: #fff;
}
.template_2019 .sidebar .nav-item .nav-subnav .nav-item > .nav-link.active {
  background-color: var(--eh-brand-500);
  color: #fff;
}
.template_2019 .sidebar .nav-link.nav-link-add {
  color: rgba(255, 255, 255, 0.72);
}
.template_2019 .sidebar .nav-link.nav-link-add:hover:not(.active, .disabled) {
  background-color: rgba(37, 99, 235, 0.16) !important;
  color: #fff;
}

/* "Education Host website" link appended by the theme JS — native look with
   a soft separator so it reads as part of the Help group */
.template_2019 .sidebar .nav-item.eh-nav-website {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   8. DASHBOARD — portal-home shortcut tiles (.root-boxes)
   Stock markup is "section.row.card-deck > a.col-md-4.card.root-box…": the
   col-* flex-basis plus card-deck margins overflow the row (third tile cut
   off, horizontal scrollbar). Re-lay the container out as CSS grid and
   neutralise the col/card-deck/utility geometry on the tiles.
   -------------------------------------------------------------------------- */
.template_2019 .section-main .root-boxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0.5rem 0 3rem !important; /* replaces .row pulls + .my-5 */
}
.template_2019 .section-main .root-boxes .root-box {
  flex: none;
  width: auto;
  max-width: none; /* col-md-4 sets max-width:33.333% */
  min-width: 0;
  height: auto;
  min-height: 190px;
  margin: 0 !important; /* card-deck ±.625rem margins + .mb-3 */
  padding: 2rem 1.5rem;
  background-color: #fff;
  border: 1px solid var(--eh-border-card);
  border-radius: var(--eh-radius-card);
  box-shadow: var(--eh-shadow-card);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.template_2019 .section-main .root-boxes .root-box:hover,
.template_2019 .section-main .root-boxes .root-box:focus {
  transform: translateY(-3px);
  box-shadow: var(--eh-shadow-card-hover);
  border-color: var(--eh-brand-300) !important; /* stock uses !important */
  text-decoration: none;
}

/* Icon in a tinted tile instead of a bare 48px glyph */
.template_2019 .root-boxes .root-box .material-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 26px;
  color: var(--eh-brand-600);
  background-color: var(--eh-brand-50);
  border: 1px solid var(--eh-brand-100);
  border-radius: 1rem;
  margin-bottom: 1.1rem !important; /* .mb-4 utility */
  transition: transform 0.18s ease;
}
.template_2019 .root-boxes .root-box:hover .material-icons {
  transform: scale(1.06);
}

/* Title + always-visible caption (stock hides the caption until hover and
   shifts everything up, which read as jumpy) */
.template_2019 .root-boxes .root-box h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--eh-ink-900);
  margin-bottom: 0.25rem;
}
.template_2019 .root-boxes .root-box span {
  opacity: 1;
  top: 0;
  font-size: 0.8125rem;
  color: var(--eh-ink-500);
}
.template_2019 .root-boxes .root-box:hover h4,
.template_2019 .root-boxes .root-box:hover span {
  top: 0;
}

/* Portal-home heading above the tiles (utility .my-5 is !important).
   Only applies if the root.tpl override is absent (fallback styling). */
.template_2019 .section-main > h1.text-center.my-5 {
  margin: 2.25rem auto 1.5rem !important;
  font-size: 1.75rem;
}

/* --------------------------------------------------------------------------
   8B. PORTAL HOME — redesigned landing (tpl/overrides/root.tpl)
   Hero panel, action cards, support strip and the education positioning
   card. All classes are eh-* (no stock collisions); pure CSS + gradients,
   no image or font requests.
   -------------------------------------------------------------------------- */
/* Hero — navy brand panel with soft blue/green light accents */
.template_2019 .eh-hero {
  position: relative;
  overflow: hidden;
  margin: 0.5rem 0 1.5rem;
  padding: 3.25rem 3rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(640px 320px at 85% -20%, rgba(37, 99, 235, 0.4), transparent 60%),
    radial-gradient(520px 280px at 108% 85%, rgba(47, 191, 113, 0.15), transparent 60%),
    linear-gradient(135deg, var(--eh-navy-900), var(--eh-navy-800) 55%, #142138);
  box-shadow: 0 24px 60px -24px rgba(6, 10, 18, 0.5);
  color: #fff;
}
.template_2019 .eh-hero-inner {
  max-width: 720px;
}
.template_2019 .eh-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eh-brand-300);
  margin-bottom: 0.75rem;
}
.template_2019 .section-main .eh-hero-title {
  color: #fff;
  font-size: 2.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.template_2019 .eh-hero-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 0;
}
.template_2019 .eh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.template_2019 .eh-hero-actions .eh-hero-cta {
  padding: 0.65rem 1.5rem;
  box-shadow: 0 10px 24px -10px rgba(47, 191, 113, 0.7);
}
.template_2019 .eh-hero-actions .eh-hero-cta-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.65rem 1.5rem;
}
.template_2019 .eh-hero-actions .eh-hero-cta-secondary:hover,
.template_2019 .eh-hero-actions .eh-hero-cta-secondary:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}
.template_2019 .eh-hero-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--eh-brand-300);
}
.template_2019 .eh-hero-link:hover,
.template_2019 .eh-hero-link:focus {
  color: #fff;
  text-decoration: none;
}

/* Action cards — 4-up premium navigation tiles */
.template_2019 .eh-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
}
.template_2019 .eh-action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--eh-border-card);
  border-radius: var(--eh-radius-card);
  box-shadow: var(--eh-shadow-card);
  padding: 1.5rem 1.5rem 1.4rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.template_2019 .eh-action-card:hover,
.template_2019 .eh-action-card:focus {
  transform: translateY(-3px);
  border-color: var(--eh-brand-300);
  box-shadow: var(--eh-shadow-card-hover);
  text-decoration: none;
}
.template_2019 .eh-action-card .material-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 23px;
  color: var(--eh-brand-600);
  background: var(--eh-brand-50);
  border: 1px solid var(--eh-brand-100);
  border-radius: 0.875rem;
  margin-bottom: 0.9rem;
}
.template_2019 .eh-action-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--eh-ink-900);
  margin-bottom: 0.25rem;
}
.template_2019 .eh-action-card span {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--eh-ink-500);
}
.template_2019 .eh-action-card .eh-action-go {
  position: absolute;
  top: 1.5rem;
  right: 1.25rem;
  font-style: normal;
  font-weight: 600;
  color: var(--eh-brand-500);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.template_2019 .eh-action-card:hover .eh-action-go,
.template_2019 .eh-action-card:focus .eh-action-go {
  opacity: 1;
  transform: none;
}

/* Support strip — "Need help with your hosting?" */
.template_2019 .eh-support-strip {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid var(--eh-border-card);
  border-radius: var(--eh-radius-card);
  box-shadow: var(--eh-shadow-card);
  padding: 1.5rem 1.75rem;
  margin: 0 0 1.5rem;
}
.template_2019 .eh-support-strip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--eh-brand-50);
  border: 1px solid var(--eh-brand-100);
}
.template_2019 .eh-support-strip-icon .material-icons {
  font-size: 24px;
  color: var(--eh-brand-600);
}
.template_2019 .eh-support-strip-text {
  flex: 1;
  min-width: 0;
}
.template_2019 .eh-support-strip-text h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.15rem;
}
.template_2019 .eh-support-strip-text p {
  font-size: 0.875rem;
  color: var(--eh-ink-500);
  margin-bottom: 0;
}
.template_2019 .eh-support-strip .btn {
  flex: none;
}

/* Education positioning card — quiet, tinted, on-brand */
.template_2019 .eh-edu-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--eh-brand-50);
  border: 1px solid var(--eh-brand-100);
  border-radius: var(--eh-radius-card);
  padding: 1.5rem 1.75rem;
  margin: 0 0 2.5rem;
}
.template_2019 .eh-edu-card > .material-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 52px;
  font-size: 26px;
  color: var(--eh-brand-600);
  background: #fff;
  border: 1px solid var(--eh-brand-100);
  border-radius: 0.875rem;
}
.template_2019 .eh-edu-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.35rem;
}
.template_2019 .eh-edu-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--eh-ink-700);
  max-width: 78ch;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   8C. CLIENT DASHBOARD — quick actions strip + panel polish
   (tpl/overrides/clientarea/dashboard.tpl adds the marked eh block)
   -------------------------------------------------------------------------- */
.template_2019 .eh-dash-intro {
  margin: 0.5rem 0 1.75rem;
}
.template_2019 .eh-dash-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eh-brand-600);
  margin-bottom: 0.6rem;
}
.template_2019 .eh-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.template_2019 .eh-quick-action {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid var(--eh-border-card);
  border-radius: 0.75rem;
  box-shadow: var(--eh-shadow-card);
  padding: 0.8rem 1rem;
  color: var(--eh-ink-700);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, box-shadow 0.15s ease;
}
.template_2019 .eh-quick-action .material-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  font-size: 19px;
  color: var(--eh-brand-500);
  background: var(--eh-brand-50);
  border-radius: 0.55rem;
}
.template_2019 .eh-quick-action:hover,
.template_2019 .eh-quick-action:focus {
  transform: translateY(-2px);
  border-color: var(--eh-brand-300);
  color: var(--eh-brand-700);
  box-shadow: var(--eh-shadow-card-hover);
  text-decoration: none;
}

/* Dashboard tickets/invoices panels: card-grade surfaces */
.template_2019 .info-box {
  margin: 2rem 0;
}
.template_2019 .info-box .info-box-items {
  background-color: #fff;
  border: 1px solid var(--eh-border-card);
  border-radius: var(--eh-radius-card);
  box-shadow: var(--eh-shadow-card);
}

/* --------------------------------------------------------------------------
   9. CARDS — generic card chrome (dashboard panels, lists, detail pages)
   -------------------------------------------------------------------------- */
.template_2019 .card {
  border-radius: var(--eh-radius-card);
  border: 1px solid var(--eh-border-card);
  box-shadow: var(--eh-shadow-card);
  background-color: #fff;
}
.template_2019 .card > .list-group:first-child .list-group-item:first-child {
  border-top-left-radius: calc(var(--eh-radius-card) - 1px);
  border-top-right-radius: calc(var(--eh-radius-card) - 1px);
}
.template_2019 .card > .list-group:last-child .list-group-item:last-child {
  border-bottom-left-radius: calc(var(--eh-radius-card) - 1px);
  border-bottom-right-radius: calc(var(--eh-radius-card) - 1px);
}
.template_2019 .card .card-header {
  background-color: transparent;
  border-bottom: 1px solid var(--eh-line-soft);
  font-weight: 600;
  color: var(--eh-ink-900);
}
.template_2019 .card .card-footer {
  background-color: #fbfcfe;
  border-top: 1px solid var(--eh-line-soft);
  border-bottom-left-radius: var(--eh-radius-card);
  border-bottom-right-radius: var(--eh-radius-card);
}

/* Info-box side navigation (client-area sub-pages) */
.template_2019 .info-box .info-box-items .nav-pills .nav-link.active {
  background-color: var(--eh-brand-50);
  color: var(--eh-brand-600);
  border-left: 0.14rem solid var(--eh-brand-500);
}

/* Generic in-content nav pills / tabs */
.template_2019 .section-main .nav-pills .nav-link.active,
.template_2019 .section-main .nav-pills .show > .nav-link {
  background-color: var(--eh-brand-500);
  color: #fff;
}
.template_2019 .section-main .nav-tabs .nav-link.active {
  color: var(--eh-brand-600);
  border-bottom-color: var(--eh-brand-500);
}

/* --------------------------------------------------------------------------
   10. BUTTONS
   -------------------------------------------------------------------------- */
.template_2019 .btn {
  border-radius: var(--eh-radius-btn);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, box-shadow 0.2s ease;
}
.template_2019 .btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.template_2019 .btn-primary {
  color: #fff;
  background-color: var(--eh-brand-500);
  border-color: var(--eh-brand-500);
}
.template_2019 .btn-primary:hover,
.template_2019 .btn-primary:focus,
.template_2019 .btn-primary:not(:disabled):not(.disabled):active,
.template_2019 .btn-primary:not(:disabled):not(.disabled).active,
.template_2019 .show > .btn-primary.dropdown-toggle {
  color: #fff;
  background-color: var(--eh-brand-600);
  border-color: var(--eh-brand-600);
}
.template_2019 .btn-primary.disabled,
.template_2019 .btn-primary:disabled {
  background-color: var(--eh-brand-500);
  border-color: var(--eh-brand-500);
}

.template_2019 .btn-success {
  color: #fff;
  background-color: var(--eh-green);
  border-color: var(--eh-green);
}
.template_2019 .btn-success:hover,
.template_2019 .btn-success:focus,
.template_2019 .btn-success:not(:disabled):not(.disabled):active {
  color: #fff;
  background-color: var(--eh-green-dark);
  border-color: var(--eh-green-dark);
}

.template_2019 .btn-info {
  color: #fff;
  background-color: var(--eh-brand-400);
  border-color: var(--eh-brand-400);
}
.template_2019 .btn-info:hover,
.template_2019 .btn-info:focus {
  color: #fff;
  background-color: var(--eh-brand-500);
  border-color: var(--eh-brand-500);
}

.template_2019 .btn-warning {
  color: #fff;
  background-color: var(--eh-orange);
  border-color: var(--eh-orange);
}
.template_2019 .btn-warning:hover,
.template_2019 .btn-warning:focus {
  color: #fff;
  background-color: var(--eh-orange-dark);
  border-color: var(--eh-orange-dark);
}

/* Neutral buttons (btn-default / btn-secondary / btn-light) → quiet outline */
.template_2019 .btn-default,
.template_2019 .btn-secondary,
.template_2019 .btn-light {
  color: var(--eh-ink-700);
  background-color: #fff;
  border-color: #d9e0ec;
}
.template_2019 .btn-default:hover,
.template_2019 .btn-default:focus,
.template_2019 .btn-secondary:hover,
.template_2019 .btn-secondary:focus,
.template_2019 .btn-light:hover,
.template_2019 .btn-light:focus {
  color: var(--eh-brand-700);
  background-color: var(--eh-brand-50);
  border-color: var(--eh-brand-100);
}

.template_2019 .btn-outline-primary {
  color: var(--eh-brand-600);
  border-color: var(--eh-brand-500);
}
.template_2019 .btn-outline-primary:hover,
.template_2019 .btn-outline-primary:focus {
  color: #fff;
  background-color: var(--eh-brand-500);
  border-color: var(--eh-brand-500);
}

.template_2019 .btn-link {
  color: var(--eh-brand-600);
  font-weight: 500;
}
.template_2019 .btn-link:hover {
  color: var(--eh-brand-700);
}

/* --------------------------------------------------------------------------
   11. FORMS
   -------------------------------------------------------------------------- */
.template_2019 .form-control,
.template_2019 .custom-select {
  border-radius: var(--eh-radius-btn);
  border-color: #d9e0ec;
  color: var(--eh-ink-900);
}
.template_2019 .form-control:focus,
.template_2019 .custom-select:focus {
  border-color: var(--eh-brand-400);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.18);
}
.template_2019 .form-control::placeholder {
  color: var(--eh-ink-300);
}
.template_2019 label {
  color: var(--eh-ink-700);
  font-weight: 500;
}
.template_2019 .input-group-text {
  background-color: var(--eh-page-bg);
  border-color: #d9e0ec;
  color: var(--eh-ink-500);
  border-radius: var(--eh-radius-btn);
}
.template_2019 .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--eh-brand-500);
  border-color: var(--eh-brand-500);
}
.template_2019 .custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.18);
}
.template_2019 .form-text,
.template_2019 .form-text.text-muted {
  color: var(--eh-ink-500) !important;
}
/* Validation states keep Bootstrap behaviour; tune the colours */
.template_2019 .invalid-feedback {
  color: #b21f27;
}
.template_2019 .form-control.is-invalid {
  border-color: #d9252e;
}
.template_2019 .form-control.is-valid {
  border-color: var(--eh-green);
}

/* --------------------------------------------------------------------------
   12. TABLES (services, invoices, tickets, domains…)
   -------------------------------------------------------------------------- */
.template_2019 .table {
  color: var(--eh-ink-900);
}
.template_2019 .table thead th {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--eh-ink-500);
  border-top: 0;
  border-bottom: 1px solid var(--eh-line);
}
.template_2019 .table td,
.template_2019 .table th {
  border-color: var(--eh-line-soft);
  vertical-align: middle;
}
.template_2019 .table-hover tbody tr:hover {
  background-color: #f6f9ff;
}
.template_2019 .table-striped tbody tr:nth-of-type(odd) {
  background-color: #fafbfe;
}
.template_2019 .status-head {
  background-color: #f0f4fa !important;
}

/* JS-added wrapper so wide tables scroll instead of breaking the viewport */
.template_2019 .eh-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   13. BADGES & STATUS LABELS (Active / Pending / Suspended / …)
   Tinted pills with dark readable text (contrast ≥ 4.5:1)
   -------------------------------------------------------------------------- */
.template_2019 .label {
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.05em;
}
.template_2019 .badge {
  border-radius: 999px;
  font-weight: 600;
}

.template_2019 .label-success,
.template_2019 .badge-success {
  background-color: #e1f6ea !important;
  color: #17703f !important;
}
.template_2019 .label-warning,
.template_2019 .badge-warning {
  background-color: #fdf1dc !important;
  color: #8a5c00 !important;
}
.template_2019 .label-danger,
.template_2019 .badge-danger {
  background-color: #fbe8e9 !important;
  color: #b21f27 !important;
}
.template_2019 .label-primary,
.template_2019 .badge-primary,
.template_2019 .label-info,
.template_2019 .badge-info {
  background-color: var(--eh-brand-50) !important;
  color: var(--eh-brand-700) !important;
}
.template_2019 .label-secondary,
.template_2019 .badge-secondary,
.template_2019 .label-default,
.template_2019 .badge-light {
  background-color: #eef1f6 !important;
  color: var(--eh-ink-500) !important;
}
.template_2019 .label-dark,
.template_2019 .badge-dark {
  background-color: var(--eh-navy-700) !important;
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   14. ALERTS & NOTICES (higher-contrast text than stock)
   -------------------------------------------------------------------------- */
.template_2019 .alert,
.template_2019 .cloud .notice {
  border-radius: 0.75rem;
  border-width: 1px;
}
.template_2019 .alert.alert-success,
.template_2019 .cloud .alert-success.notice {
  color: #17703f;
  background-color: #e1f6ea;
  border-color: #c8eeda;
}
.template_2019 .alert.alert-danger,
.template_2019 .cloud .alert-danger.notice {
  color: #b21f27;
  background-color: #fbe8e9;
  border-color: #f6d5d7;
}
.template_2019 .alert.alert-warning,
.template_2019 .cloud .alert-warning.notice {
  color: #8a5c00;
  background-color: #fdf1dc;
  border-color: #f9e5c0;
}
.template_2019 .alert.alert-info,
.template_2019 .cloud .alert-info.notice {
  color: var(--eh-brand-700);
  background-color: var(--eh-brand-50);
  border-color: var(--eh-brand-100);
}

/* --------------------------------------------------------------------------
   15. CHROME — breadcrumbs, pagination, modals, progress, misc
   -------------------------------------------------------------------------- */
.template_2019 .breadcrumb {
  background: transparent;
  padding-left: 0;
  font-size: 0.8125rem;
}
.template_2019 .breadcrumb a {
  color: var(--eh-ink-500);
}
.template_2019 .breadcrumb a:hover {
  color: var(--eh-brand-600);
}
.template_2019 .breadcrumb li .active,
.template_2019 .breadcrumb-item.active {
  color: var(--eh-ink-700);
}

.template_2019 .page-link {
  color: var(--eh-brand-600);
  border-color: var(--eh-line);
}
.template_2019 .page-link:hover {
  color: var(--eh-brand-700);
  background-color: var(--eh-brand-50);
  border-color: var(--eh-brand-100);
}
.template_2019 .page-item.active .page-link {
  background-color: var(--eh-brand-500);
  border-color: var(--eh-brand-500);
  color: #fff;
}

.template_2019 .modal-content {
  border: none;
  border-radius: var(--eh-radius-card);
  box-shadow: 0 24px 64px -16px rgba(11, 18, 32, 0.35);
}
.template_2019 .modal-header {
  border-bottom-color: var(--eh-line-soft);
}
.template_2019 .modal-footer {
  border-top-color: var(--eh-line-soft);
}

.template_2019 .progress {
  border-radius: 999px;
  background-color: var(--eh-line-soft);
}
.template_2019 .progress-bar {
  background-color: var(--eh-brand-500);
}

.template_2019 hr {
  border-top-color: var(--eh-line-soft);
}

.template_2019 .list-group-item.active {
  background-color: var(--eh-brand-500);
  border-color: var(--eh-brand-500);
}

/* Order/cart wrapper chrome only — flow untouched */
.template_2019 .section-main .category {
  color: var(--eh-ink-700);
  border-radius: 0.5rem;
}
.template_2019 .section-main .category:hover,
.template_2019 .section-main .category.active {
  color: var(--eh-brand-700);
}

/* --------------------------------------------------------------------------
   16. AUTH — login / register / password reset
   -------------------------------------------------------------------------- */
.template_2019 .form-credentials {
  background: #fff;
  border-radius: var(--eh-radius-card);
  box-shadow: var(--eh-shadow-card);
  border: 1px solid var(--eh-border-card);
  padding: 2rem;
}
.template_2019 .modal .form-credentials,
.template_2019 .modal .form-credentials-modal {
  box-shadow: none;
  border: none;
  padding: 1rem 1.5rem 1.5rem;
}
.template_2019 .form-credentials .btn-primary,
.template_2019 .form-credentials .btn-success {
  width: 100%;
}
.template_2019 .form-label-group > label {
  color: var(--eh-ink-500);
}

/* --------------------------------------------------------------------------
   17. FOOTER — light portal footer aligned with the content column
   Stock paints .footer as a floating 1400px box; instead the wrapper gets a
   full-width hairline and the inner footer aligns with .section-main.
   -------------------------------------------------------------------------- */
.template_2019 .footer-content {
  background: transparent;
  border-top: 1px solid var(--eh-line);
  margin-top: 2.5rem;
}
body.template_2019 .footer-content .footer {
  max-width: var(--eh-content-max) !important;
  margin: 0 auto;
  padding: 1.25rem 32px 1.75rem;
}
.template_2019 .footer .footer-box,
.template_2019 .footer .footer-box small,
.template_2019 .footer .text-secondary {
  color: var(--eh-ink-500) !important;
  font-size: 0.8125rem;
}
.template_2019 .footer .nav-link {
  color: var(--eh-ink-500) !important;
  padding: 0.25rem 0.625rem;
  transition: color 0.15s ease;
}
.template_2019 .footer .nav-link:hover,
.template_2019 .footer .nav-link:focus {
  color: var(--eh-brand-600) !important;
}

/* Legal/company links row appended by the footer partial or the theme JS */
.template_2019 .footer .eh-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--eh-line-soft);
  font-size: 0.78125rem;
}
.template_2019 .footer .eh-footer-links a {
  color: var(--eh-ink-500);
  text-decoration: none;
  transition: color 0.15s ease;
}
.template_2019 .footer .eh-footer-links a:hover,
.template_2019 .footer .eh-footer-links a:focus {
  color: var(--eh-brand-600);
}
.template_2019 .footer .eh-footer-links .eh-footer-links-home a {
  color: var(--eh-brand-600);
  font-weight: 600;
}
.template_2019 .footer .eh-footer-links .eh-footer-links-home a:hover {
  color: var(--eh-brand-700);
}

/* --------------------------------------------------------------------------
   18. UTILITIES — Bootstrap utility re-mapping to the brand palette
   (stock utilities use !important, so these must too)
   -------------------------------------------------------------------------- */
.template_2019 .text-primary {
  color: var(--eh-brand-600) !important;
}
.template_2019 a.text-primary:hover {
  color: var(--eh-brand-700) !important;
}
.template_2019 .bg-primary {
  background-color: var(--eh-brand-500) !important;
}
.template_2019 .border-primary {
  border-color: var(--eh-brand-500) !important;
}
.template_2019 .text-success {
  color: #17703f !important;
}
.template_2019 .text-danger {
  color: #b21f27 !important;
}
.template_2019 .text-warning {
  color: #8a5c00 !important;
}
.template_2019 .text-secondary,
.template_2019 .text-muted {
  color: var(--eh-ink-500) !important;
}

/* --------------------------------------------------------------------------
   19. RESPONSIVE — QA passes
   ≥1440 desktop · 1366 desktop · 1024 tablet · 768 tablet · 390 phone
   Sidebar shows ≥994px (content column = viewport − 250px sidebar):
     1440px → 1190px column → 3 tile columns
     1366px → 1116px column → 3 tile columns
     1024px → 774px column  → 2 tile columns
     ≤993px → sidebar off-canvas, sub-bar appears, full-width column
   -------------------------------------------------------------------------- */

/* Medium: two tile columns while the column is 640–1199px wide */
@media (max-width: 1199px) {
  .template_2019 .section-main .root-boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .template_2019 .eh-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet ≤993px: sidebar is off-canvas; tighten vertical rhythm */
@media (max-width: 993px) {
  .template_2019 .section-main > h1.text-center.my-5 {
    margin: 1.5rem auto 1.25rem !important;
    font-size: 1.5rem;
  }
  .template_2019 .eh-hero {
    padding: 2.25rem 1.75rem;
  }
  .template_2019 .section-main .eh-hero-title {
    font-size: 1.75rem;
  }
  body.template_2019 .footer-content .footer {
    padding: 1rem 16px 1.5rem;
  }
  .template_2019 .footer .eh-footer-links {
    justify-content: center;
  }
}

/* Phone: single columns, tighter hero, stacked strips and footer */
@media (max-width: 640px) {
  .template_2019 .section-main .root-boxes {
    grid-template-columns: minmax(0, 1fr);
  }
  .template_2019 .section-main .root-boxes .root-box {
    min-height: 150px;
    padding: 1.5rem 1.25rem;
  }
  .template_2019 .eh-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .template_2019 .eh-hero {
    padding: 1.75rem 1.25rem;
    border-radius: 1rem;
  }
  .template_2019 .section-main .eh-hero-title {
    font-size: 1.5rem;
  }
  .template_2019 .eh-hero-sub {
    font-size: 0.9375rem;
  }
  .template_2019 .eh-hero-actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }
  .template_2019 .eh-support-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
  .template_2019 .eh-support-strip .btn {
    width: 100%;
  }
  .template_2019 .eh-edu-card {
    flex-direction: column;
    gap: 0.9rem;
  }
}
@media (max-width: 767px) {
  .template_2019 .navbar .navbar-brand img {
    height: 26px;
    max-width: 160px;
  }
  .template_2019 .footer .eh-footer-links {
    gap: 0.25rem 1rem;
  }
}

/* --------------------------------------------------------------------------
   20. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .template_2019 .navbar,
  .template_2019 .sidebar,
  .template_2019 .sidebar-overlay,
  .template_2019 .footer,
  .template_2019 .footer-content {
    display: none !important;
  }
  body.template_2019 {
    background: #fff;
  }
}
