/* ==========================================================================
   PJ'S GUIDE TO LARGE LANGUAGE MODELS & MODERN AI
   Faithful 1999–2000 HTML 4.01 Academic Fan-Site Homage
   (Inspired by Britney Spears' Guide to Semiconductor Physics)
   ========================================================================== */

body {
  margin: 0;
  padding: 14px 8px 36px 8px;
  background-color: #ffffff;
  /* Authentic late-90s faint academic graph-paper tile */
  background-image:
    linear-gradient(to right, rgba(165, 190, 230, 0.24) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(165, 190, 230, 0.24) 1px, transparent 1px);
  background-size: 24px 24px;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.48;
}

#wrapper {
  width: 780px;
  max-width: 100%;
  margin: 0 auto;
  background-color: #ffffff;
  border: 2px ridge #99b3dd;
  padding: 16px 22px 24px 22px;
  box-sizing: border-box;
}

/* Iconic Impact Headlines straight from bsstylesheet2.css */
h1 {
  margin: 0 0 8px 0;
  letter-spacing: 1px;
  color: #000000;
  font-family: Impact, "Arial Black", Arial, sans-serif;
  font-size: 46px;
  font-weight: normal;
  line-height: 1.05;
  text-align: left;
}

h1.long {
  font-size: 38px;
}

h2 {
  margin: 22px 0 8px 0;
  letter-spacing: 1px;
  font-family: Impact, "Arial Black", Arial, sans-serif;
  font-size: 24px;
  font-weight: normal;
  color: #000000;
  border-bottom: 2px solid #000099;
  padding-bottom: 2px;
}

h3 {
  margin: 18px 0 6px 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #000066;
}

p {
  margin: 6px 0 10px 0;
  text-align: justify;
}

p.cap {
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  color: #222222;
  margin-top: 4px;
}

p.smallprint {
  font-size: 11px;
  color: #333333;
  text-align: left;
}

/* Classic Web 1.0 Links */
a:link {
  color: #0000ff;
  text-decoration: underline;
}

a:visited {
  color: #000099;
  text-decoration: underline;
}

a:active {
  color: #ff6600;
}

a:hover {
  color: #ff3399;
  background-color: #fff0f6;
}

/* Classic [  Button  ] Navigation Bar */
.nav-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 14px 0;
  background-color: #eef3fb;
  border: 1px solid #99b3dd;
}

.nav-table td {
  padding: 7px 10px;
  text-align: center;
  font-size: 13px;
  line-height: 1.85;
}

.button {
  display: inline-block;
  margin: 0 3px;
  padding: 1px 4px;
  background: linear-gradient(to bottom, #ffffff, #d9e6fa);
  border: 1px outset #8ea9d4;
}

.button a {
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #0000cc;
}

.button a:hover {
  color: #cc0066;
  background: transparent;
}

/* 90s Marquee Banner */
.marquee-bar {
  background-color: #ffffdd;
  border: 1px inset #cccc99;
  padding: 3px 6px;
  margin: 0 0 12px 0;
  font-size: 11px;
  font-family: Arial, Helvetica, sans-serif;
  color: #cc3300;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-inner {
  display: inline-block;
  padding-left: 100%;
  animation: retroScroll 32s linear infinite;
}

.marquee-bar:hover .marquee-inner {
  animation-play-state: paused;
}

@keyframes retroScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Retro Blue Bullet List Table */
.toc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 16px 0;
}

.toc-table td {
  vertical-align: top;
  padding: 4px 6px;
  font-size: 14px;
}

.blue-bullet {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #99ccff, #0033cc 70%, #000066);
  border: 1px solid #000066;
  margin-right: 6px;
  vertical-align: middle;
}

/* Vintage PJ Glamour + Equation Composite Frame */
.pj-plate {
  position: relative;
  display: inline-block;
  border: 2px solid #000000;
  background-color: #000000;
  overflow: hidden;
  max-width: 100%;
}

.pj-plate img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.9;
}

.pj-plate .eq-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 50, 0.78);
  color: #ffffff;
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  padding: 6px 8px;
  text-align: center;
  border-top: 1px solid #99ccff;
}

