/* Copied from `accessgranted-crm/portals/assistant/modules/main.css`.
   Paths adjusted to public URLs under `/accessgranted-crm/assets/*`. */

/* ══════════════════════════════════════════════════════════════════
   ACCESS GRANTED - STANDARDIZED DESIGN SYSTEM (main.css)
   ══════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Atten";
  src: url("/accessgranted-crm/assets/fonts/AttenNewBook.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Atten";
  src: url("/accessgranted-crm/assets/fonts/AttenNewRegular.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Atten";
  src: url("/accessgranted-crm/assets/fonts/AttenRoundNewRegular.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Cannon";
  src: url("/accessgranted-crm/assets/fonts/Cannon-light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Cannon";
  src: url("/accessgranted-crm/assets/fonts/Cannon-medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

:root {
  /* Master Palette */
  --cream: #F7ECD9;
  --sand: #E4C7A1;
  --gold: #D5B45D;
  --rust: #7C4D3B;
  --deep-teal: #12374B;
  --crimson: #8B0010;
  --orange: #EC781F;
  --forest-green: #36642B;
  --white: #FFFFFF;

  /* Typography */
  --text-mid: #6B5038;
  --text-light: #9C8060;
  --text-faint: #7A6550;
  --text-meta-size: 0.8125rem;
  --text-meta-weight: 700;

  /* Master Elevation */
  --shadow-sm: 0 8px 25px rgba(124, 77, 59, 0.12);
  --shadow-md: 0 12px 35px rgba(124, 77, 59, 0.15);
  --shadow-lg: 0 20px 40px rgba(124, 77, 59, 0.15);

  /* Master Geometry */
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
}

.text-meta {
  font-size: var(--text-meta-size);
  font-weight: var(--text-meta-weight);
  color: var(--text-mid);
}

.field-label {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body {
  background: var(--cream);
  color: var(--deep-teal);
  font-family: "Atten", sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cannon", serif;
  font-weight: 700;
  color: var(--rust);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 16px;
}

p,
span,
div,
li,
td,
th {
  font-family: "Atten", sans-serif;
}

/* Surgical Heading Fonts */
.nav-link,
.card-title,
.section-title {
  font-family: "Cannon", serif !important;
}

/* ══════════════ STANDARDIZED HEADER SYSTEM ══════════════ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 5000;
  background: var(--cream);
}

.nav-top-row {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.topnav .nav-top-row {
  box-shadow: none !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-icon {
  width: 34px;
  height: 34px;
  background: var(--cream);
  border-radius: 12px;
  color: var(--rust);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.nav-avatar {
  width: 34px;
  height: 34px;
  background: var(--gold);
  border-radius: 4px;
  color: var(--rust-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.nav-icon:hover,
.nav-avatar:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.nav-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border: 1.5px solid var(--cream);
  border-radius: 50%;
}

.nav-menu {
  padding: 6px 28px 12px;
}

/* Legacy nav-container chrome — GlobalPortalNavTabs provides the white pill */
.topnav > .nav-menu .assistant-nav-tabs,
.topnav > .nav-menu .nav-container--global-tabs {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}

.nav-container {
  max-width: 1480px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 12px;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 25px;
  box-shadow: var(--shadow-sm);
}

.nav-link {
  font-family: "Cannon", serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--deep-teal);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rust);
  border-bottom-color: var(--gold);
}

/* ══════════════ DROPDOWN GLASSMORPHISM ══════════════ */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--cream);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(18, 55, 75, 0.1);
  box-shadow: var(--shadow-md);
  border-radius: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ══════════════ MOTIF SUBSTRATE ══════════════ */
#bg-artwork {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.24;
}

.motif {
  position: absolute;
  filter: grayscale(1);
  mix-blend-mode: multiply;
}
