/* =============================================
   DEXTERITY DIGITAL — LEARN SUB-SITE
   Shared stylesheet for all /learn/ and /nexthink/ pages
   Design: 6.0 rebrand — navy/teal/cream
============================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:        #F4EFE5;
  --bg-mid:    #EDE8DE;
  --bg-card:   #FDFAF5;

  --blue:      #4B9297;
  --blue-lt:   #6AAFB4;
  --blue-dk:   #367075;
  --blue-wash: rgba(75,146,151,0.10);
  --blue-border: rgba(75,146,151,0.30);
  --blue-border-strong: rgba(75,146,151,0.65);

  --white:     #092F4F;   /* navy — primary headings/text */
  --silver:    #1a4a6e;
  --silver-dk: #4a6a82;

  --border:    #c8bfb0;

  --radius:    6px;
  --radius-lg: 12px;
  --transition: 0.22s ease;
  --max-width: 1120px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--silver);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-left: 220px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--white);
  line-height: 1.2;
}

/* =============================================
   LAYOUT
============================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 72px 0; }

/* =============================================
   SIDEBAR NAV
============================================= */

/* Fixed left sidebar */
.learn-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 220px;
  background: #092F4F;
  border-right: 1px solid rgba(244,239,229,0.10);
  overflow: hidden;
  z-index: 200;
  display: flex;
  flex-direction: column;
}

/* Brand / logo area */
.learn-sidebar-brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(244,239,229,0.10);
  flex-shrink: 0;
}

.learn-sidebar-logo img {
  height: 28px;
  width: auto;
  display: block;
  margin-bottom: 10px;
}

.learn-sidebar-section {
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,239,229,0.40);
  display: block;
}

/* Nav links — vertical */
.learn-nav-links {
  list-style: none;
  padding: 8px 0;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.learn-nav-links li a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(244,239,229,0.60);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.learn-nav-links li a i {
  width: 13px;
  text-align: center;
  font-size: 0.76rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.learn-nav-links li a:hover,
.learn-nav-links li a.active {
  color: var(--blue-lt);
  background: rgba(75,146,151,0.15);
  border-left-color: var(--blue-lt);
  text-decoration: none;
}

.learn-nav-links li a.active i { opacity: 1; }

/* Sidebar footer — back to main site */
.learn-sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(244,239,229,0.10);
  flex-shrink: 0;
}

.learn-sidebar-footer a {
  font-size: 0.73rem;
  font-weight: 500;
  color: rgba(244,239,229,0.45);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color var(--transition);
}

.learn-sidebar-footer a:hover { color: var(--blue-lt); text-decoration: none; }

/* =============================================
   MOBILE TOP BAR + HAMBURGER
============================================= */
.learn-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  background: rgba(9,47,79,0.98);
  border-bottom: 1px solid rgba(244,239,229,0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 198;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.learn-topbar-logo img {
  height: 26px;
  width: auto;
  display: block;
}

.learn-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.learn-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(244,239,229,0.80);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Overlay behind sidebar on mobile */
.learn-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.38);
  z-index: 199;
}

/* =============================================
   RESPONSIVE — MOBILE
============================================= */
@media (max-width: 768px) {
  body {
    padding-left: 0;
    padding-top: 54px;
  }

  .learn-topbar { display: flex; }

  .learn-sidebar {
    transform: translateX(-100%);
    transition: transform 0.26s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.14);
  }

  .learn-sidebar.is-open {
    transform: translateX(0);
  }

  .learn-sidebar-overlay.is-visible {
    display: block;
  }
}

/* =============================================
   PAGE HERO
============================================= */
.learn-hero {
  background: var(--bg-mid);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 52px;
}

.learn-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.learn-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  max-width: 680px;
}

.learn-hero h1 span { color: var(--blue); }

.learn-hero p {
  font-size: 1.05rem;
  color: var(--silver);
  max-width: 600px;
  line-height: 1.7;
}

/* =============================================
   SECTION HEADERS
============================================= */
.section-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.section-intro {
  font-size: 1rem;
  color: var(--silver);
  max-width: 640px;
  line-height: 1.72;
  margin-bottom: 40px;
}

/* =============================================
   CARDS
============================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  display: block;
  color: inherit;
}
.card:hover {
  border-color: var(--blue-border);
  box-shadow: 0 4px 20px rgba(34,105,199,0.10);
  text-decoration: none;
}

.card-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-wash);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.card p {
  font-size: 0.85rem;
  color: var(--silver-dk);
  line-height: 1.65;
}

.card-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 16px;
}

/* =============================================
   CONTENT BLOCKS
============================================= */
.content-body {
  max-width: 760px;
}