.pj-plate .eq-overlay-top {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(255, 255, 255, 0.88);
  color: #000066;
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border: 1px solid #000066;
}

/* LaTeX2HTML-Style Mathematical Equation Plates */
.eq-box {
  background-color: #f7f9fd;
  border: 1px solid #b5c6e0;
  border-left: 4px solid #000099;
  padding: 10px 14px;
  margin: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow-x: auto;
}

.eq-math {
  font-family: "Times New Roman", Cambria, Georgia, serif;
  font-size: 17px;
  color: #000000;
  line-height: 1.5;
  white-space: nowrap;
}

.eq-num {
  font-family: "Times New Roman", Times, serif;
  font-size: 13px;
  color: #444444;
  flex-shrink: 0;
}

/* Inline math typography */
.m {
  font-family: "Times New Roman", Cambria, Georgia, serif;
  font-size: 15px;
  font-style: italic;
}

.mr {
  font-family: "Times New Roman", Cambria, Georgia, serif;
  font-size: 15px;
  font-style: normal;
}

.frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  margin: 0 3px;
  font-size: 0.9em;
  line-height: 1.1;
}

.frac .num {
  border-bottom: 1px solid #000000;
  padding: 0 4px 1px 4px;
}

.frac .den {
  padding: 1px 4px 0 4px;
}

/* Academic Figure Box */
.figure-box {
  border: 1px solid #999999;
  background-color: #fafafa;
  padding: 10px;
  margin: 14px auto;
  text-align: center;
  max-width: 680px;
}

.figure-box svg {
  max-width: 100%;
  height: auto;
}

/* Classic Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px 0;
  font-size: 13px;
}

.data-table th {
  background-color: #d6e4f7;
  color: #000066;
  border: 1px solid #6688bb;
  padding: 6px 8px;
  text-align: left;
  font-weight: bold;
}

.data-table td {
  border: 1px solid #99b3dd;
  padding: 6px 8px;
  vertical-align: top;
}

.data-table tr:nth-child(even) td {
  background-color: #f6f9fe;
}

/* Deadpan PJ Footnote Callout */
.pj-note {
  background-color: #fff6fa;
  border: 1px dashed #cc3399;
  padding: 8px 12px;
  margin: 12px 0;
  font-size: 13px;
}

.pj-note strong {
  color: #990066;
}

/* Borkle Search Box (Homage to Britney's "Booble") */
.borkle-box {
  border: 2px groove #cccccc;
  background-color: #f9f9f9;
  padding: 10px;
  text-align: center;
}

.borkle-logo {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.borkle-results {
  margin-top: 8px;
  text-align: left;
  font-size: 12px;
  background: #ffffff;
  border: 1px solid #cccccc;
  padding: 6px 8px;
  display: none;
}

/* Chapter Prev / Next Bar */
.chapter-pager {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 12px 0;
  background-color: #eef3fb;
  border: 1px solid #99b3dd;
}

.chapter-pager td {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: bold;
}

/* Retro Hit Counter & Web 1.0 Badges */
.hit-counter {
  display: inline-block;
  background-color: #000000;
  color: #00ff66;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 3px;
  padding: 3px 8px;
  border: 2px inset #666666;
}

.retro-badge {
  display: inline-block;
  border: 2px outset #aaaaaa;
  background-color: #e0e0e0;
  color: #000000;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  margin: 2px;
  text-decoration: none;
}

hr {
  border: 0;
  height: 2px;
  background: #99b3dd;
  margin: 16px 0;
}

ul.academic, ol.academic {
  margin: 6px 0 12px 26px;
  padding: 0;
}

ul.academic li, ol.academic li {
  margin-bottom: 6px;
  text-align: justify;
}

.glossary-term {
  font-weight: bold;
  color: #000099;
  font-size: 15px;
  margin-top: 12px;
  border-bottom: 1px dotted #99b3dd;
}

.glossary-def {
  margin: 4px 0 10px 16px;
}

@media (max-width: 720px) {
  #wrapper { padding: 12px; }
  h1, h1.long { font-size: 28px; }
  .two-col-stack, .two-col-stack tbody, .two-col-stack tr, .two-col-stack td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }
  .eq-box { margin: 10px 0; }
}
