body {
  background-color: #F5F0E8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}
.retro-border {
  border: 3px solid #1B2A4A;
  box-shadow: 4px 4px 0 #B94A2C;
}
.retro-border-mustard {
  border: 3px solid #1B2A4A;
  box-shadow: 4px 4px 0 #D4A017;
}
.retro-divider {
  border: none;
  height: 3px;
  background: repeating-linear-gradient(90deg, #1B2A4A 0px, #1B2A4A 12px, transparent 12px, transparent 18px);
  margin: 2.5rem 0;
}
.retro-divider-double {
  border-top: 2px solid #1B2A4A;
  border-bottom: 2px solid #1B2A4A;
  padding: 3px 0;
  height: 0;
}
.nav-link {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #F5F0E8;
  padding: 0.25rem 0.5rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  border-bottom-color: #D4A017;
  color: #D4A017;
}
.nav-link.nav-link-start {
  color: #D4A017;
  border-bottom-color: #D4A017;
}
.nav-link.nav-link-start:hover {
  color: #F5F0E8;
  border-bottom-color: #F5F0E8;
}
.nav-dropdown { display: inline-flex; }
.nav-dropdown-trigger {
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dropdown-caret {
  font-size: 0.65rem;
  line-height: 1;
  transition: transform 0.15s;
  display: inline-block;
}
.nav-dropdown.open .dropdown-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: #1B2A4A;
  border: 2px solid #D4A017;
  min-width: 180px;
  padding: 0.5rem 0;
  z-index: 60;
  box-shadow: 4px 4px 0 #B94A2C;
}
.nav-dropdown-item {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #F5F0E8;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-dropdown-item:hover, .nav-dropdown-item.active {
  background: rgba(212, 160, 23, 0.12);
  border-left-color: #D4A017;
  color: #D4A017;
}
.prompt-card { cursor: pointer; transition: transform 0.15s; }
.prompt-card:hover { transform: translate(-2px, -2px); }
.prompt-card.open .prompt-expand { display: block; }
.prompt-card .prompt-expand { display: none; }
.prompt-card.open .expand-icon { transform: rotate(45deg); }
.expand-icon { transition: transform 0.2s; display: inline-block; }
.category-pill {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 10px;
  border: 2px solid currentColor;
}
.filter-btn {
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border: 2px solid #1B2A4A;
  background: transparent;
  color: #1B2A4A;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.filter-btn:hover, .filter-btn.active {
  background: #1B2A4A;
  color: #F5F0E8;
}
.cta-btn-primary {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  background: #B94A2C;
  color: #F5F0E8;
  border: 3px solid #1B2A4A;
  box-shadow: 4px 4px 0 #1B2A4A;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  display: inline-block;
  text-decoration: none;
}
.cta-btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #1B2A4A;
}
.cta-btn-secondary {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  background: transparent;
  color: #1B2A4A;
  border: 3px solid #1B2A4A;
  box-shadow: 4px 4px 0 #D4A017;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  display: inline-block;
  text-decoration: none;
}
.cta-btn-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #D4A017;
}
.stamp {
  display: inline-block;
  border: 3px double currentColor;
  padding: 2px 10px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
}
/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #E8DFC8; }
::-webkit-scrollbar-thumb { background: #1B2A4A; }

/* Jargon decoder: dotted underline + retro hover tooltip reading data-def */
.jargon {
  text-decoration: underline dotted;
  text-decoration-color: #B94A2C;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  cursor: help;
  position: relative;
  font-style: inherit;
  font-weight: inherit;
}
.jargon::after {
  content: attr(data-def);
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 280px;
  white-space: normal;
  background: #E8DFC8;
  border: 2px solid #1B2A4A;
  box-shadow: 4px 4px 0 #D4A017;
  padding: 8px 12px;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.8rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  color: #2E2E2E;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 100;
}
.jargon:hover::after,
.jargon:focus::after,
.jargon.show-tip::after {
  opacity: 1;
}