.content-body h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--white);
  margin-top: 48px;
  margin-bottom: 14px;
}

.content-body h2:first-child { margin-top: 0; }

.content-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 32px;
  margin-bottom: 10px;
}

.content-body p {
  color: var(--silver);
  line-height: 1.75;
  margin-bottom: 16px;
}

.content-body ul, .content-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-body li {
  color: var(--silver);
  line-height: 1.7;
  margin-bottom: 8px;
}

.content-body strong { color: var(--white); font-weight: 600; }

/* =============================================
   CALLOUT BOXES
============================================= */
.callout {
  background: var(--blue-wash);
  border: 1px solid var(--blue-border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.callout p {
  color: var(--silver);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.callout strong { color: var(--white); }

.stat-box {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 24px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.stat-number {
  font-family: "Rajdhani", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  flex-shrink: 0;
}

.stat-copy p {
  font-size: 0.88rem;
  color: var(--silver);
  margin: 0;
  line-height: 1.6;
}

.stat-copy strong { color: var(--white); }

/* =============================================
   DEFINITION LIST (glossary)
============================================= */
.def-list { }

.def-letter {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue);
  padding: 28px 0 6px;
  border-bottom: 2px solid var(--blue-border);
  margin-bottom: 4px;
  line-height: 1;
}

.def-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.def-item:last-child { border-bottom: none; }

.def-term {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

.def-abbr {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 2px;
}

.def-desc {
  font-size: 0.9rem;
  color: var(--silver);
  line-height: 1.7;
}

/* =============================================
   MATURITY TRACK
============================================= */
.maturity-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 32px 0;
}

.maturity-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  position: relative;
}

.maturity-step.active {
  border-color: var(--blue);
  background: var(--blue-wash);
}

.maturity-num {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 6px;
}

.maturity-step h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
}

.maturity-step p {
  font-size: 0.76rem;
  color: var(--silver-dk);
  line-height: 1.5;
}

/* =============================================
   LAYER / OVERLAY CARDS
============================================= */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.framework-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.framework-card.overlay {
  border-top-color: var(--blue-lt);
}

.framework-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.framework-card.overlay .framework-card-label { color: var(--blue-lt); }

.framework-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.framework-card p {
  font-size: 0.83rem;
  color: var(--silver-dk);
  line-height: 1.65;
}

/* =============================================
   RESEARCH CITATION
============================================= */
.research-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.research-stat {
  font-family: "Rajdhani", sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}

.research-finding {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  font-family: "Rajdhani", sans-serif;
}

.research-context {
  font-size: 0.88rem;
  color: var(--silver);
  line-height: 1.68;
  margin-bottom: 14px;
}

.research-source {
  font-size: 0.72rem;
  color: var(--silver-dk);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}

.research-source a { color: var(--blue); }

/* =============================================
   FRAMEWORK ATTRIBUTION NOTICE
   (Classes retained for draft content in _drafts/)
============================================= */

/* Full notice block */
.dex-cos-notice {
  background: rgba(34,105,199,0.04);
  border: 1px solid var(--blue-border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 0 0 0 0;
}

.dex-cos-notice-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dex-cos-notice-header i {
  color: var(--blue);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.dex-cos-notice-header span {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.dex-cos-notice p {
  font-size: 0.82rem;
  color: var(--silver);
  line-height: 1.70;
  margin: 0;
}

.dex-cos-notice a {
  color: var(--blue);
  font-weight: 600;
}

/* Abbreviated legal line — used in every page footer */
.learn-legal {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 20px;
}

.learn-legal p {
  font-size: 0.72rem;
  color: var(--silver-dk);
  line-height: 1.6;
}

.learn-legal a {
  color: var(--blue);
  text-decoration: none;
}

.learn-legal a:hover { text-decoration: underline; }

/* =============================================
   NEXT PAGE FOOTER
============================================= */
.learn-footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.learn-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.learn-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition);
}
.learn-footer-cta:hover {
  background: var(--blue-dk);
  box-shadow: 0 4px 16px rgba(34,105,199,0.25);
  text-decoration: none;
}

.learn-footer-back {
  font-size: 0.82rem;
  color: var(--silver-dk);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.learn-footer-back:hover { color: var(--blue); text-decoration: none; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .maturity-track { grid-template-columns: repeat(3, 1fr); }
  .framework-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  section { padding: 48px 0; }
  .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
  .maturity-track { grid-template-columns: repeat(2, 1fr); }
  .framework-grid { grid-template-columns: 1fr; }
  .def-item { grid-template-columns: 1fr; gap: 6px; }
  .learn-nav-links { display: none; }
  .learn-footer-inner { flex-direction: column; }
}
