/*
 * Minerva theme for tal.now and trialsites.info (2026-11-11).
 *
 * Sridhar: "Fix the whole site with Minerva interface. Also make the homepage
 * look like minerva." Both sites run the same CodeIgniter "dt" app, so one
 * stylesheet covers both. Token values are Minerva.chat's public-page system
 * (also live on nitro.training, class.live and usefulfunction.com): paper
 * ground, Inter Tight, a light display face, hairlines, a navy accent, copper
 * micro-numbers, an inverted closing band. Keep them in step by eye.
 *
 * Loaded AFTER dt.style.css, which sets its own colours with !important, so the
 * overrides below need !important as well. The original files are untouched:
 * deleting this file (and its <link>) restores the old look exactly.
 */
:root {
  --mv-paper:  #fdfdfc;
  --mv-panel:  #f8f7f4;
  --mv-line:   #efece7;
  --mv-ink:    #2d2d2d;
  --mv-muted:  #6b6b6b;
  --mv-navy:   #1f3a5f;
  --mv-copper: #c67a3c;
  --mv-radius: 4px;
}

/* ------------------------------------------------------------- base type */

body, body *:not(i):not([class*="bi-"]):not(.trumbowyg-editor):not(.trumbowyg-editor *) {
  font-family: "Inter Tight", ui-sans-serif, system-ui, "Segoe UI", Helvetica, Arial, sans-serif !important;
}
body {
  background: var(--mv-paper) !important;
  color: var(--mv-ink) !important;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.55;
}
::selection { background: var(--mv-navy); color: #fff; }
:focus-visible { outline: 2px solid var(--mv-copper) !important; outline-offset: 3px; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .display-3, .display-5 {
  color: var(--mv-navy) !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em;
}
h1 { letter-spacing: -0.03em; }
.fw-bold, .fw-bolder, strong, b, th { font-weight: 500 !important; }
.fs-1, .fs-2 { letter-spacing: -0.02em; }
.lead { color: var(--mv-muted); font-weight: 400 !important; }
.text-muted { color: var(--mv-muted) !important; }
.text-dark, .text-default, .text-secondary { color: var(--mv-ink) !important; }
.text-theme, .text-primary { color: var(--mv-navy) !important; }

a { color: var(--mv-navy) !important; }
a:hover { color: var(--mv-copper) !important; }
a.text-light, a.text-white { color: #fff !important; }
a.text-muted { color: var(--mv-muted) !important; }
a.text-muted:hover { color: var(--mv-ink) !important; }

/* ------------------------------------------------------------- header */

.sticky-top.bg-white, .navbar, .navbar.bg-white { background: var(--mv-paper) !important; }
.navbar.border-bottom, .border-bottom { border-color: var(--mv-line) !important; }
.navbar .nav-link, .navbar .nav-item > a { color: var(--mv-muted) !important; font-size: .875rem; letter-spacing: .02em; }
.navbar .nav-link:hover, .navbar .nav-item > a:hover { color: var(--mv-ink) !important; }
/* a logo exported on white sits on the paper ground without a box */
.navbar-brand img { mix-blend-mode: multiply; }
.navbar-toggler { border-color: var(--mv-line) !important; border-radius: var(--mv-radius); }

/* ------------------------------------------------------------- surfaces */

.bg-white { background-color: var(--mv-paper) !important; border-color: var(--mv-line) !important; }
.bg-light, .dt-sm-title { background-color: var(--mv-panel) !important; border-color: var(--mv-line) !important; }
.bg-theme, .bg-dark { background-color: var(--mv-navy) !important; border-color: var(--mv-navy) !important; }
.bg-theme .text-white, .bg-dark .text-white { color: #fff !important; }
.border, .border-top, .border-end, .border-start, hr, .dropdown-divider { border-color: var(--mv-line) !important; }
.rounded, .rounded-1, .rounded-2, .rounded-3, .rounded-4, .card, .alert, .badge { border-radius: var(--mv-radius) !important; }
.shadow, .shadow-sm, .shadow-lg { box-shadow: none !important; }

/* boxes: hairline panels, no glow */
.dt-box, a.dt-box {
  background: #fff !important; border: 1px solid var(--mv-line) !important; border-radius: var(--mv-radius) !important;
  color: var(--mv-ink) !important; box-shadow: none !important;
}
a.dt-box:hover, .dt-box.cursor-pointer:hover { border-color: var(--mv-navy) !important; box-shadow: none !important; background: #fff !important; }
.dt-box-head { color: var(--mv-navy) !important; font-weight: 500; letter-spacing: -0.01em; }
.dt-box .divider, .dt-box table * { border-color: var(--mv-line) !important; }
.dt-box table th, .table th {
  color: var(--mv-muted) !important; font-size: .6875rem !important; letter-spacing: .12em; text-transform: uppercase; font-weight: 400 !important;
}
.table { color: var(--mv-ink) !important; }

/* ------------------------------------------------------------- buttons */

.btn { border-radius: var(--mv-radius) !important; font-weight: 500; letter-spacing: .005em; transition: background-color .15s ease, border-color .15s ease, opacity .15s ease !important; }
.btn-theme, .btn-dark, .btn-primary, .btn-info {
  background-color: var(--mv-navy) !important; border-color: var(--mv-navy) !important; color: #fff !important;
}
.btn-theme:hover, .btn-dark:hover, .btn-primary:hover, .btn-info:hover { opacity: .88; background-color: var(--mv-navy) !important; border-color: var(--mv-navy) !important; color: #fff !important; }
.btn-default, .btn-light, .btn-white, .btn-outline-secondary {
  background-color: transparent !important; border: 1px solid var(--mv-line) !important; color: var(--mv-ink) !important;
}
.btn-default:hover, .btn-light:hover, .btn-white:hover { background-color: var(--mv-panel) !important; border-color: var(--mv-line) !important; color: var(--mv-ink) !important; }
.btn-secondary { background-color: var(--mv-muted) !important; border-color: var(--mv-muted) !important; color: #fff !important; }
.btn-warning { background-color: var(--mv-copper) !important; border-color: var(--mv-copper) !important; color: #fff !important; }
.btn-warning:hover { opacity: .88; }
.btn-success { background-color: #4b7a57 !important; border-color: #4b7a57 !important; color: #fff !important; }
.btn-danger { background-color: #a33a2f !important; border-color: #a33a2f !important; color: #fff !important; }
/* a white button on a navy band stays white */
.bg-theme .btn-white, .bg-theme .btn-default, .mv-invert .btn-white, .mv-invert .btn-default {
  background-color: #fff !important; border-color: #fff !important; color: var(--mv-navy) !important;
}

/* ------------------------------------------------------------- badges, alerts */

.badge, .badge-default, .badge-light, .badge-primary, .badge-theme, .badge-info {
  background-color: var(--mv-panel) !important; border: 1px solid var(--mv-line) !important; color: var(--mv-navy) !important; font-weight: 500;
}
.alert-default, .alert-light, .alert-white, .alert-primary, .alert-theme, .alert-info, .alert-secondary {
  background-color: var(--mv-panel) !important; border-color: var(--mv-line) !important; color: var(--mv-ink) !important;
}
.alert-success { background-color: #f0f6f1 !important; border-color: #cfe2d3 !important; color: #34563c !important; }
.alert-danger { background-color: #fbf1ef !important; border-color: #efcfca !important; color: #8a2f26 !important; }
.alert-warning { background-color: #fbf5ec !important; border-color: #efdcc0 !important; color: #7a4b16 !important; }

/* ------------------------------------------------------------- forms */

.form-control, .form-select, .input-group-text, .trumbowyg-box, .iti input {
  background-color: #fff !important; border: 1px solid var(--mv-line) !important; border-radius: var(--mv-radius) !important; color: var(--mv-ink);
}
.form-control:focus, .form-select:focus, .form-control:hover, .form-select:hover {
  border-color: var(--mv-navy) !important; box-shadow: none !important;
}
.form-control:disabled, .form-control[readonly] { background-color: var(--mv-panel) !important; }
.form-label, .form-floating label { color: var(--mv-muted) !important; font-size: .75rem; letter-spacing: .04em; }
.form-check-input:checked { background-color: var(--mv-navy) !important; border-color: var(--mv-navy) !important; }
.form-check-input { border-color: var(--mv-line) !important; }
.form-error { color: #a33a2f; }

.dropdown-menu, .modal-content {
  border: 1px solid var(--mv-line) !important; border-radius: var(--mv-radius) !important; box-shadow: none !important; background: #fff;
}
.dropdown-menu .dropdown-item:hover, .dropdown-menu a:hover { background: var(--mv-panel) !important; color: var(--mv-ink) !important; }
.dropdown-menu .dropdown-item, .dropdown-menu > div, .dropdown-menu a.bg-white { border-color: var(--mv-line) !important; background-color: #fff !important; }
.modal-backdrop.show { opacity: .35; }
.pagination .page-link { color: var(--mv-navy) !important; border-color: var(--mv-line) !important; border-radius: 0; }
.pagination .active .page-link { background: var(--mv-navy) !important; border-color: var(--mv-navy) !important; color: #fff !important; }
.nav-tabs { border-color: var(--mv-line) !important; }
.nav-tabs .nav-link.active { color: var(--mv-navy) !important; border-color: var(--mv-line) var(--mv-line) #fff !important; }

/* ------------------------------------------------------------- dashboards (sidebar) */

.sidebar { background: var(--mv-navy) !important; }
.sidebar-link { color: rgba(255,255,255,.72) !important; }
.sidebar-link:hover { background-color: rgba(255,255,255,.07) !important; color: #fff !important; }
.sidebar-link.active { background: rgba(255,255,255,.12) !important; color: #fff !important; box-shadow: inset 3px 0 0 var(--mv-copper); }

/* ------------------------------------------------------------- footer and cookie bar */

/* The footer's own row only: on tal.now the modal and the cookie bar sit inside this element too. */
.mv-footer { background: var(--mv-navy) !important; border-top: 0 !important; }
.mv-footer > .container, .mv-footer > .container div, .mv-footer > .container .text-muted { color: rgba(255,255,255,.72) !important; }
.mv-footer > .container a, .mv-footer > .container a.text-muted { color: rgba(255,255,255,.72) !important; }
.mv-footer > .container a:hover { color: #fff !important; }
#cookie_policy, #cookie_policy div { color: var(--mv-muted) !important; }
#cookie_policy { background: var(--mv-paper) !important; border-top: 1px solid var(--mv-line) !important; box-shadow: none !important; }
#cookie_policy .btn { background: var(--mv-navy) !important; border-color: var(--mv-navy) !important; color: #fff !important; }

/* ------------------------------------------------------------- landing (Minerva's public page) */

.mv-section { padding: 5rem 0; }
.mv-wrap { max-width: 76rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 992px) { .mv-wrap { padding: 0 2.5rem; } }

.mv-eyebrow { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mv-muted); margin: 0 0 1.75rem; }
.mv-display {
  font-size: clamp(2.5rem, 6.5vw, 5rem); font-weight: 400 !important; line-height: .98; letter-spacing: -.03em;
  color: var(--mv-navy) !important; margin: 0 0 2rem; max-width: 20ch;
}
.mv-h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 400 !important; line-height: 1.1; letter-spacing: -.02em; color: var(--mv-navy) !important; margin: 0 0 1.25rem; max-width: 26ch; }
.mv-lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--mv-muted); max-width: 62ch; margin: 0 0 1.25rem; }
.mv-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.mv-btn {
  display: inline-block; padding: .8rem 1.4rem; border: 1px solid transparent; border-radius: var(--mv-radius);
  font-size: .9375rem; font-weight: 500; cursor: pointer; text-align: center; line-height: 1.2;
}
.mv-btn-primary { background: var(--mv-navy); color: #fff !important; }
.mv-btn-primary:hover { opacity: .88; }
.mv-btn-ghost { border-color: var(--mv-line); color: var(--mv-ink) !important; background: transparent; }
.mv-btn-ghost:hover { background: var(--mv-panel); }

.mv-hero { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 992px) { .mv-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4rem; } }
.mv-pull { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em; color: var(--mv-navy); font-weight: 400; max-width: 18ch; margin: 0; }
.mv-pull-icon { width: 4.5rem; height: auto; margin-bottom: 1.5rem; mix-blend-mode: multiply; }

/* numbered rows on hairlines */
.mv-rows { border-top: 1px solid var(--mv-line); }
.mv-row { display: grid; grid-template-columns: 1fr; gap: .5rem 3rem; padding: 2.25rem 0; border-bottom: 1px solid var(--mv-line); align-items: start; }
@media (min-width: 768px) { .mv-row { grid-template-columns: 6rem minmax(0, 18ch) minmax(0, 1fr) auto; gap: 0 3rem; } }
.mv-num { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mv-copper); padding-top: .35rem; }
.mv-row-title { font-size: 1.25rem; font-weight: 500; color: var(--mv-navy); margin: 0; }
.mv-row-body { color: var(--mv-muted); margin: 0; max-width: 58ch; }

/* inverted closing band */
.mv-invert { background: var(--mv-navy); color: rgba(255,255,255,.82); }
.mv-invert .mv-eyebrow { color: rgba(255,255,255,.55); }
.mv-invert .mv-h2, .mv-invert h2 { color: #fff !important; }
.mv-invert .mv-lead, .mv-invert p { color: rgba(255,255,255,.8); max-width: 52ch; }
.mv-invert a:not(.mv-btn):not(.btn) { color: #fff !important; text-decoration: underline !important; text-underline-offset: 3px; }
.mv-invert .mv-btn-primary { background: #fff; color: var(--mv-navy) !important; }
.mv-invert img { width: 100%; height: auto; border-radius: var(--mv-radius); }
.mv-split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 992px) { .mv-split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* arrival: 600 ms rise, pure CSS so nothing can be left stuck at opacity 0 */
@keyframes mv-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.mv-section { animation: mv-rise 600ms cubic-bezier(.22, 1, .36, 1) both; }
@media (prefers-reduced-motion: reduce) { .mv-section { animation: none; } }


/* ---- 2026-11-19: Tal Now feedback --------------------------------------------------------------
 * "There are different size/types of fonts used in this page, make it uniform."
 * One scale for the profile form and the public profile: headings share one size and weight,
 * field labels share another, helper text a third. */
.navbar-brand.mv-brand {
  font-size: 1.5rem; font-weight: 300; letter-spacing: -.02em; color: var(--mv-navy) !important;
  line-height: 1.1; white-space: normal;
}
#consultant_form, #consultant_form .form-control, #consultant_form .form-select, #consultant_form textarea,
#consultant_form .trumbowyg-editor { font-size: .9375rem; line-height: 1.5; }
#consultant_form .lead, #consultant_form .fw-bold, #consultant_form .form-label.fw-bold {
  font-size: 1.0625rem !important; font-weight: 500 !important; color: var(--mv-navy) !important; letter-spacing: -.005em;
}
#consultant_form .form-label, #consultant_form .form-floating > label { font-size: .8125rem !important; font-weight: 400 !important; color: var(--mv-muted) !important; }
#consultant_form .small, #consultant_form small, #consultant_form .text-secondary.small { font-size: .8125rem !important; font-weight: 400 !important; color: var(--mv-muted) !important; }
#consultant_form p.lead { color: var(--mv-navy) !important; }
.mv-profile-name { font-size: 2rem; font-weight: 400; line-height: 1.15; letter-spacing: -.02em; color: var(--mv-navy); }
.mv-profile-name .mv-profile-handle { font-size: inherit; font-weight: inherit; letter-spacing: inherit; color: var(--mv-muted); margin-left: .35rem; }
