@font-face {
  font-family: ldfcomicsans;
  src: url("ldfcomicsans.ttf") format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bs-font-sans-serif: ldfcomicsans;
  --bs-body-font-family: ldfcomicsans;
  --bs-heading-font-family: ldfcomicsans;
}

html {
  font-family: ldfcomicsans;
}


/* (legacy h2 styling removed; themed headings are defined below) */


@media (max-width: 768px) {
  .content-wrapper h2,
  h2 {
    background-size: 100% 100%;
    padding: 1rem 0.75rem 0.75rem 0.75rem;
  }
}

/* Note styling for protocol pages */
.note {
  margin-left: 20px;
  font-style: italic;
  margin-bottom: 10px;
  color: #666;
  font-size: 0.9em;
}

/* Chart description styling for entrepreneurship page */
.chart-desc {
  margin: 10px 0;
  font-style: italic;
  font-size: 0.9em;
  color: #666;
}

body {
  padding-top: 56px;
  font-family: ldfcomicsans;
}

h1, h2, h3, h4, h5, h6,
p, a, li,
button, input, textarea, select {
  font-family: ldfcomicsans;
}

.left-aligned {
  margin-left: auto;
}

/* (legacy .bg-dark and .bg-hero removed; themed versions below) */

/* Page frame and right side decoration */
.page-frame {
  position: relative;
}

.page-frame .side-deco {
  position: absolute;
  top: 0;
  left: 0;
  width: 10%;
  height: calc(100% - 1px);
  background-repeat: repeat-y;
  background-position: left top;
  background-size: 100% auto;
  pointer-events: none;
  z-index: 100;
}

/* Keep content above decoration when needed */
.page-frame header,
.page-frame .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .page-frame .side-deco {
    display: none;
  }
}

/* CALLOUT */
.bd-callout {
  padding: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid #e9ecef;
  border-left-width: 0.25rem;
  border-radius: 0.25rem;
}

.bd-callout h4 {
  margin-bottom: 0.25rem;
}

.bd-callout p:last-child {
  margin-bottom: 0;
}

.bd-callout code {
  border-radius: 0.25rem;
}

.bd-callout + .bd-callout {
  margin-top: -0.25rem;
}

/* =============================================
   THEME OVERRIDES — Modern Blue-based UI
   ============================================= */

/* Palette and design tokens */
:root {
  /* Blue scale */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;

  /* Surfaces & text */
  --surface-0: #f8fafc;
  --surface-1: #f1f5f9;
  --surface-2: #e2e8f0;
  --text-strong: #0f172a;
  --text-muted: #475569;
  --text-inverse: #ffffff;

  /* Brand */
  --brand: var(--blue-600);
  --brand-strong: var(--blue-700);
  --brand-weak: var(--blue-300);

  /* Radius & shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(2,6,23,0.08), 0 1px 1px rgba(2,6,23,0.06);
  --shadow-md: 0 10px 15px rgba(2,6,23,0.10), 0 4px 6px rgba(2,6,23,0.05);
  --shadow-lg: 0 20px 25px rgba(2,6,23,0.15), 0 10px 10px rgba(2,6,23,0.08);

  /* Bootstrap CSS vars overrides (runtime) */
  --bs-primary: var(--brand);
  --bs-primary-rgb: 37, 99, 235; /* blue-600 */
  --bs-body-bg: var(--surface-0);
  --bs-body-color: var(--text-strong);
  --bs-link-color: var(--brand);
  --bs-link-hover-color: var(--brand-strong);
}

html {
  color: var(--text-strong);
}

body {
  background: linear-gradient(180deg, var(--blue-50) 0%, #eaf2ff 45%, #e6f0ff 100%);
  color: var(--text-strong);
}

/* Links */
a {
  color: var(--brand);
}

a:hover, a:focus {
  color: var(--brand-strong);
  text-decoration: none;
}

/* Navbar */
.bg-nav {
  background: linear-gradient(180deg, var(--blue-800), var(--blue-700)) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(30,64,175,0.25);
  backdrop-filter: saturate(120%) blur(8px);
}

.navbar .navbar-brand,
.navbar .nav-link {
  color: var(--text-inverse) !important;
  opacity: 0.95;
}

.navbar .nav-link:hover,
.navbar .navbar-brand:hover {
  opacity: 1;
}

.navbar .dropdown-menu {
  background: linear-gradient(180deg, var(--blue-800), var(--blue-700));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.navbar .dropdown-item {
  color: #e5e7eb;
}

.navbar .dropdown-item:hover {
  color: #ffffff;
  background: rgba(59,130,246,0.18);
}

/* Hero */
.bg-hero {
  background: radial-gradient(1200px 600px at 50% -10%, rgba(96,165,250,0.35) 0%, rgba(96,165,250,0) 60%),
              linear-gradient(180deg, var(--blue-700), var(--blue-600));
}

/* Headings */
h1, h2, h3, h4, h5, h6 { color: var(--blue-900); }

/* Section titles with cloud images and modern overlay */
h2 {
  position: relative;
  display: inline-block;
  padding: 1rem 1.25rem;
  color: var(--blue-900);
  border: 1px solid rgba(30,64,175,0.15);
  background-color: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}


/* Cards */
.card {
  border: 1px solid rgba(2,6,23,0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  background: linear-gradient(180deg, var(--surface-1), #ffffff);
  border-bottom: 1px solid rgba(2,6,23,0.06);
}

.card-body {
  background: #ffffff;
}

/* Buttons */
.btn-primary {
  background-color: var(--brand);
  border-color: var(--brand);
  color: var(--text-inverse);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-strong);
  border-color: var(--brand-strong);
}

.btn-outline-primary {
  color: var(--brand);
  border-color: var(--brand);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--brand);
  border-color: var(--brand);
  color: var(--text-inverse);
}

/* Forms */
.form-control {
  border-radius: var(--radius-md);
  border: 1px solid rgba(2,6,23,0.12);
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.2);
}

/* Tables */
.table {
  --bs-table-striped-bg: rgba(37,99,235,0.05);
  --bs-table-hover-bg: rgba(37,99,235,0.07);
}

/* Callouts aligned to blue theme */
.bd-callout-info { border-left-color: var(--blue-400); }
.bd-callout-warning { border-left-color: #f59e0b; }
.bd-callout-danger { border-left-color: #ef4444; }

/* Footer */
.bg-dark {
  background: linear-gradient(180deg, var(--blue-900), var(--blue-800)) !important;
}

footer a { color: #c7d2fe; }
footer a:hover { color: #ffffff; }

/* Page frame side decoration subtlety */
.page-frame .side-deco {
  opacity: 0.5;
}

/* Utilities */
.elevate-sm { box-shadow: var(--shadow-sm); }
.elevate-md { box-shadow: var(--shadow-md); }
.elevate-lg { box-shadow: var(--shadow-lg); }

/* Home header alignment with theme */
.home .header {
  background: radial-gradient(1000px 500px at 50% -10%, rgba(59,130,246,0.25) 0%, rgba(59,130,246,0) 60%),
              linear-gradient(180deg, var(--blue-700), var(--blue-600));
}

.home .header .title {
  color: #e6efff;
  text-shadow: 0 6px 24px rgba(37,99,235,0.35);
}

/* Fix inline-styled borders on home video assets to match theme */
#video-iframe { border-color: var(--brand) !important; }
#play-button img { border-color: var(--brand) !important; }










