/* ---------------------------------------------------------
   ARTICLE / LONG-FORM CONTENT STYLING
   Applies to pages like About.html or any Markdown-rendered
   content inside #about-content or #content-area containers.
--------------------------------------------------------- */

#longtext-container {
  background: white;
  max-width: 900px;        /* controls the width of the white page */
  margin: 0 auto;          /* centers it */
  padding: 40px 30px;      /* inner spacing */
  border-radius: 8px;      /* optional: softens the edges */
  background: rgba(255, 255, 255, 0.9);
}

/* Only apply blur if the browser supports it */
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  #longtext-container {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
}

@media (min-width: 1400px) {
  #longtext-container {
    max-width: 1100px;
  }
}

/* Base typography */
.article,
#about-content,
#content-area {
  font-family: "Poppins", sans-serif;
  color: #1f2a36;
  line-height: 1.7;
  font-size: 18px;
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Headings */
.article h1,
#about-content h1,
#content-area h1 {
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 20px;
  /*color: #0A1A3C;*/
}

.article h2,
#about-content h2,
#content-area h2 {
  font-size: 32px;
  font-weight: 500;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #0A1A3C;
}

.article h3,
#about-content h3,
#content-area h3 {
  font-size: 26px;
  font-weight: 500;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #0A1A3C;
}

/* Paragraphs */
.article p,
#about-content p,
#content-area p {
  margin-bottom: 18px;
}

/* Links */
.article a,
#about-content a,
#content-area a {
  color: #0055aa;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 85, 170, 0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.article a:hover,
#about-content a:hover,
#content-area a:hover {
  color: #FF8C00;
  border-color: #FF8C00;
}

/* Lists */
.article ul,
.article ol,
#about-content ul,
#about-content ol,
#content-area ul,
#content-area ol {
  margin: 20px 0 20px 30px;
  padding: 0;
}

.article li,
#about-content li,
#content-area li {
  margin-bottom: 8px;
}

/* Blockquotes */
.article blockquote,
#about-content blockquote,
#content-area blockquote {
  margin: 30px 0;
  padding: 20px 25px;
  background: rgba(255, 179, 0, 0.15);
  border-left: 6px solid #FF8C00;
  border-radius: 4px;
  font-style: italic;
  color: #333;
}

/* Images inside articles */
.article img,
#about-content img,
#content-area img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 25px 0;
  display: block;
}

/* Code blocks */
.article pre,
#about-content pre,
#content-area pre {
  background: #1f2a36;
  color: #f7f7f7;
  padding: 15px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 25px 0;
}

.article code,
#about-content code,
#content-area code {
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.95em;
}

/* Tooltip styling for footnotes */
.footnote-tooltip {
  position: absolute;
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  max-width: 260px;
  font-size: 0.85rem;
  line-height: 1.3;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Horizontal rule */
.article hr,
#about-content hr,
#content-area hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 40px 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .article,
  #about-content,
  #content-area {
    font-size: 16px;
  }

  .article h1,
  #about-content h1,
  #content-area h1 {
    font-size: 34px;
  }

  .article h2,
  #about-content h2,
  #content-area h2 {
    font-size: 26px;
  }
}

.footnotes {
  margin-top: 40px;
  font-size: 0.9em;
  color: #444;
}

.footnotes ol {
  padding-left: 20px;
}

.footnotes li {
  margin-bottom: 8px;
}

/* Style the footnote reference link in the main text */
sup[id^="footnote-ref-"] a,
sup[id^="footnote-ref-"] a:visited,
sup[id^="footnote-ref-"] a:active {
  color: red !important;
  text-decoration: none;
  font-weight: bold;
}

sup[id^="fnref-"] a:hover {
  color: #cc6f00;
}
