/* Font Faces */
@font-face {
  font-family: "BoeingMeso";
  src: url("../../font/ttf/BoeingMeso-Regular.ttf");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "BoeingMeso";
  src: url("../../font/ttf/BoeingMeso-Medium.ttf");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "BoeingMeso";
  src: url("../../font/ttf/BoeingMeso-Bold.ttf");
  font-weight: 700;
  font-style: normal;
}

/* Legacy alias — keeps existing references working */
@font-face {
  font-family: "BoeingMesoRegular";
  src: url("../../font/ttf/BoeingMeso-Regular.ttf");
}

/* Root Variables */
:root {
  --header-background: #263746;
  --footer-background: #263746;
  --pst-header-height: 70px;
}

/* Light Theme Variables */
html[data-theme="light"] {
  --background-color: #F5F5F5;
  --pst-color-primary: rgb(50, 72, 98);
  --pst-color-secondary: #0171C1;
  --pst-color-accent: rgb(85, 174, 246);
  --pst-color-success: rgb(40, 167, 69);
  --pst-color-info: rgb(85, 174, 246);
  --pst-color-warning: var(--pst-color-secondary);
  --pst-color-danger: rgb(220, 53, 69);
  --pst-color-text-base: rgb(51, 51, 51);
  --pst-color-text-muted: rgb(77, 77, 77);
  --pst-color-border: rgb(201, 201, 201);
  --pst-color-shadow: rgb(216, 216, 216);
  --pst-font-family-base: "BoeingMeso", BoeingMesoRegular, var(--pst-font-family-base-system);
  --pst-font-family-heading: "BoeingMeso", BoeingMesoRegular, var(--pst-font-family-base-system);
  --pst-color-background: rgb(255, 255, 255);
  --pst-color-on-background: rgb(255, 255, 255);
  --pst-color-surface: rgb(240, 240, 240);
  --pst-color-on-surface: rgb(255, 255, 238);
  --pst-color-panel-background: var(--pst-color-background);
  --pst-color-link: var(--pst-color-primary);
  --pst-color-link-hover: var(--pst-color-secondary);
  --pst-color-inline-code: rgb(232, 62, 140);
  --pst-color-target: rgb(161, 213, 255);
}

html[data-theme="light"] .only-dark {
  display: none !important;
}

/* Dark Theme Variables */
html[data-theme="dark"] {
  --pst-color-primary: rgb(85, 174, 246);
  --pst-color-secondary: #0171C1;
  --pst-color-accent: rgb(85, 174, 246);
  --pst-color-success: rgb(72, 135, 87);
  --pst-color-info: var(--pst-color-primary);
  --pst-color-warning: var(--pst-color-secondary);
  --pst-color-danger: rgb(203, 70, 83);
  --pst-color-text-base: rgb(201, 209, 217);
  --pst-color-text-muted: rgb(192, 192, 192);
  --pst-color-border: rgb(192, 192, 192);
  --pst-color-shadow: var(--pst-color-background);
  --pst-font-family-base: "BoeingMeso", BoeingMesoRegular, var(--pst-font-family-base-system);
  --pst-font-family-heading: "BoeingMeso", BoeingMesoRegular, var(--pst-font-family-base-system);
  --pst-color-background: #14191F;
  --pst-color-on-background: #14191F;
  --pst-color-surface: rgb(201, 209, 217);
  --pst-color-on-surface: rgb(201, 209, 217);
  --pst-color-panel-background: var(--pst-color-background);
  --pst-color-link: var(--pst-color-primary);
  --pst-color-link-hover: var(--pst-color-secondary);
  --pst-color-inline-code: rgb(221, 158, 194);
  --pst-color-target: rgb(38, 55, 70);
}

html[data-theme="dark"] .only-light {
  display: none !important;
}

html[data-theme="dark"] img {
  filter: none;
}

html[data-theme="dark"] .bd-content img:not(.only-dark):not(.dark-light) {
  background: unset;
}

#pst-back-to-top {
  color: #FFF;
  @media (max-width: 768px) {
    bottom: 120px; /* Add margin from bottom in mobile mode */
    top: auto; /* Override top positioning */
  }
}

/* References/Citations */
div.citation {
  width: 100%;
  display: flex;
  float: column;

}

div.citation > span,
div.citation > p {
 
  margin: 0;

}

div.citation > span:last-of-type,
div.citation > p:last-of-type {
  padding-right: 0.5em;
  margin-bottom: 0;

}

div.citation > p:last-of-type:after {
  content: "";
  clear: both;
}

/* Link styling — matches main site: dark text with blue underline */
.bd-article a:not(.headerlink):not(.btn):not(.nav-link) {
  text-decoration: underline;
  text-decoration-color: #0171C1;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.bd-article a:not(.headerlink):not(.btn):not(.nav-link):hover {
  color: #0171C1;
}

/* Headings — use Medium weight for visual hierarchy */
.bd-article h1 {
  font-size: 2.25rem;
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.bd-article h2 {
  font-weight: 500;
}

.bd-article h3 {
  font-weight: 500;
}

/* Body text line-height */
.bd-article {
  line-height: 1.625;
}


